Fix 3289: fallback for missing symbol names in LLDB (AArch64) (#3309)

* fix: fallback for missing symbol names in LLDB (AArch64)

* Trigger CI rerun

* Tweak: returning nothing instead of section names/addr

* tweak: return empty str -> None
pull/3311/head
Piers Taylor 3 months ago committed by GitHub
parent 8b0278be13
commit 9e4aa27ef4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1316,7 +1316,11 @@ class LLDBProcess(pwndbg.dbg_mod.Process):
if sym_addr != address:
# Print the symbol name along with an offset value if the address we
# were given does not match up with the symbol exactly.
return f"{ctx.symbol.name}+{address - sym_addr}"
sym_name = ctx.symbol.name
if not ctx.symbol.name:
return None
return f"{sym_name}+{address - sym_addr}"
return ctx.symbol.name

Loading…
Cancel
Save