forked from qt-creator/qt-creator
Debugger: Handle extra dumpers with LLDB
This generalizes part of the previously GDB-only code paths Change-Id: Id32798073e3c8bcb23bfedf463bebc866c8275e2 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -281,10 +281,13 @@ void LldbEngine::setupInferior()
|
||||
const QString commands = stringSetting(ExtraDumperCommands);
|
||||
if (!commands.isEmpty()) {
|
||||
Command cmd("executeDebuggerCommand");
|
||||
cmd.arg(commands.toUtf8());
|
||||
cmd.arg("commands", commands.toUtf8());
|
||||
runCommand(cmd);
|
||||
}
|
||||
|
||||
Command cmd1("loadDumperFiles");
|
||||
runCommand(cmd1);
|
||||
|
||||
QString executable;
|
||||
QtcProcess::Arguments args;
|
||||
QtcProcess::prepareCommand(QFileInfo(sp.executable).absoluteFilePath(),
|
||||
@@ -409,6 +412,8 @@ void LldbEngine::handleResponse(const QByteArray &response)
|
||||
const QByteArray name = item.name();
|
||||
if (name == "data")
|
||||
refreshLocals(item);
|
||||
else if (name == "dumpers")
|
||||
watchHandler()->addDumpers(item);
|
||||
else if (name == "stack")
|
||||
refreshStack(item);
|
||||
else if (name == "stack-position")
|
||||
|
||||
Reference in New Issue
Block a user