From 6ec8b48eb879136808e264dc6a41cffed5e0133b Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Wed, 26 Jan 2011 10:27:46 +0000 Subject: binutils/ * dwarf.c (display_gdb_index): Support version 4, warn on version 3. --- binutils/dwarf.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'binutils/dwarf.c') diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 6d1b65b..2337c53 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -4893,8 +4893,14 @@ display_gdb_index (struct dwarf_section *section, /* Prior versions are obsolete, and future versions may not be backwards compatible. */ - if (version != 3) + switch (version) { + case 3: + warn (_("The address table data in version 3 may be wrong.\n")); + break; + case 4: + break; + default: warn (_("Unsupported version %lu.\n"), (unsigned long) version); return 0; } -- cgit v1.1