diff --git a/pwndbg/dbg/lldb/__init__.py b/pwndbg/dbg/lldb/__init__.py index 4ecbeb321..eb94960eb 100644 --- a/pwndbg/dbg/lldb/__init__.py +++ b/pwndbg/dbg/lldb/__init__.py @@ -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