RFA: handle .gdb_index version 6
Tom Tromey
tromey@redhat.com
Wed Mar 21 19:11:00 GMT 2012
We recently bumped the .gdb_index version to 6.
The format is the same, but version 6 indices hold information about
inlined functions as well.
This patch changes readelf to cope.
Ok?
Tom
2012-03-21 Tom Tromey <tromey@redhat.com>
* dwarf.c (display_gdb_index): Handle index version 6.
Index: dwarf.c
===================================================================
RCS file: /cvs/src/src/binutils/dwarf.c,v
retrieving revision 1.108
diff -u -r1.108 dwarf.c
--- dwarf.c 15 Feb 2012 18:32:30 -0000 1.108
+++ dwarf.c 21 Mar 2012 16:47:20 -0000
@@ -1,5 +1,5 @@
/* dwarf.c -- display DWARF contents of a BFD binary file
- Copyright 2005, 2006, 2007, 2008, 2009, 2010, 2011
+ Copyright 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -5551,6 +5551,9 @@
warn (_("Version 4 does not support case insensitive lookups.\n"));
break;
case 5:
+ warn (_("Version 5 does not include inlined functions.\n"));
+ break;
+ case 6:
break;
default:
warn (_("Unsupported version %lu.\n"), (unsigned long) version);
More information about the Binutils
mailing list