summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2013-12-13 13:34:04 +0200
committerhjk <hjk121@nokiamail.com>2013-12-16 13:31:09 +0100
commit4a882905915d668ce9005d3277b5c9ea42e0f787 (patch)
tree9c9ae9c33f4753c77526a13d24441dac1360c807 /src/plugins
parent6b05e7ce192dc62d631a4cdf9d16a6be3ae2ab0a (diff)
downloadqt-creator-4a882905915d668ce9005d3277b5c9ea42e0f787.tar.gz
GDB: Fix inserting a breakpoint while application is running
Task-number: QTCREATORBUG-11084 Change-Id: Ic506894aaf8a48df4f2e0e93638432af39c887d6 Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/debugger/gdb/gdbengine.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp
index d7fc5d001b..fb53eb8fc0 100644
--- a/src/plugins/debugger/gdb/gdbengine.cpp
+++ b/src/plugins/debugger/gdb/gdbengine.cpp
@@ -5002,9 +5002,10 @@ void GdbEngine::tryLoadPythonDumpers()
const QByteArray uninstalledData = gdbBinaryFile.absolutePath().toLocal8Bit()
+ "/data-directory/python";
- postCommand("python sys.path.insert(1, '" + dumperSourcePath + "')", ConsoleCommand);
- postCommand("python sys.path.append('" + uninstalledData + "')", ConsoleCommand);
- postCommand("python from gdbbridge import *", ConsoleCommand, CB(handlePythonSetup));
+ const GdbCommandFlags flags = ConsoleCommand | Immediate;
+ postCommand("python sys.path.insert(1, '" + dumperSourcePath + "')", flags);
+ postCommand("python sys.path.append('" + uninstalledData + "')", flags);
+ postCommand("python from gdbbridge import *", flags, CB(handlePythonSetup));
}
void GdbEngine::reloadDebuggingHelpers()