From: Joel Brobecker Date: Fri, 27 Jun 2008 17:56:47 +0000 (+0000) Subject: * dwarf2read.c (read_attribute_value): Issue a complaint when X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=01c66ae6a6b5eb724e952f188edfba83257fe1c8;p=binutils-gdb.git * dwarf2read.c (read_attribute_value): Issue a complaint when adjusting size attribute values of 0xffffffff as zero. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3cdfce6af6c..6a520dd7e41 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-06-27 Joel Brobecker + + * dwarf2read.c (read_attribute_value): Issue a complaint when + adjusting size attribute values of 0xffffffff as zero. + 2008-06-27 Joseph Myers * i386-tdep.c (i386_16_byte_align_p): New. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 9723ddd0d7f..8f1062d90a7 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -6244,7 +6244,13 @@ read_attribute_value (struct attribute *attr, unsigned form, if (attr->name == DW_AT_byte_size && form == DW_FORM_data4 && DW_UNSND (attr) >= 0xffffffff) - DW_UNSND (attr) = 0; + { + complaint + (&symfile_complaints, + _("Suspicious DW_AT_byte_size value treated as zero instead of 0x%lx"), + DW_UNSND (attr)); + DW_UNSND (attr) = 0; + } return info_ptr; }