Commit 04d8eac7 authored by David Schulz's avatar David Schulz
Browse files

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



Removes duplicated code and improves readability

Change-Id: Ie04e1f247540babd6a840b860f2acb602f5e831d
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 865533b3
...@@ -856,7 +856,7 @@ void CdbEngine::runEngine() ...@@ -856,7 +856,7 @@ void CdbEngine::runEngine()
notifyInferiorUnrunnable(); notifyInferiorUnrunnable();
processStop(*m_coreStopReason, false); processStop(*m_coreStopReason, false);
} else { } else {
postCommand("g", 0); doContinueInferior();
} }
} }
...@@ -2238,7 +2238,7 @@ void CdbEngine::processStop(const GdbMi &stopReason, bool conditionalBreakPointT ...@@ -2238,7 +2238,7 @@ void CdbEngine::processStop(const GdbMi &stopReason, bool conditionalBreakPointT
showMessage(message, LogError); showMessage(message, LogError);
// Ignore things like WOW64, report tracepoints. // Ignore things like WOW64, report tracepoints.
if (stopFlags & StopIgnoreContinue) { if (stopFlags & StopIgnoreContinue) {
postCommand("g", 0); doContinueInferior();
return; return;
} }
// Notify about state and send off command sequence to get stack, etc. // Notify about state and send off command sequence to get stack, etc.
...@@ -3179,7 +3179,7 @@ void CdbEngine::handleExpression(const CdbExtensionCommandPtr &command) ...@@ -3179,7 +3179,7 @@ void CdbEngine::handleExpression(const CdbExtensionCommandPtr &command)
if (value) if (value)
processStop(cookie.stopReason, true); processStop(cookie.stopReason, true);
else else
postCommand("g", 0); doContinueInferior();
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment