Debugger: Ignore "running" output when stop is requested.

When a shut down is requested we also try to stop.

Task-number: QTCREATORBUG-10935
Change-Id: I9e063a0fdbb94f7b9c915536612394c10bd53bc9
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
David Schulz
2013-11-20 07:38:17 +01:00
committed by Eike Ziller
parent 79e1291129
commit 25389fcc25

View File

@@ -441,6 +441,11 @@ void GdbEngine::handleResponse(const QByteArray &buff)
// We get multiple *running after thread creation and in Windows terminals.
showMessage(QString::fromLatin1("NOTE: INFERIOR STILL RUNNING IN STATE %1.").
arg(QLatin1String(DebuggerEngine::stateName(state()))));
} else if (Utils::HostOsInfo::isWindowsHost() && (state() == InferiorStopRequested
|| state() == InferiorShutdownRequested)) {
// FIXME: Breakpoints on Windows are exceptions which are thrown in newly
// created threads so we have to filter out the running threads messages when
// we request a stop.
} else {
notifyInferiorRunOk();
}