Debugger: Fix path to uninstalled gdb data

Affects only self-build gdb.

Amends adf1243ed9.

Change-Id: I0b8380f27c14e155629aaf7235721aa80c0a3d45
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2022-05-13 11:44:49 +02:00
parent b1fc92f8b6
commit 1a019ca02a

View File

@@ -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 + "')"});