aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-06-27 17:56:47 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-06-27 17:56:47 +0000
commit01c66ae6a6b5eb724e952f188edfba83257fe1c8 (patch)
tree69db07f42df5cf2dd7fd3177c3759e1022daae93 /gdb/dwarf2read.c
parentf747e0ce0af7f5429fead10867abeb97ac1e6dde (diff)
downloadgdb-01c66ae6a6b5eb724e952f188edfba83257fe1c8.zip
gdb-01c66ae6a6b5eb724e952f188edfba83257fe1c8.tar.gz
gdb-01c66ae6a6b5eb724e952f188edfba83257fe1c8.tar.bz2
* dwarf2read.c (read_attribute_value): Issue a complaint when
adjusting size attribute values of 0xffffffff as zero.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 9723ddd..8f1062d 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;
}