aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2read.c8
2 files changed, 12 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3cdfce6..6a520dd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
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;
}