mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-28 11:25:35 +02:00
Fire the suspend event for the current thread on the target creation.
This commit is contained in:
parent
8c61386cb2
commit
815b892f7f
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ public class CDebugTarget extends CDebugElement implements ICDebugTarget, ICDIEv
|
||||||
CThread thread = createThread( cdiThreads[i] );
|
CThread thread = createThread( cdiThreads[i] );
|
||||||
debugEvents.add( thread.createCreateEvent() );
|
debugEvents.add( thread.createCreateEvent() );
|
||||||
try {
|
try {
|
||||||
if ( cdiThreads[i].equals( getCDITarget().getCurrentThread() ) ) {
|
if ( cdiThreads[i].equals( getCDITarget().getCurrentThread() ) && thread.isSuspended() ) {
|
||||||
// Use BREAKPOINT as a detail to force perspective switch
|
// Use BREAKPOINT as a detail to force perspective switch
|
||||||
suspendEvent = thread.createSuspendEvent( DebugEvent.BREAKPOINT );
|
suspendEvent = thread.createSuspendEvent( DebugEvent.BREAKPOINT );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue