PDA

View Full Version : How to look at the value of an address stored in a register?


esrever
10-23-2010, 10:37 PM
Hi,

Quick question. How to look at the value of an address stored in a register?
Correct me if I'm wrong. Based on the code below, we need to look for EIP right?

(gdb) info registers
eax 0x80485c8 134514120
ecx 0xbfffdeb8 -1073750344
edx 0xb 11
ebx 0x6f6ff4 7303156
esp 0xbfffdcf0 0xbfffdcf0
ebp 0xbfffdd28 0xbfffdd28
esi 0x8048510 134513936
edi 0x80485d4 134514132
eip 0x804846c 0x804846c <main+120>
eflags 0x282 [ SF IF ]
cs 0x73 115
ss 0x7b 123
ds 0x7b 123
es 0x7b 123
fs 0x0 0
gs 0x33 51

May I know how to view the value of an address below?
eip 0x804846c 0x804846c <main+120>