forked from qt-creator/qt-creator
Docker: mount python dumpers to device
Change-Id: Ic0d67b4a18247439f5797a0dcf74df945ef6f61e Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -3985,7 +3985,6 @@ void GdbEngine::setupEngine()
|
||||
// We need to guarantee a roundtrip before the adapter proceeds.
|
||||
// Make sure this stays the last command in startGdb().
|
||||
// Don't use ConsoleCommand, otherwise Mac won't markup the output.
|
||||
const QString dumperSourcePath = ICore::resourcePath("debugger/").toString();
|
||||
|
||||
//if (terminal()->isUsable())
|
||||
// runCommand({"set inferior-tty " + QString::fromUtf8(terminal()->slaveDevice())});
|
||||
@@ -3993,7 +3992,7 @@ void GdbEngine::setupEngine()
|
||||
const QString uninstalledData =
|
||||
rp.debugger.command.executable().pathAppended("data-directory/python").path();
|
||||
|
||||
runCommand({"python sys.path.insert(1, '" + dumperSourcePath + "')"});
|
||||
runCommand({"python sys.path.insert(1, '" + rp.dumperPath.path() + "')"});
|
||||
runCommand({"python sys.path.append('" + uninstalledData + "')"});
|
||||
runCommand({"python from gdbbridge import *"});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user