From a2ec23c0e9c0b11c3f6aa2701951540d78502b51 Mon Sep 17 00:00:00 2001
From: Pawel Polanski <pawel.3.polanski@nokia.com>
Date: Mon, 21 Mar 2011 16:34:33 +0100
Subject: [PATCH] GDB: Handle ill engine's situation

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

diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp
index a5652adb90b..606cadfc2fb 100644
--- a/src/plugins/debugger/gdb/gdbengine.cpp
+++ b/src/plugins/debugger/gdb/gdbengine.cpp
@@ -4736,7 +4736,10 @@ void GdbEngine::handleAdapterCrashed(const QString &msg)
     // Don't bother with state transitions - this can happen in any state and
     // the end result is always the same, so it makes little sense to find a
     // "path" which does not assert.
-    notifyEngineSetupFailed();
+    if (state() == EngineSetupRequested)
+        notifyEngineSetupFailed();
+    else
+        notifyEngineIll();
 
     // No point in being friendly here ...
     gdbProc()->kill();
-- 
GitLab