From 0523a7f38bca76ae56798a48573fc50343b2b402 Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 27 Feb 2019 13:33:33 +0100 Subject: [PATCH] Debugger: Load dumpers after possible user defined modules with CDB As is done for GDB and LLDB. Fixes: QTCREATORBUG-20481 Change-Id: I13e73789e175fdca675c25378a856a5482d9e8fa Reviewed-by: David Schulz --- src/plugins/debugger/cdb/cdbengine.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp index 5e62bf5bb6d..287a4cded69 100644 --- a/src/plugins/debugger/cdb/cdbengine.cpp +++ b/src/plugins/debugger/cdb/cdbengine.cpp @@ -2763,10 +2763,6 @@ void CdbEngine::setupScripting(const DebuggerResponse &response) runCommand({"from cdbbridge import Dumper", ScriptCommand}); runCommand({"print(dir())", ScriptCommand}); runCommand({"theDumper = Dumper()", ScriptCommand}); - runCommand({"theDumper.loadDumpers(None)", ScriptCommand, - [this](const DebuggerResponse &response) { - watchHandler()->addDumpers(response.data["result"]["dumpers"]); - }}); const QString path = stringSetting(ExtraDumperFile); if (!path.isEmpty() && QFileInfo(path).isReadable()) { @@ -2779,6 +2775,11 @@ void CdbEngine::setupScripting(const DebuggerResponse &response) for (const auto &command : commands.split('\n', QString::SkipEmptyParts)) runCommand({command, ScriptCommand}); } + + runCommand({"theDumper.loadDumpers(None)", ScriptCommand, + [this](const DebuggerResponse &response) { + watchHandler()->addDumpers(response.data["result"]["dumpers"]); + }}); } void CdbEngine::mergeStartParametersSourcePathMap()