3

How to make ghidra display the actual offset from rbp in assembly? For the same program, ghidra shows mov dword [rbp + local_c], edi I want to see the actual offset from rbp instead of local_c

In assembly, the actual instruction is: mov dword [rbp-0x04], edi

so offset is -0x04

enter image description here

1 Answer 1

7

The offsets are listed at the top of the function:

Ghidra Local Variables offsets

You can also hover over the local variable name for a few seconds to see a popup with the offset.

If you want to permanently disable the variable offset translation, uncheck Markup Stack Variable References under Edit -> Tool Options -> Options -> Listing Fields -> Operands Fields.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.