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

Bug 359783 - (comment #3: Fixed handling of suspended event to match

previous behavior)
This commit is contained in:
Pawel Piech 2011-10-04 22:41:02 -07:00
parent d643d3b26e
commit 93d76c18d7

View file

@ -609,6 +609,7 @@ public final class SteppingController {
@DsfServiceEventHandler
public void eventDispatched(final ISuspendedDMEvent e) {
// Take care of the stepping time out
boolean timedOut = false;
IExecutionDMContext dmc = e.getDMContext();
for (Iterator<Map.Entry<IExecutionDMContext, Boolean>> itr = fTimedOutFlags.entrySet().iterator(); itr.hasNext();) {
Map.Entry<IExecutionDMContext,Boolean> entry = itr.next();
@ -617,6 +618,7 @@ public final class SteppingController {
if (entry.getValue()) {
// after step timeout do not process queued steps
fStepQueues.remove(dmc);
timedOut = true;
}
itr.remove();
}
@ -634,7 +636,7 @@ public final class SteppingController {
if (e.getReason() != StateChangeReason.STEP) {
// after any non-step suspend reason do not process queued steps for given context
fStepQueues.remove(dmc);
} else {
} else if (!timedOut){
// Check if there's a step pending, if so execute it
processStepQueue(dmc);
}