diff options
author | Tom Tromey <tromey@redhat.com> | 2011-04-04 15:19:59 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-04-04 15:19:59 +0000 |
commit | 00174a8637c5c42b77b190c38b1afa94c4c14517 (patch) | |
tree | e15de61016caa1be91047423ceeff6cd9031e94e /gdb/symmisc.c | |
parent | 30cc903e7cd4678ec556d5386be55c3c726b6a27 (diff) | |
download | gdb-00174a8637c5c42b77b190c38b1afa94c4c14517.zip gdb-00174a8637c5c42b77b190c38b1afa94c4c14517.tar.gz gdb-00174a8637c5c42b77b190c38b1afa94c4c14517.tar.bz2 |
* 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.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c index 5120162..117a22b 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) |