Debugger: Execute extra dumper commands after cdb start

Change-Id: I3dfc803695ffaa04d719103d8bec59ce8b4f08e5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2017-05-17 09:58:35 +02:00
parent 4eac9533e1
commit f811cff769

View File

@@ -2974,6 +2974,18 @@ void CdbEngine::setupScripting(const DebuggerResponse &response)
[this](const DebuggerResponse &response) {
watchHandler()->addDumpers(response.data["result"]["dumpers"]);
}});
const QString path = stringSetting(ExtraDumperFile);
if (!path.isEmpty() && QFileInfo(path).isReadable()) {
DebuggerCommand cmd("addDumperModule", ScriptCommand);
cmd.arg("path", path);
runCommand(cmd);
}
const QString commands = stringSetting(ExtraDumperCommands);
if (!commands.isEmpty()) {
for (auto command : commands.split('\n', QString::SkipEmptyParts))
runCommand({command, ScriptCommand});
}
}
void CdbEngine::mergeStartParametersSourcePathMap()