Debugger: Fix breakpoint settings in assembler for LLDB

Setting the breakpoint actually worked, but it was reported back
using a wrong address, so it never went "red" in the disassembler view.

Change-Id: I4c2bd808705dfe793c0febf29b3e78b318dbae00
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2024-02-28 16:32:50 +01:00
parent 57874c9c0d
commit 4ca8ad8293

View File

@@ -1583,7 +1583,8 @@ class Dumper(DumperBase):
result += ',ignorecount="%d"' % loc.GetIgnoreCount() result += ',ignorecount="%d"' % loc.GetIgnoreCount()
result += ',file="%s"' % toCString(lineEntry.GetFileSpec()) result += ',file="%s"' % toCString(lineEntry.GetFileSpec())
result += ',line="%d"' % lineEntry.GetLine() result += ',line="%d"' % lineEntry.GetLine()
result += ',addr="%s"},' % addr.GetFileAddress() result += ',addr="%s"' % addr.GetLoadAddress(self.target)
result += ',faddr="%s"},' % addr.GetFileAddress()
result += ']' result += ']'
if lineEntry is not None: if lineEntry is not None:
result += ',file="%s"' % toCString(lineEntry.GetFileSpec()) result += ',file="%s"' % toCString(lineEntry.GetFileSpec())