aboutsummaryrefslogtreecommitdiff
path: root/gdb/exec.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2010-01-19 09:47:47 +0000
committerJoel Brobecker <brobecker@gnat.com>2010-01-19 09:47:47 +0000
commitb74845da582460c3fb05bef68c0c1a1ea38c2e7d (patch)
tree5e125c4a0318a0bcd0b303cc6df8c6f9bf36ad80 /gdb/exec.c
parent65c0609283d2b4eb4da829c7107da9e6d8d68654 (diff)
downloadgdb-b74845da582460c3fb05bef68c0c1a1ea38c2e7d.zip
gdb-b74845da582460c3fb05bef68c0c1a1ea38c2e7d.tar.gz
gdb-b74845da582460c3fb05bef68c0c1a1ea38c2e7d.tar.bz2
Delete free_named_symtabs and associated cleanup.
* symfile.h (free_named_symtabs): Delete declaration. * symfile.c: Remove some commented out code (clear_symtab_users_once). (cashier_psymtab): Comment function out. Delete declaration. (free_named_symtabs): Delete. * coffread.c (coff_end_symtab): Remove call to free_named_symtabs. * dbxread.c (end_psymtab): Likewise. * dwarf2read.c (process_psymtab_comp_unit): Ditto. * exec.c (exec_close_1): Ditto. * xcoffread.c (xcoff_end_psymtab): Likewise.
Diffstat (limited to 'gdb/exec.c')
-rw-r--r--gdb/exec.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/exec.c b/gdb/exec.c
index c0b4f12..4ced968 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -145,12 +145,6 @@ exec_close_1 (int quitting)
warning (_("cannot close \"%s\": %s"),
vp->name, bfd_errmsg (bfd_get_error ()));
- /* FIXME: This routine is #if 0'd in symfile.c. What should we
- be doing here? Should we just free everything in
- vp->objfile->symtabs? Should free_objfile do that?
- FIXME-as-well: free_objfile already free'd vp->name, so it isn't
- valid here. */
- free_named_symtabs (vp->name);
xfree (vp);
}