diff options
author | Tristan Gingold <gingold@adacore.com> | 2009-07-06 14:45:56 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2009-07-06 14:45:56 +0000 |
commit | c8450da85c70275a0d6c414df4d732f2bd97f8d2 (patch) | |
tree | e5c048da5143b87906957f1d9dc677a0a0d93871 /binutils/objdump.c | |
parent | 07d8eb5534a8109a6e78ff17268e19d5d18ad361 (diff) | |
download | gdb-c8450da85c70275a0d6c414df4d732f2bd97f8d2.zip gdb-c8450da85c70275a0d6c414df4d732f2bd97f8d2.tar.gz gdb-c8450da85c70275a0d6c414df4d732f2bd97f8d2.tar.bz2 |
2009-07-06 Tristan Gingold <gingold@adacore.com>
* objdump.c (dump_dwarf_section): Handle .eh_frame like other dwarf
sections.
* dwarf.h (struct dwarf_section_display): Remove eh_frame field.
* dwarf.c (debug_displays): Adjust for removed field.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r-- | binutils/objdump.c | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c index dfe6a57..b346aa7 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -2236,21 +2236,18 @@ dump_dwarf_section (bfd *abfd, asection *section, && debug_displays [i].enabled != NULL && *debug_displays [i].enabled) { - if (!debug_displays [i].eh_frame) - { - struct dwarf_section *sec = &debug_displays [i].section; - - if (strcmp (sec->uncompressed_name, match) == 0) - sec->name = sec->uncompressed_name; - else - sec->name = sec->compressed_name; - if (load_specific_debug_section (i, section, abfd)) - { - debug_displays [i].display (sec, abfd); + struct dwarf_section *sec = &debug_displays [i].section; - if (i != info && i != abbrev) - free_debug_section (i); - } + if (strcmp (sec->uncompressed_name, match) == 0) + sec->name = sec->uncompressed_name; + else + sec->name = sec->compressed_name; + if (load_specific_debug_section (i, section, abfd)) + { + debug_displays [i].display (sec, abfd); + + if (i != info && i != abbrev) + free_debug_section (i); } break; } |