forked from qt-creator/qt-creator
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:
@@ -3989,8 +3989,8 @@ void GdbEngine::setupEngine()
|
|||||||
//if (terminal()->isUsable())
|
//if (terminal()->isUsable())
|
||||||
// runCommand({"set inferior-tty " + QString::fromUtf8(terminal()->slaveDevice())});
|
// runCommand({"set inferior-tty " + QString::fromUtf8(terminal()->slaveDevice())});
|
||||||
|
|
||||||
const QString uninstalledData =
|
const QString uninstalledData = rp.debugger.command.executable().parentDir()
|
||||||
rp.debugger.command.executable().pathAppended("data-directory/python").path();
|
.pathAppended("data-directory/python").path();
|
||||||
|
|
||||||
runCommand({"python sys.path.insert(1, '" + rp.dumperPath.path() + "')"});
|
runCommand({"python sys.path.insert(1, '" + rp.dumperPath.path() + "')"});
|
||||||
runCommand({"python sys.path.append('" + uninstalledData + "')"});
|
runCommand({"python sys.path.append('" + uninstalledData + "')"});
|
||||||
|
|||||||
Reference in New Issue
Block a user