1
0
Fork 0
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:
Mikhail Khodjaiants 2004-10-22 16:44:17 +00:00
parent 8c61386cb2
commit 815b892f7f

View file

@ -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 );
} }