Skip to main content
summaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorAlain Magloire2002-09-04 20:15:03 +0000
committerAlain Magloire2002-09-04 20:15:03 +0000
commit0e651d89c60e2ae8304558741c7422a061281f8a (patch)
tree723e29801ed51304835813362463c74335b0ff3b /debug
parent46e1e64e8520b9136c7d6e3c728758625a5c6749 (diff)
downloadorg.eclipse.cdt-0e651d89c60e2ae8304558741c7422a061281f8a.tar.gz
org.eclipse.cdt-0e651d89c60e2ae8304558741c7422a061281f8a.tar.xz
org.eclipse.cdt-0e651d89c60e2ae8304558741c7422a061281f8a.zip
Make sure gdb is destroy();
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MISession.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MISession.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MISession.java
index 0c0ef8cb387..5471d2c0f25 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MISession.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MISession.java
@@ -245,7 +245,7 @@ MIPlugin.getDefault().debugLog(number++ + " " + cmd.toString());
postCommand(exit);
} catch (MIException e) {
}
-
+
// Close the input GDB prompt
try {
if (inChannel != null)
@@ -298,6 +298,12 @@ MIPlugin.getDefault().debugLog(number++ + " " + cmd.toString());
}
} catch (IOException e) {
}
+
+ // Make sure it gdb is killed.
+ // FIX: Spawner will do the waitFor();
+ if (miProcess != null) {
+ miProcess.destroy();
+ }
}
/**

Back to the top