mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Bug 359783 - (comment #3: Fixed handling of suspended event to match
previous behavior)
This commit is contained in:
parent
d643d3b26e
commit
93d76c18d7
1 changed files with 3 additions and 1 deletions
|
@ -609,6 +609,7 @@ public final class SteppingController {
|
||||||
@DsfServiceEventHandler
|
@DsfServiceEventHandler
|
||||||
public void eventDispatched(final ISuspendedDMEvent e) {
|
public void eventDispatched(final ISuspendedDMEvent e) {
|
||||||
// Take care of the stepping time out
|
// Take care of the stepping time out
|
||||||
|
boolean timedOut = false;
|
||||||
IExecutionDMContext dmc = e.getDMContext();
|
IExecutionDMContext dmc = e.getDMContext();
|
||||||
for (Iterator<Map.Entry<IExecutionDMContext, Boolean>> itr = fTimedOutFlags.entrySet().iterator(); itr.hasNext();) {
|
for (Iterator<Map.Entry<IExecutionDMContext, Boolean>> itr = fTimedOutFlags.entrySet().iterator(); itr.hasNext();) {
|
||||||
Map.Entry<IExecutionDMContext,Boolean> entry = itr.next();
|
Map.Entry<IExecutionDMContext,Boolean> entry = itr.next();
|
||||||
|
@ -617,6 +618,7 @@ public final class SteppingController {
|
||||||
if (entry.getValue()) {
|
if (entry.getValue()) {
|
||||||
// after step timeout do not process queued steps
|
// after step timeout do not process queued steps
|
||||||
fStepQueues.remove(dmc);
|
fStepQueues.remove(dmc);
|
||||||
|
timedOut = true;
|
||||||
}
|
}
|
||||||
itr.remove();
|
itr.remove();
|
||||||
}
|
}
|
||||||
|
@ -634,7 +636,7 @@ public final class SteppingController {
|
||||||
if (e.getReason() != StateChangeReason.STEP) {
|
if (e.getReason() != StateChangeReason.STEP) {
|
||||||
// after any non-step suspend reason do not process queued steps for given context
|
// after any non-step suspend reason do not process queued steps for given context
|
||||||
fStepQueues.remove(dmc);
|
fStepQueues.remove(dmc);
|
||||||
} else {
|
} else if (!timedOut){
|
||||||
// Check if there's a step pending, if so execute it
|
// Check if there's a step pending, if so execute it
|
||||||
processStepQueue(dmc);
|
processStepQueue(dmc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue