2

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

5

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, privacy policy and cookie policy

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