reset program location when we detect "spontaneous running"

i.e., don't allow user to confuse himself :)
This commit is contained in:
Oswald Buddenhagen
2009-10-29 15:31:43 +01:00
parent 1e96c67915
commit e903c4d9cd

View File

@@ -539,6 +539,11 @@ void GdbEngine::handleResponse(const QByteArray &buff)
if (resultClass == "done") {
response.resultClass = GdbResultDone;
} else if (resultClass == "running") {
if (state() == InferiorStopped) { // Result of manual command.
m_manager->resetLocation();
setTokenBarrier();
setState(InferiorRunningRequested);
}
setState(InferiorRunning);
showStatusMessage(tr("Running..."));
response.resultClass = GdbResultRunning;