Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
KDevelop
KDevelop
Commits
6d7dc484
Commit
6d7dc484
authored
Jun 30, 2022
by
Gleb Popov
💬
Browse files
Make GdbDebugger and LLDBDebugger honor IDE runtime setting
parent
65dd4c1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
plugins/gdb/gdb.cpp
View file @
6d7dc484
...
...
@@ -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)
...
...
plugins/lldb/lldbdebugger.cpp
View file @
6d7dc484
...
...
@@ -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)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment