diff options
author | hjk <hjk@theqtcompany.com> | 2015-01-28 17:17:31 +0100 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2015-01-28 17:21:42 +0000 |
commit | ed2a84c822c4eb3cd46d405bf366de1c557f2fe2 (patch) | |
tree | 5b89b72a57508b1bd93d1e577df7c6f00417a6ef /src | |
parent | d7f364f915cbbfd337e0b74c1d52545b053400fc (diff) | |
download | qt-creator-ed2a84c822c4eb3cd46d405bf366de1c557f2fe2.tar.gz |
Debugger: Prevent LLDB choking on extra dumper paths
Change-Id: I230a05274e95430162c3f2d05de5d93bf4985b4e
Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/debugger/lldb/lldbengine.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/plugins/debugger/lldb/lldbengine.cpp b/src/plugins/debugger/lldb/lldbengine.cpp index d5d1b6d5a1..f543122112 100644 --- a/src/plugins/debugger/lldb/lldbengine.cpp +++ b/src/plugins/debugger/lldb/lldbengine.cpp @@ -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); |