freebsd-ports/devel/kdevelop/files/patch-gdb.patch
Gleb Popov 166cea3628 Uses/cabal.mk: Introduce CABAL_WRAPPER_SCRIPTS variable.
Before this change every Haskell executable was wrapped into a shell script
which was installed into ${PREFIX}/bin while the actual executable was installed
into {PREFIX}/libexec/cabal. This was required to set env variables pointing the
Haskell program to its data files under ${PREFIX}/share. However, not every
Haskell program uses this feature.

Now the shell wrapping is off by default and CABAL_WRAPPER_SCRIPTS knob can be
used to enable it for a given port/executable.

Adjust all Haskell ports affected by this change.
2022-07-28 22:52:56 +03:00

22 lines
768 B
Diff

diff --git plugins/gdb/gdb.cpp plugins/gdb/gdb.cpp
index eb15feb446..11c115400f 100644
--- plugins/gdb/gdb.cpp
+++ plugins/gdb/gdb.cpp
@@ -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)