* dwarf2read.c (read_attribute_value): Issue a complaint when

adjusting size attribute values of 0xffffffff as zero.
This commit is contained in:
Joel Brobecker 2008-06-27 17:56:47 +00:00
parent f747e0ce0a
commit 01c66ae6a6
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-06-27 Joel Brobecker <brobecker@adacore.com>
* dwarf2read.c (read_attribute_value): Issue a complaint when
adjusting size attribute values of 0xffffffff as zero.
2008-06-27 Joseph Myers <joseph@codesourcery.com>
* i386-tdep.c (i386_16_byte_align_p): New.

View File

@ -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;
}