forked from qt-creator/qt-creator
Debugger: Prevent LLDB choking on extra dumper paths
Change-Id: I230a05274e95430162c3f2d05de5d93bf4985b4e Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -273,15 +273,9 @@ void LldbEngine::setupInferior()
|
||||
|
||||
const QString path = stringSetting(ExtraDumperFile);
|
||||
if (!path.isEmpty()) {
|
||||
QFileInfo fi(path);
|
||||
|
||||
Command cmd1("executeDebuggerCommand");
|
||||
cmd1.arg("command", "python sys.path.insert(1, '" + fi.absolutePath().toUtf8() + "')");
|
||||
runCommand(cmd1);
|
||||
|
||||
Command cmd2("executeDebuggerCommand");
|
||||
cmd2.arg("python from " + fi.baseName().toUtf8() + " import *");
|
||||
runCommand(cmd2);
|
||||
Command cmd("addExtraDumper");
|
||||
cmd.arg("path", path.toUtf8());
|
||||
runCommand(cmd);
|
||||
}
|
||||
|
||||
const QString commands = stringSetting(ExtraDumperCommands);
|
||||
|
||||
Reference in New Issue
Block a user