How to print register values in GDB?

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

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

(gdb) p $eax
$1 = void
6条回答
  •  半阙折子戏
    2020-12-02 05:09

    There is also:

    info all-registers
    

    Then you can get the register name you are interested in -- very useful for finding platform-specific registers (like NEON Q... on ARM).

提交回复
热议问题