How to check register values by gdb?

1

How to check the value of all registers in gdb? Also, how to check the value of a specific register in gdb?

    
asked by anonymous 26.02.2015 / 15:54

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 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 .

    
26.02.2015 / 15:54