aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-10-22 01:16:34 +0000
committerDaniel Jacobowitz <drow@false.org>2007-10-22 01:16:34 +0000
commitfe3e1990b3ea81a95d90721f8e86fb5a10f76ba1 (patch)
tree677f8787ef5c105ed5ee005bdabfce70c7325da4 /gdb/elfread.c
parentaf81c53cb734e712ffa213e94a4db302d1a3f8a2 (diff)
downloadbinutils-fe3e1990b3ea81a95d90721f8e86fb5a10f76ba1.zip
binutils-fe3e1990b3ea81a95d90721f8e86fb5a10f76ba1.tar.gz
binutils-fe3e1990b3ea81a95d90721f8e86fb5a10f76ba1.tar.bz2
* coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
* dwarf2read.c (dwarf2_free_objfile): New. * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile. * symfile.h (dwarf2_free_objfile): Declare.
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r--gdb/elfread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 7b317b8..e479a76 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -709,6 +709,8 @@ elf_symfile_finish (struct objfile *objfile)
{
xfree (objfile->deprecated_sym_stab_info);
}
+
+ dwarf2_free_objfile (objfile);
}
/* ELF specific initialization routine for reading symbols.