Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2010-05-14 16:50:40 +0000
committerPawel Piech2010-05-14 16:50:40 +0000
commit06e479681f0a3dc7582cab9ef5cc420b353cfa8f (patch)
treea2a5eb44ebca663dc809570d5db26c72ec1734de /dsf/org.eclipse.cdt.examples.dsf
parent1c2aa84166c0b1fff583f03b886fd7fb15688e13 (diff)
downloadorg.eclipse.cdt-06e479681f0a3dc7582cab9ef5cc420b353cfa8f.tar.gz
org.eclipse.cdt-06e479681f0a3dc7582cab9ef5cc420b353cfa8f.tar.xz
org.eclipse.cdt-06e479681f0a3dc7582cab9ef5cc420b353cfa8f.zip
Bug 312813 - [Launch] MIInferiorProcess.exitValue() never returns
Diffstat (limited to 'dsf/org.eclipse.cdt.examples.dsf')
-rw-r--r--dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TriggerCellModifier.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TriggerCellModifier.java b/dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TriggerCellModifier.java
index b7de00a0ca..d6d2e2f977 100644
--- a/dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TriggerCellModifier.java
+++ b/dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TriggerCellModifier.java
@@ -193,7 +193,8 @@ public class TriggerCellModifier implements ICellModifier {
// In that case, cancel to notify waiting thread.
final DsfSession session = DsfSession.getSession(fDmc.getSessionId());
if (session == null) {
- cancel(false);
+ rm.setStatus(new Status(IStatus.ERROR, DsfExamplesPlugin.PLUGIN_ID, IDsfStatusConstants.INVALID_STATE, "Debug session already shut down.", null)); //$NON-NLS-1$
+ rm.done();
return;
}
@@ -234,7 +235,8 @@ public class TriggerCellModifier implements ICellModifier {
// Guard against terminated session
final DsfSession session = DsfSession.getSession(fDmc.getSessionId());
if (session == null) {
- cancel(false);
+ rm.setStatus(new Status(IStatus.ERROR, DsfExamplesPlugin.PLUGIN_ID, IDsfStatusConstants.INVALID_STATE, "Debug session already shut down.", null)); //$NON-NLS-1$
+ rm.done();
return;
}

Back to the top