This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]