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]

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


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


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