mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
* 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.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user