How to check the value of all registers in gdb? Also, how to check the value of a specific register in gdb?
How to check the value of all registers in gdb? Also, how to check the value of a specific register in gdb?
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 info registers
(or i r
) command 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 the value of a register, use the command print $<registrador>
, for example: p $ebp
.