summaryrefslogtreecommitdiff
path: root/src/plugins/valgrind/memcheckengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/valgrind/memcheckengine.cpp')
-rw-r--r--src/plugins/valgrind/memcheckengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/valgrind/memcheckengine.cpp b/src/plugins/valgrind/memcheckengine.cpp
index c463b2be6a..12bae14f67 100644
--- a/src/plugins/valgrind/memcheckengine.cpp
+++ b/src/plugins/valgrind/memcheckengine.cpp
@@ -159,8 +159,8 @@ void MemcheckWithGdbRunControl::startDebugger()
sp.expectedSignals.append("SIGTRAP");
QString errorMessage;
- RunControl *gdbRunControl = Debugger::createDebuggerRunControl(sp, runConfiguration(), &errorMessage);
- QTC_ASSERT(gdbRunControl, return);
+ auto *gdbRunControl = new RunControl(nullptr, ProjectExplorer::Constants::DEBUG_RUN_MODE);
+ (void) new Debugger::DebuggerRunTool(gdbRunControl, sp, &errorMessage);
connect(gdbRunControl, &RunControl::finished,
gdbRunControl, &RunControl::deleteLater);
gdbRunControl->initiateStart();