diff options
author | Marc Khouzam | 2011-10-26 19:24:49 +0000 |
---|---|---|
committer | Marc Khouzam | 2011-10-26 19:24:49 +0000 |
commit | e4aed35b52b3147454de80a8793c912d617dc68f (patch) | |
tree | 263d0addd96108ac7df682fe33374bd9c8cf9805 | |
parent | 2b1951b4cdeb9fbaca616fbc8145434655439016 (diff) | |
download | org.eclipse.cdt-e4aed35b52b3147454de80a8793c912d617dc68f.tar.gz org.eclipse.cdt-e4aed35b52b3147454de80a8793c912d617dc68f.tar.xz org.eclipse.cdt-e4aed35b52b3147454de80a8793c912d617dc68f.zip |
Bug 362105: Cancelling a launch during the prompt for the corefile gives an error
-rw-r--r-- | dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/FinalLaunchSequence.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/FinalLaunchSequence.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/FinalLaunchSequence.java index 54b74473a74..9805cecc1bc 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/FinalLaunchSequence.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/FinalLaunchSequence.java @@ -414,7 +414,17 @@ public class FinalLaunchSequence extends ReflectionSequence { // Even if binary is null, we must call this to do all the other steps // necessary to create a process. It is possible that the binary is not needed fProcService.debugNewProcess(fCommandControl.getContext(), binary, fAttributes, - new DataRequestMonitor<IDMContext>(getExecutor(), rm)); + new DataRequestMonitor<IDMContext>(getExecutor(), rm) { + @Override + protected void handleCancel() { + // If this step is cancelled, cancel the current sequence. + // This is to allow the user to press the cancel button + // when prompted for a post-mortem file. + // Bug 362105 + rm.cancel(); + rm.done(); + } + }); } else { rm.done(); } |