mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Notify the Launch view about stack changes when handling the 'Resumed' event.
This commit is contained in:
parent
e0a6729cb3
commit
b8a4db2ba7
2 changed files with 20 additions and 19 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2003-05-02 Mikhail Khodjaiants
|
||||||
|
Notify the Launch view about stack changes when handling the 'Resumed' event.
|
||||||
|
* CThread.java
|
||||||
|
|
||||||
2003-05-01 Mikhail Khodjaiants
|
2003-05-01 Mikhail Khodjaiants
|
||||||
Implementation of termination policy.
|
Implementation of termination policy.
|
||||||
* ICDIConfiguration.java: new "terminateSessionOnExit" method added.
|
* ICDIConfiguration.java: new "terminateSessionOnExit" method added.
|
||||||
|
|
|
@ -903,33 +903,30 @@ public class CThread extends CDebugElement
|
||||||
setRunning( true );
|
setRunning( true );
|
||||||
setLastStackFrame( null );
|
setLastStackFrame( null );
|
||||||
int state = IState.RUNNING;
|
int state = IState.RUNNING;
|
||||||
int detail = DebugEvent.UNSPECIFIED;
|
int detail = DebugEvent.RESUME;
|
||||||
switch( event.getType() )
|
|
||||||
{
|
|
||||||
case ICDIResumedEvent.CONTINUE:
|
|
||||||
detail = DebugEvent.RESUME;
|
|
||||||
break;
|
|
||||||
case ICDIResumedEvent.STEP_INTO:
|
|
||||||
case ICDIResumedEvent.STEP_INTO_INSTRUCTION:
|
|
||||||
detail = DebugEvent.STEP_INTO;
|
|
||||||
break;
|
|
||||||
case ICDIResumedEvent.STEP_OVER:
|
|
||||||
case ICDIResumedEvent.STEP_OVER_INSTRUCTION:
|
|
||||||
detail = DebugEvent.STEP_OVER;
|
|
||||||
break;
|
|
||||||
case ICDIResumedEvent.STEP_RETURN:
|
|
||||||
detail = DebugEvent.STEP_RETURN;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if ( isCurrent() && event.getType() != ICDIResumedEvent.CONTINUE )
|
if ( isCurrent() && event.getType() != ICDIResumedEvent.CONTINUE )
|
||||||
{
|
{
|
||||||
preserveStackFrames();
|
preserveStackFrames();
|
||||||
|
switch( event.getType() )
|
||||||
|
{
|
||||||
|
case ICDIResumedEvent.STEP_INTO:
|
||||||
|
case ICDIResumedEvent.STEP_INTO_INSTRUCTION:
|
||||||
|
detail = DebugEvent.STEP_INTO;
|
||||||
|
break;
|
||||||
|
case ICDIResumedEvent.STEP_OVER:
|
||||||
|
case ICDIResumedEvent.STEP_OVER_INSTRUCTION:
|
||||||
|
detail = DebugEvent.STEP_OVER;
|
||||||
|
break;
|
||||||
|
case ICDIResumedEvent.STEP_RETURN:
|
||||||
|
detail = DebugEvent.STEP_RETURN;
|
||||||
|
break;
|
||||||
|
}
|
||||||
state = IState.STEPPING;
|
state = IState.STEPPING;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
disposeStackFrames();
|
disposeStackFrames();
|
||||||
state = IState.RUNNING;
|
fireChangeEvent( DebugEvent.CONTENT );
|
||||||
}
|
}
|
||||||
setCurrentStateId( state );
|
setCurrentStateId( state );
|
||||||
setCurrentStateInfo( null );
|
setCurrentStateInfo( null );
|
||||||
|
|
Loading…
Add table
Reference in a new issue