This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: sun compiler and gdb
>>>>> "Tomasz" == Tomasz Grobelny <tomasz@grobelny.oswiecenia.net> writes:
tomasz> Die: DW_TAG_<unknown> (abbrev 8, offset 0x199)
[...]
Tomasz> Dwarf Error: Cannot find type of die [in module /login/sg209371/a.out]
Tomasz> This time this is gdb 7.0.1.
Tomasz> The question is indeed whether the issue is on compiler side or
Tomasz> gdb side. The comments from the link you mentioned are from
Tomasz> 2007, I would think that Oracle is capable of fixing a bug in 5
Tomasz> years... Also the dwarfdump shows some sensible information
Tomasz> (some symbols, names of the source files).
This kind of question can't be answered without more information.
It could be a compiler bug, or a gdb bug, or a disagreement about the
interpretation of DWARF.
If you have a small test case, a dump of the DWARF information might
prove helpful. If you only have a large test case, then something more
selective could help.
For example, in the above you could examine the DWARF for DIE 0x199.
gdb just says DW_TAG_<unknown>, which isn't very helpful... but
presumably the platform DWARF dumper would do better.
Tom