From e2e29587a19d2f79d4d96cf0f924dfce40896c07 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Thu, 14 Jan 2010 15:41:20 +0100
Subject: [PATCH] debugger: go to a defined state if we can't talk to the
 inferior anymore

---
 src/plugins/debugger/gdb/gdbengine.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp
index 9450c741993..645fb7d5cd3 100644
--- a/src/plugins/debugger/gdb/gdbengine.cpp
+++ b/src/plugins/debugger/gdb/gdbengine.cpp
@@ -771,8 +771,12 @@ void GdbEngine::postCommandHelper(const GdbCommand &cmd)
                 if (cmd.flags & LosesChild)
                     setState(InferiorStopping_Kill);
                 debugMessage(_("CHILD ALREADY BEING INTERRUPTED"));
+                // FIXME
+                shutdown();
             } else if (state() == InferiorStopping_Kill) {
                 debugMessage(_("CHILD ALREADY BEING INTERRUPTED (KILL PENDING)"));
+                // FIXME
+                shutdown();
             } else if (state() == InferiorRunningRequested) {
                 if (cmd.flags & LosesChild)
                     setState(InferiorRunningRequested_Kill);
-- 
GitLab