How to locate the DIE from Dwarf Error message?

Keith Walker
Wed Apr 9 09:53:00 GMT 2014

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.


> -----Original Message-----
> From: [] On
> Behalf Of Terry Guo
> Sent: 09 April 2014 03:26
> To:
> 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

More information about the Gdb mailing list