How to print register values in GDB?

前端 未结 6 1438
北恋
北恋 2020-12-02 04:53

How do I print the value of %eax and %ebp?

(gdb) p $eax
$1 = void
6条回答
  •  萌比男神i
    2020-12-02 05:16

    • If only want check it once, info registers show registers.
    • If only want watch one register, for example, display $esp continue display esp registers in gdb command line.
    • If want watch all registers, layout regs continue show registers, with TUI mode.

提交回复
热议问题