summaryrefslogtreecommitdiff
path: root/gdb/symmisc.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-04-04 15:19:54 +0000
committerTom Tromey <tromey@redhat.com>2011-04-04 15:19:54 +0000
commit3405069491ed7249b28958123166f160d7fe7fcb (patch)
tree5734ab67d9e4761e9e1c91b762375f1826561804 /gdb/symmisc.c
parent726ecfa9724799f58d7ca2e4f1e4056ada26459a (diff)
downloadgdb-3405069491ed7249b28958123166f160d7fe7fcb.tar.gz
* symtab.h (free_symtab): Remove.
(forget_cached_source_info_for_objfile): Declare. * symmisc.c (free_symtab): Remove. * source.c (forget_cached_source_info_for_objfile): New function. (forget_cached_source_info): Use it. * objfiles.c (free_objfile): Simplify check before calling clear_current_source_symtab_and_line. Call forget_cached_source_info_for_objfile.
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r--gdb/symmisc.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c
index 5120162f9be..117a22bf29d 100644
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -79,18 +79,6 @@ struct print_symbol_args
static int print_symbol (void *);
-/* Free all the storage associated with the struct symtab <- S. */
-
-void
-free_symtab (struct symtab *s)
-{
- /* Free source-related stuff. */
- if (s->line_charpos != NULL)
- xfree (s->line_charpos);
- if (s->fullname != NULL)
- xfree (s->fullname);
- xfree (s);
-}
void
print_symbol_bcache_statistics (void)