From 0e651d89c60e2ae8304558741c7422a061281f8a Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Wed, 4 Sep 2002 20:15:03 +0000 Subject: [PATCH] Make sure gdb is destroy(); --- .../src/org/eclipse/cdt/debug/mi/core/MISession.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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(); + } } /**