Debugger: Conceptually fix temporary stop of mixed gdb+qml engine

There's no actual change, the code could only be triggered when
the gdb side was active, but it triggered a stop of the combo
which then redirected to the active one.

It's always and only the gdb side that needs stopping, so do
it directly.

Change-Id: I1a6273b826be8f38993c9968d874b7b3daf0d0c7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2018-05-23 14:57:22 +02:00
parent aac2e2e41a
commit d4ea80ef7c

View File

@@ -757,7 +757,7 @@ void GdbEngine::runCommand(const DebuggerCommand &command)
if (state() == InferiorRunOk) { if (state() == InferiorRunOk) {
showStatusMessage(tr("Stopping temporarily."), 1000); showStatusMessage(tr("Stopping temporarily."), 1000);
m_onStop.append(cmd, wantContinue); m_onStop.append(cmd, wantContinue);
requestInterruptInferior(); interruptInferior();
return; return;
} }
if (state() != InferiorStopOk) if (state() != InferiorStopOk)