1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Fix in the 'resumed' event handle.

This commit is contained in:
Mikhail Khodjaiants 2002-09-06 17:22:02 +00:00
parent 594be25e51
commit 7bb306e845

View file

@ -813,8 +813,7 @@ public class CThread extends CDebugElement
private void handleResumedEvent( ICDIResumedEvent event )
{
setRunning( true );
setCurrentStateId( IState.RUNNING );
setCurrentStateInfo( null );
int state = IState.RUNNING;
int detail = DebugEvent.UNSPECIFIED;
if ( isCurrent() )
{
@ -822,20 +821,24 @@ public class CThread extends CDebugElement
{
case ICDIResumedEvent.CONTINUE:
detail = DebugEvent.CLIENT_REQUEST;
state = IState.RUNNING;
disposeStackFrames();
break;
case ICDIResumedEvent.STEP_INTO:
case ICDIResumedEvent.STEP_INTO_INSTRUCTION:
detail = DebugEvent.STEP_INTO;
state = IState.STEPPING;
preserveStackFrames();
break;
case ICDIResumedEvent.STEP_OVER:
case ICDIResumedEvent.STEP_OVER_INSTRUCTION:
detail = DebugEvent.STEP_OVER;
state = IState.STEPPING;
preserveStackFrames();
break;
case ICDIResumedEvent.STEP_RETURN:
detail = DebugEvent.STEP_RETURN;
state = IState.STEPPING;
preserveStackFrames();
break;
}
@ -843,8 +846,11 @@ public class CThread extends CDebugElement
else
{
disposeStackFrames();
fireResumeEvent( DebugEvent.CLIENT_REQUEST );
detail = DebugEvent.CLIENT_REQUEST;
}
setCurrentStateId( state );
setCurrentStateInfo( null );
fireResumeEvent( detail );
}
private void handleEndSteppingRange( ICDIEndSteppingRange endSteppingRange )