interpret of gdb "gdb info reg"
来源:互联网 发布:excel数据验证限制 编辑:程序博客网 时间:2024/06/06 21:41
(gdb) info reg
eax 0x0 0
ecx 0x0 0
edx 0xfffffff4 -12
ebx 0x8e98f68 149524328
esp 0xf0828630 0xf0828630
ebp 0xf0828768 0xf0828768
esi 0x1 1
edi 0xf08293b4 -259877964
eip 0x812d529 0x812d529
eflags 0x10202 66050
cs 0x23 35
ss 0x2b 43
ds 0x2b 43
es 0x2b 43
fs 0x0 0
gs 0x63 99
(gdb)
The first column is the register name, the second column is its value in hexadecimals
and the last column is its value in decimals.
I'm not sure what you're trying to do, but usually you get more useful information
with the "disassemble" gdb command, as that shows which instructions are executed.
If the binary is compiled with debugging info then you get a lot more information and
backtraces are helpful too then, especially "bt full", as that gives a lot of extra info.
EIP is the instruction pointer, EAX is both the first argument of a function as well as
the return value (though it depends on which calling convention is used), but of course
the registers can be used for other things too. You can't tell what's going on by looking
at the register values, for that you need to look at the instructions. "info reg" is useful
when you want to look up the value of a register that is used by some instruction.
- interpret of gdb "gdb info reg"
- GDB info
- gdb info
- 如何利用gdb调试程序之细节(info reg命令以及寄存器地址)
- gdb info 3
- gdb info frame信息解释
- gdb info frame信息解释
- gdb之info/show命令
- gdb调试Go,info goroutines
- GDB
- gdb
- GDB
- GDB
- gdb
- GDB
- Gdb
- GDB
- gdb
- 彻底搞定C指针-函数名与函数指针
- 第二章:Samba服务全攻略
- Hibernate学习之HQL详解1
- 串口初始化中U0DLL=Fdiv%256怎样理解(待解决)
- luaL_optinteger (lua_State *L, int narg, lua_Integer def)
- interpret of gdb "gdb info reg"
- 埋藏
- Hibernate常用代码模板
- Hibernate学习小结之实体对象之间关系
- Java新浪微博客户端开发
- Hibernate和JDBC实现CRUD操作的比较
- ORA-28000: the account is locked-的解决办法
- AT&T寻址
- 给定一整型数组,若数组中某个下标值大的元素值小于某个下标值比它小的元素值,称这是一个反序。