From 04d8eac7a6d861b1c2ebf5fda8d49032ca4c3468 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 28 Oct 2014 09:51:32 +0100 Subject: Cdb: Replace postCommand("g") with doContinueInferior. Removes duplicated code and improves readability Change-Id: Ie04e1f247540babd6a840b860f2acb602f5e831d Reviewed-by: Christian Stenger --- src/plugins/debugger/cdb/cdbengine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp index 84835d55dc..86acd62f2f 100644 --- a/src/plugins/debugger/cdb/cdbengine.cpp +++ b/src/plugins/debugger/cdb/cdbengine.cpp @@ -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(); } } -- cgit v1.2.3