Commit 6d7dc484 authored by Gleb Popov's avatar Gleb Popov 💬
Browse files

Make GdbDebugger and LLDBDebugger honor IDE runtime setting

parent 65dd4c1c
......@@ -12,6 +12,8 @@
#include "debuglog.h"
#include <interfaces/icore.h>
#include <interfaces/iruntime.h>
#include <interfaces/iruntimecontroller.h>
#include <interfaces/iuicontroller.h>
#include <sublime/message.h>
......@@ -79,7 +81,7 @@ bool GdbDebugger::start(KConfigGroup& config, const QStringList& extraArguments)
}
fullCommand += arguments.join(QLatin1Char(' '));
m_process->start();
KDevelop::ICore::self()->runtimeController()->currentRuntime()->startProcess(m_process);
qCDebug(DEBUGGERGDB) << "Starting GDB with command" << fullCommand;
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(5, 78, 0)
......
......@@ -9,6 +9,9 @@
#include "dbgglobal.h"
#include "debuglog.h"
#include <interfaces/icore.h>
#include <interfaces/iruntime.h>
#include <interfaces/iruntimecontroller.h>
#include <util/environmentprofilelist.h>
#include <KConfigGroup>
......@@ -60,7 +63,7 @@ bool LldbDebugger::start(KConfigGroup& config, const QStringList& extraArguments
// Start!
m_process->setProcessEnvironment(processEnv);
m_process->setProgram(m_debuggerExecutable, arguments);
m_process->start();
ICore::self()->runtimeController()->currentRuntime()->startProcess(m_process);
qCDebug(DEBUGGERLLDB) << "Starting LLDB with command" << m_debuggerExecutable + QLatin1Char(' ') + arguments.join(QLatin1Char(' '));
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(5, 78, 0)
......
Supports Markdown
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