From 1a019ca02a10d154a3816ecfed7d97a75606bc16 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 13 May 2022 11:44:49 +0200 Subject: [PATCH] Debugger: Fix path to uninstalled gdb data Affects only self-build gdb. Amends adf1243ed9397f98b3c0b5352711de0d5c05c73a. Change-Id: I0b8380f27c14e155629aaf7235721aa80c0a3d45 Reviewed-by: Christian Stenger --- src/plugins/debugger/gdb/gdbengine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index ddad71e0371..229a1658a0b 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -3989,8 +3989,8 @@ void GdbEngine::setupEngine() //if (terminal()->isUsable()) // runCommand({"set inferior-tty " + QString::fromUtf8(terminal()->slaveDevice())}); - const QString uninstalledData = - rp.debugger.command.executable().pathAppended("data-directory/python").path(); + const QString uninstalledData = rp.debugger.command.executable().parentDir() + .pathAppended("data-directory/python").path(); runCommand({"python sys.path.insert(1, '" + rp.dumperPath.path() + "')"}); runCommand({"python sys.path.append('" + uninstalledData + "')"});