From 4a882905915d668ce9005d3277b5c9ea42e0f787 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Fri, 13 Dec 2013 13:34:04 +0200 Subject: [PATCH] GDB: Fix inserting a breakpoint while application is running Task-number: QTCREATORBUG-11084 Change-Id: Ic506894aaf8a48df4f2e0e93638432af39c887d6 Reviewed-by: hjk --- src/plugins/debugger/gdb/gdbengine.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index d7fc5d001b4..fb53eb8fc07 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()