Cdb: Replace postCommand("g") with doContinueInferior.

Removes duplicated code and improves readability

Change-Id: Ie04e1f247540babd6a840b860f2acb602f5e831d
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
David Schulz
2014-10-28 09:51:32 +01:00
parent 865533b3a1
commit 04d8eac7a6

View File

@@ -856,7 +856,7 @@ void CdbEngine::runEngine()
notifyInferiorUnrunnable();
processStop(*m_coreStopReason, false);
} else {
postCommand("g", 0);
doContinueInferior();
}
}
@@ -2238,7 +2238,7 @@ void CdbEngine::processStop(const GdbMi &stopReason, bool conditionalBreakPointT
showMessage(message, LogError);
// Ignore things like WOW64, report tracepoints.
if (stopFlags & StopIgnoreContinue) {
postCommand("g", 0);
doContinueInferior();
return;
}
// Notify about state and send off command sequence to get stack, etc.
@@ -3179,7 +3179,7 @@ void CdbEngine::handleExpression(const CdbExtensionCommandPtr &command)
if (value)
processStop(cookie.stopReason, true);
else
postCommand("g", 0);
doContinueInferior();
}
}