Debugger: Fix lldb fetchFullBacktrace

Change-Id: Ib0a513ecd6c0a0094797fe987aeaddc57d0b5149
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Marcus Tillmanns
2023-10-19 11:30:17 +02:00
parent ada1a7b1c0
commit 3f647a4bc5
2 changed files with 4 additions and 4 deletions

View File

@@ -1836,11 +1836,11 @@ class Dumper(DumperBase):
self.process.SetSelectedThreadByID(int(args['id'])) self.process.SetSelectedThreadByID(int(args['id']))
self.reportResult('', args) self.reportResult('', args)
def fetchFullBacktrace(self, _=None): def fetchFullBacktrace(self, args):
command = 'thread backtrace all' command = 'thread backtrace all'
result = lldb.SBCommandReturnObject() result = lldb.SBCommandReturnObject()
self.debugger.GetCommandInterpreter().HandleCommand(command, result) self.debugger.GetCommandInterpreter().HandleCommand(command, result)
self.reportResult(self.hexencode(result.GetOutput()), {}) self.reportResult('fulltrace="%s"' % self.hexencode(result.GetOutput()), args)
def executeDebuggerCommand(self, args): def executeDebuggerCommand(self, args):
self.reportToken(args) self.reportToken(args)

View File

@@ -1030,8 +1030,8 @@ void LldbEngine::fetchDisassembler(DisassemblerAgent *agent)
void LldbEngine::fetchFullBacktrace() void LldbEngine::fetchFullBacktrace()
{ {
DebuggerCommand cmd("fetchFullBacktrace"); DebuggerCommand cmd("fetchFullBacktrace");
cmd.callback = [](const DebuggerResponse &response) { cmd.callback = [](const DebuggerResponse &response) {
Internal::openTextEditor("Backtrace $", fromHex(response.data.data())); Internal::openTextEditor("Backtrace $", fromHex(response.data["fulltrace"].data()));
}; };
runCommand(cmd); runCommand(cmd);
} }