forked from qt-creator/qt-creator
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user