DWARF sanity checking [Re: [patch] Fix empty PC range psymtab<->symtab discrepancy]

Tom Tromey tromey@redhat.com
Tue Mar 15 16:26:00 GMT 2011


>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Tom> Thanks for putting this info into the complaint.
Tom> One of my minor wish-list items is that we would do this for all DWARF
Tom> complaints.

Jan> While not a GNU project this functionality overlaps with the
Jan> pmachata/dwarflint branch of elfutils which should be more complete
Jan> as the checks are not just a side-effect.  Unaware how easy would
Jan> be to port it for non-ELF DWARF and whether the elfutils GPL
Jan> exception is good enough for FSF.

Yeah, I don't think gdb's DWARF reader will or should try to do what
dwarflint does.  But I also doubt we'll ever remove the complaints from
dwarf2read.c; and of course gdb may emit complaints that dwarflint will
not (e.g., for valid but odd stuff not handled by gdb).  And, given that
we will probably always have complaint calls, I think they should
provide enough information to actually find the problem DIE.

Tom



More information about the Gdb-patches mailing list