forked from qt-creator/qt-creator
reset program location when we detect "spontaneous running"
i.e., don't allow user to confuse himself :)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user