如何在 GDB 中打印寄存器值? [英] How to print register values in GDB?
本文介绍了如何在 GDB 中打印寄存器值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何打印%eax
和%ebp
的值?
(gdb) p $eax
$1 = void
推荐答案
info registers
显示所有寄存器;info registers eax
只显示寄存器 eax
.该命令可简写为i r
info registers
shows all the registers; info registers eax
shows just the register eax
. The command can be abbreviated as i r
这篇关于如何在 GDB 中打印寄存器值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文