aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorhjk <[email protected]>2012-03-08 14:38:49 +0100
committerhjk <[email protected]>2012-03-08 14:40:48 +0100
commitb540ea664316ea82d55d57b3cab413bca110549e (patch)
tree6303aeaa301f5b42f591ee418e98d0cf4d7dcf1b /src
parentbb64880214094399f11adb5999868d4dce5e817b (diff)
debugger: allow cleaner abort of autotest runs
Diffstat (limited to 'src')
-rw-r--r--src/plugins/debugger/debuggerengine.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/plugins/debugger/debuggerengine.cpp b/src/plugins/debugger/debuggerengine.cpp
index 3b9e671181b..ab623dee5b2 100644
--- a/src/plugins/debugger/debuggerengine.cpp
+++ b/src/plugins/debugger/debuggerengine.cpp
@@ -1934,11 +1934,16 @@ void DebuggerEnginePrivate::handleAutoTestLine(int line)
}
handleAutoTestLine(line + 1);
} else if (cmd == QLatin1String("Continue")) {
- m_engine->showMessage(_("Continue in line %1 processed.").arg(line));
- if (!m_breakOnError || !m_foundError)
- m_engine->continueInferior();
- else
- m_foundError = false;
+ if (state() == InferiorStopOk) {
+ m_engine->showMessage(_("Continue in line %1 processed.").arg(line));
+ if (!m_breakOnError || !m_foundError)
+ m_engine->continueInferior();
+ else
+ m_foundError = false;
+ } else {
+ m_engine->showMessage(_("Auto-run aborted in line %1. State is %2.")
+ .arg(line).arg(state()));
+ }
}
}