Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2011-10-05 20:59:45 +0000
committerPawel Piech2011-10-05 22:37:39 +0000
commitbdd74fd79e98c593e9e4eeba96843d278bb60ddc (patch)
treebb7881ae4f72343c01d43e5917f28094e36d03c0
parent09bc0ef3f036df09a60d123bd1f197b42d4f3b47 (diff)
downloadorg.eclipse.cdt-bdd74fd79e98c593e9e4eeba96843d278bb60ddc.tar.gz
org.eclipse.cdt-bdd74fd79e98c593e9e4eeba96843d278bb60ddc.tar.xz
org.eclipse.cdt-bdd74fd79e98c593e9e4eeba96843d278bb60ddc.zip
Bug 359783 - (Avoid assertion error in case of inconsistent model
events)
-rw-r--r--dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/SteppingController.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/SteppingController.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/SteppingController.java
index 3ba3357d4ea..ae16af99d9e 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/SteppingController.java
+++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/SteppingController.java
@@ -432,9 +432,10 @@ public final class SteppingController {
@Override
protected void handleSuccess() {
fTimedOutFlags.put(execCtx, Boolean.FALSE);
- // We shouldn't have a stepping timeout running unless
- // running/stopped events are out of order.
- assert !fTimedOutFutures.containsKey(execCtx);
+ ScheduledFuture<?> currentTimeOutFuture = fTimedOutFutures.get(execCtx);
+ if (currentTimeOutFuture != null) {
+ currentTimeOutFuture.cancel(false);
+ }
fTimedOutFutures.put(execCtx, getExecutor().schedule(new TimeOutRunnable(execCtx), fStepTimeout, TimeUnit.MILLISECONDS));
}

Back to the top