[patch] dwarf display: false (location list) in DWARF-4

Jan Kratochvil jan.kratochvil@redhat.com
Wed Jul 27 18:28:00 GMT 2011


On Wed, 27 Jul 2011 18:28:54 +0200, Jakub Jelinek wrote:
> On Wed, Jul 27, 2011 at 12:06:05PM +0200, Jan Kratochvil wrote:
> > 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
> > 
> > 	* dwarf.c (read_and_display_attr_value): Recognize DW_FORM_data4 and
> > 	DW_FORM_data8 as location list pointers only for DWARF < 4.
> 
> Ok for trunk.

Checked in:
	http://sourceware.org/ml/binutils-cvs/2011-07/msg00141.html


> This BTW shows a gcc bug for -gdwarf-3 - the DWARF3 standard
> explicitly disallows DW_FORM_data4 and DW_FORM_data8 from constant class if
> the attribute has also some *ptr class (from the DWARF3 list it seems that
> only DW_AT_data_member_location is affected.

OK, true.  GDB (handle_data_member_location, Tom Tromey) parses it in a GCC
compatible way FYI, always preferring the constant class.


Thanks,
Jan



More information about the Binutils mailing list