OSDN Git Service

fix attaching to core
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Wed, 4 Nov 2009 09:31:59 +0000 (10:31 +0100)
committercon <qtc-committer@nokia.com>
Wed, 4 Nov 2009 18:01:40 +0000 (19:01 +0100)
InferiorUnrunnable is equivalent to InferiorStopped as far as NeedsStop
commands are concerned.

Reviewed-by: hjk
(cherry picked from commit 46a7ac5fb987415981e4051eacfce288d944c862)

src/plugins/debugger/gdb/gdbengine.cpp

index f4b3984..78136da 100644 (file)
@@ -742,7 +742,7 @@ void GdbEngine::postCommandHelper(const GdbCommand &cmd)
     }
 
     if ((cmd.flags & NeedsStop) || !m_commandsToRunOnTemporaryBreak.isEmpty()) {
-        if (state() == InferiorStopped
+        if (state() == InferiorStopped || state() == InferiorUnrunnable
             || state() == InferiorStarting || state() == AdapterStarted) {
             // Can be safely sent now.
             flushCommand(cmd);