forked from qt-creator/qt-creator
Debugger: Make dumpers a bit more Python 3.x friendly
Looks like Ubuntu 13.10 will ship GDB linked to Python 3.3. Change-Id: I748e8461531a3554d27ebfbf7af33385f69586c0 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -4978,9 +4978,8 @@ void GdbEngine::tryLoadPythonDumpers()
|
||||
const QByteArray dumperSourcePath =
|
||||
Core::ICore::resourcePath().toLocal8Bit() + "/dumper/";
|
||||
|
||||
postCommand("python execfile('" + dumperSourcePath + "gbridge.py')",
|
||||
ConsoleCommand, CB(handlePythonSetup));
|
||||
|
||||
postCommand("python sys.path.insert(1, '" + dumperSourcePath + "')", ConsoleCommand);
|
||||
postCommand("python from gbridge import *", ConsoleCommand, CB(handlePythonSetup));
|
||||
}
|
||||
|
||||
void GdbEngine::reloadDebuggingHelpers()
|
||||
|
||||
Reference in New Issue
Block a user