diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-01-26 10:27:46 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-01-26 10:27:46 +0000 |
commit | 6ec8b48eb879136808e264dc6a41cffed5e0133b (patch) | |
tree | 6b9bd7b1f6d23d39d4c2f06309bf4d04ba8b759c | |
parent | ca19b261ecc3877afc888f4efaf54e50ce8aa92f (diff) | |
download | gdb-6ec8b48eb879136808e264dc6a41cffed5e0133b.zip gdb-6ec8b48eb879136808e264dc6a41cffed5e0133b.tar.gz gdb-6ec8b48eb879136808e264dc6a41cffed5e0133b.tar.bz2 |
binutils/
* dwarf.c (display_gdb_index): Support version 4, warn on version 3.
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/dwarf.c | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index d02f458..bab4756 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2011-01-26 Jan Kratochvil <jan.kratochvil@redhat.com> + Doug Evans <dje@google.com> + + * dwarf.c (display_gdb_index): Support version 4, warn on version 3. + 2011-01-19 Maciej W. Rozycki <macro@codesourcery.com> * readelf.c (process_object): Free dynamic_section after use. 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; } |