x86_64 gdb and objdump

Daniel Jacobowitz drow@false.org
Mon Jul 2 19:23:00 GMT 2007


On Mon, Jul 02, 2007 at 12:14:43PM -0700, Srinivas Murthy wrote:
> #0  0x00000000004004f5 in bar () at test.c:10
> 10      test.c: No such file or directory.
>        in test.c
> (gdb) bt
> #0  0x00000000004004f5 in bar () at test.c:10
> Cannot access memory at address 0x7fbfffee98

Does x/x 0x7fbfffee98 work?

> However, objdump shows that there is some valid content at the location:
> 
> # objdump -D /tmp/core.test.30235 |less |grep 7fbfffee98
>  7fbfffe95f:   00 08                   add    %cl,(%rax)

That's not the same address...

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb mailing list