* objfiles.h (clear_objfile_data): New prototype.

* objfiles.c (clear_objfile_data): New function.
* symfile.c (reread_symbols): Clear per-objfile data.
This commit is contained in:
Mark Kettenis
2003-10-29 18:29:07 +00:00
parent 83aeabb6dd
commit 7b097ae392
4 changed files with 15 additions and 0 deletions

View File

@@ -1969,6 +1969,7 @@ reread_symbols (void)
memset (&objfile->msymbol_demangled_hash, 0,
sizeof (objfile->msymbol_demangled_hash));
objfile->fundamental_types = NULL;
clear_objfile_data (objfile);
if (objfile->sf != NULL)
{
(*objfile->sf->sym_finish) (objfile);