aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-10-01 16:17:07 +0000
committerNick Clifton <nickc@redhat.com>2001-10-01 16:17:07 +0000
commit0cea17c5979ee8eacdc4d444ee842a5d1261db8b (patch)
treed7bc35f8d68a92461117c1508524851f87bcca78
parent2673d84d89450127a0329ba0983b914d444df83c (diff)
downloadgdb-0cea17c5979ee8eacdc4d444ee842a5d1261db8b.zip
gdb-0cea17c5979ee8eacdc4d444ee842a5d1261db8b.tar.gz
gdb-0cea17c5979ee8eacdc4d444ee842a5d1261db8b.tar.bz2
Detect and warn about DWARF64 format .debug_arange sections
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/readelf.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index d15a2d9..55bfba2 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-01 Nick Clifton <nickc@cambridge.redhat.com>
+
+ * readelf.c (display_debug_aranges): Warn about DWARF64 format
+ .debug_arange sections.
+
2001-08-05 Philip Blundell <philb@gnu.org>
* binutils.texi (objdump): Fix typos. Use "Thumb" not "THUMB".
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 1ce0eb7..4bfc1d7 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -6945,6 +6945,12 @@ display_debug_aranges (section, start, file)
arange.ar_pointer_size = BYTE_GET (external->ar_pointer_size);
arange.ar_segment_size = BYTE_GET (external->ar_segment_size);
+ if (arange.ar_length == 0xffffffff)
+ {
+ warn (_("DWARF64 aranges not currently supported.\n"));
+ break;
+ }
+
if (arange.ar_version != 2)
{
warn (_("Only DWARF 2 aranges are currently supported.\n"));