How to verify register values by gdb?

Asked

Viewed 253 times

1

How to check the value of all registrars in gdb? Also, how to check the value of a specific registrar in gdb?

1 answer

1


To check the values of all registers in gdb, use the command info all-registers (or i all). This includes floating point and vector registers. The command info registers (or i r) does not display floating point and vector registers.

To check specific registers, use info registers <lista de registradores>, for example info registers r1 r2.

To print a register value, use the command print $<registrador>, for example: p $ebp.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.