我目前正在使用GDB和NASM进行汇编编程。
不幸的是,我无法看到EFlags寄存器助记符(ZF、AF、PF等)在GDB内部。
我看到的是一个十进制值:eflags 0x246 582
我确信我可以将十进制数转换为二进制数,并自己计算标志数,但对于一个其他人似乎都有的功能,这似乎需要大量的工作?
操作系统:Mountain Lion 10.8.2
GDB版本:
GNU gdb 6.3.50-20050815 (Apple version gdb-1824) (Thu Nov 15 10:42:43 UTC 2012)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".
发布于 2013-03-12 19:04:45
要查看设置的标志,请执行以下操作:
info registers eflags
https://stackoverflow.com/questions/15359329
复制相似问题