1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[250752] [run control] When stepping out or when a breakpoint is hit, then next step is blocked

This commit is contained in:
Anton Leherbauer 2008-10-14 11:00:23 +00:00
parent 2d78ef8f37
commit bb30f026fc

View file

@ -795,7 +795,7 @@ public class DsfSourceDisplayAdapter implements ISourceDisplay, ISteppingControl
@DsfServiceEventHandler
public void eventDispatched(final IRunControl.ISuspendedDMEvent e) {
updateStepTiming();
if (e.getReason() == StateChangeReason.STEP) {
if (e.getReason() == StateChangeReason.STEP || e.getReason() == StateChangeReason.BREAKPOINT) {
// trigger source display immediately (should be optional?)
Display.getDefault().asyncExec(new Runnable() {
public void run() {
@ -808,6 +808,8 @@ public class DsfSourceDisplayAdapter implements ISourceDisplay, ISteppingControl
}
}
}});
} else {
doneStepping(e.getDMContext());
}
}