Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Khodjaiants2003-12-09 11:30:29 -0500
committerMikhail Khodjaiants2003-12-09 11:30:29 -0500
commit9b2e58256f50e3d37a9fb5656a22df8cf7b5656b (patch)
tree44b534736b261241368c05d8af3e5075060d3ec3
parentd42dfce8c4c860193f939d733567acfc62162326 (diff)
downloadorg.eclipse.cdt-9b2e58256f50e3d37a9fb5656a22df8cf7b5656b.tar.gz
org.eclipse.cdt-9b2e58256f50e3d37a9fb5656a22df8cf7b5656b.tar.xz
org.eclipse.cdt-9b2e58256f50e3d37a9fb5656a22df8cf7b5656b.zip
Do not try to interrupt if the target was suspended.
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/ChangeLog6
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIInferior.java10
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");
}
}

Back to the top