forked from qt-creator/qt-creator
Debugger: Remove some unneeded calls to resetLocation()
Since resetLocation() is called when the repective actions are triggered immediately before the engine's executeFoo() are called there is no need to call them in executeFoo() again. Also, remove the unused autoContinueInferior(); function. Change-Id: I8d2ec419c0da6efa388ce1ed317f31d24654897f Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
@@ -1999,13 +1999,6 @@ void GdbEngine::continueInferiorInternal()
|
||||
postCommand("-exec-continue", RunRequest, CB(handleExecuteContinue));
|
||||
}
|
||||
|
||||
void GdbEngine::autoContinueInferior()
|
||||
{
|
||||
resetLocation();
|
||||
continueInferiorInternal();
|
||||
showStatusMessage(tr("Continuing after temporary stop..."), 1000);
|
||||
}
|
||||
|
||||
void GdbEngine::continueInferior()
|
||||
{
|
||||
CHECK_STATE(InferiorStopOk);
|
||||
@@ -2166,7 +2159,6 @@ void GdbEngine::executeRunToLine(const ContextData &data)
|
||||
{
|
||||
CHECK_STATE(InferiorStopOk);
|
||||
setTokenBarrier();
|
||||
resetLocation();
|
||||
notifyInferiorRunRequested();
|
||||
showStatusMessage(tr("Run to line %1 requested...").arg(data.lineNumber), 5000);
|
||||
#if 1
|
||||
@@ -2191,7 +2183,6 @@ void GdbEngine::executeRunToFunction(const QString &functionName)
|
||||
{
|
||||
CHECK_STATE(InferiorStopOk);
|
||||
setTokenBarrier();
|
||||
resetLocation();
|
||||
postCommand("-break-insert -t " + functionName.toLatin1());
|
||||
showStatusMessage(tr("Run to function %1 requested...").arg(functionName), 5000);
|
||||
continueInferiorInternal();
|
||||
|
||||
Reference in New Issue
Block a user