* How to locate the DIE from Dwarf Error message?
@ 2014-04-09 2:26 Terry Guo
2014-04-09 9:53 ` Keith Walker
0 siblings, 1 reply; 2+ messages in thread
From: Terry Guo @ 2014-04-09 2:26 UTC (permalink / raw)
To: gdb
Hi there,
I am using gdb to debug my ELF file and getting below message:
Dwarf Error: Cannot find DIE at 0x0 referenced from DIE at 0x1d1b8 [in
module /Users/darius/work/micro/ussio/ussio-dbg-bug/main.elf]
After dump the dwarf information from main.elf with command
"arm-none-eabi-readelf -w main.elf", I can not find anything related
to address 0x1d1b8. So what does the 0x1d1b8 stand for? How can I
figure out which DIE at this address? Please help. Thanks.
BR,
Terry
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: How to locate the DIE from Dwarf Error message?
2014-04-09 2:26 How to locate the DIE from Dwarf Error message? Terry Guo
@ 2014-04-09 9:53 ` Keith Walker
0 siblings, 0 replies; 2+ messages in thread
From: Keith Walker @ 2014-04-09 9:53 UTC (permalink / raw)
To: 'Terry Guo'; +Cc: gdb
I would expect that the error is referencing a DIE at an offset of 0x1d1b8
in the .debug_info (or possibly .debug_types) section.
I suspect that you will find that this DIE has an attribute which has a
reference which points at offset 0x0 which has caused this error message.
[ This is the DWARF equivalent of attempting to dereference a NULL pointer
:-) ]
Of course the real question will then be why is there a reference to 0x0
rather than to an actual DIE.
Keith
> -----Original Message-----
> From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On
> Behalf Of Terry Guo
> Sent: 09 April 2014 03:26
> To: gdb@sourceware.org
> Subject: How to locate the DIE from Dwarf Error message?
>
> Hi there,
>
> I am using gdb to debug my ELF file and getting below message:
>
> Dwarf Error: Cannot find DIE at 0x0 referenced from DIE at 0x1d1b8 [in
> module /Users/darius/work/micro/ussio/ussio-dbg-bug/main.elf]
>
> After dump the dwarf information from main.elf with command
> "arm-none-eabi-readelf -w main.elf", I can not find anything related
> to address 0x1d1b8. So what does the 0x1d1b8 stand for? How can I
> figure out which DIE at this address? Please help. Thanks.
>
> BR,
> Terry
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-09 9:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-09 2:26 How to locate the DIE from Dwarf Error message? Terry Guo
2014-04-09 9:53 ` Keith Walker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox