aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-05-05 17:22:40 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-05-05 17:22:40 +0000
commit6f140a15a35d90cccc485451e2ecda586f23b4eb (patch)
tree8c2495ff57c0719bfb50f14ec8fe7160a7faf0fd /bfd/elf.c
parent01d9ad14d45872a6f97b7ca0599603cec06e1c63 (diff)
downloadgdb-6f140a15a35d90cccc485451e2ecda586f23b4eb.zip
gdb-6f140a15a35d90cccc485451e2ecda586f23b4eb.tar.gz
gdb-6f140a15a35d90cccc485451e2ecda586f23b4eb.tar.bz2
2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
* elf.c (_bfd_elf_close_and_cleanup): Only call _bfd_dwarf2_cleanup_debug_info on bfd_object.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 6ba2cb8..7f402c3 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -6683,10 +6683,9 @@ _bfd_elf_close_and_cleanup (bfd *abfd)
{
if (elf_shstrtab (abfd) != NULL)
_bfd_elf_strtab_free (elf_shstrtab (abfd));
+ _bfd_dwarf2_cleanup_debug_info (abfd);
}
- _bfd_dwarf2_cleanup_debug_info (abfd);
-
return _bfd_generic_close_and_cleanup (abfd);
}