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
|
||||
Implementation of termination policy.
|
||||
* ICDIConfiguration.java: new "terminateSessionOnExit" method added.
|
||||
|
|
|
@ -903,33 +903,30 @@ public class CThread extends CDebugElement
|
|||
setRunning( true );
|
||||
setLastStackFrame( null );
|
||||
int state = IState.RUNNING;
|
||||
int detail = DebugEvent.UNSPECIFIED;
|
||||
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;
|
||||
}
|
||||
int detail = DebugEvent.RESUME;
|
||||
if ( isCurrent() && event.getType() != ICDIResumedEvent.CONTINUE )
|
||||
{
|
||||
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;
|
||||
}
|
||||
else
|
||||
{
|
||||
disposeStackFrames();
|
||||
state = IState.RUNNING;
|
||||
fireChangeEvent( DebugEvent.CONTENT );
|
||||
}
|
||||
setCurrentStateId( state );
|
||||
setCurrentStateInfo( null );
|
||||
|
|
Loading…
Add table
Reference in a new issue