This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
DWARF sanity checking [Re: [patch] Fix empty PC range psymtab<->symtab discrepancy]
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org, Petr Machata <pmachata at redhat dot com>
- Date: Tue, 15 Mar 2011 17:00:10 +0100
- Subject: DWARF sanity checking [Re: [patch] Fix empty PC range psymtab<->symtab discrepancy]
- References: <20110314175625.GA29782@host1.jankratochvil.net> <m3vczk8k1q.fsf@fleche.redhat.com>
On Tue, 15 Mar 2011 16:45:05 +0100, Tom Tromey wrote:
> The patch looks good to me.
Checked in:
http://sourceware.org/ml/gdb-cvs/2011-03/msg00188.html
> Jan> + complaint (&symfile_complaints,
> Jan> + _("DW_AT_low_pc %s is not < DW_AT_high_pc %s "
> Jan> + "for DIE at 0x%x [in module %s]"),
> Jan> + paddress (gdbarch, part_die->lowpc),
> Jan> + paddress (gdbarch, part_die->highpc),
> Jan> + part_die->offset, cu->objfile->name);
>
> Thanks for putting this info into the complaint.
> One of my minor wish-list items is that we would do this for all DWARF
> complaints.
While not a GNU project this functionality overlaps with the
pmachata/dwarflint branch of elfutils which should be more complete as the
checks are not just a side-effect. Unaware how easy would be to port it for
non-ELF DWARF and whether the elfutils GPL exception is good enough for FSF.
Thanks,
Jan