forked from qt-creator/qt-creator
		
	fix attaching to core
InferiorUnrunnable is equivalent to InferiorStopped as far as NeedsStop commands are concerned. Reviewed-by: hjk
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user