This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch] readelf --debug-dump=gdb_index support for v4
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: binutils at sourceware dot org
- Cc: Doug Evans <dje at google dot com>
- Date: Tue, 25 Jan 2011 18:29:22 +0100
- Subject: [patch] readelf --debug-dump=gdb_index support for v4
Hello,
GDB HEAD has now started producing + requiring for consumption only .gdb_index
section version 4.
Re: .gdb_index version 4? [Re: [commit] fix symtab/12302]
http://sourceware.org/ml/gdb-patches/2011-01/msg00502.html
Here is the reader update. OK to check in?
Thanks,
Jan
binutils/
2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
* dwarf.c (display_gdb_index): Support version 4, warn on version 3.
--- binutils/dwarf.c 15 Dec 2010 08:45:59 -0000 1.82
+++ binutils/dwarf.c 25 Jan 2011 17:26:30 -0000
@@ -4893,8 +4893,15 @@ display_gdb_index (struct dwarf_section
/* Prior versions are obsolete, and future versions may not be
backwards compatible. */
- if (version != 3)
+ switch (version)
{
+ case 3:
+ warn (_("gdb_index version 3 is ignored by GDB as it has broken "
+ "Address table\n"));
+ break;
+ case 4:
+ break;
+ default:
warn (_("Unsupported version %lu.\n"), (unsigned long) version);
return 0;
}