diff options
-rw-r--r-- | debug/org.eclipse.cdt.debug.mi.core/ChangeLog | 6 | ||||
-rw-r--r-- | debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIInferior.java | 10 |
2 files changed, 11 insertions, 5 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog index 4d9c58e5cab..d5fd83e92a9 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog @@ -1,3 +1,9 @@ +2003-12-09 Alain Magloire + + Do not try to interrupt if the target was suspended. + + * src/org/eclipse/cdt/debug/mi/core/MIInferior.java + 2003-12-08 Alain Magloire Target.terminate() did not pass the exception up. diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIInferior.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIInferior.java index 198bf3a459b..8ecb0b45c1c 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIInferior.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIInferior.java @@ -191,10 +191,6 @@ public class MIInferior extends Process { } } } - // If we've failed throw an exception up. - if (state == RUNNING) { - throw new MIException("Failed to interrupt"); - } } else { // Try the exec-interrupt; this will be for "gdb --async" // CommandFactory factory = session.getCommandFactory(); @@ -204,7 +200,11 @@ public class MIInferior extends Process { // MIInfo info = interrupt.getMIInfo(); // } catch (MIException e) { // } - throw new MIException("Interruption no supported"); + //throw new MIException("Interruption no supported"); + } + // If we've failed throw an exception up. + if (state == RUNNING) { + throw new MIException("Failed to interrupt"); } } |