From 0a83117aa437b74a8405f8c7144256840194da85 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Wed, 15 Mar 2000 19:43:57 +0000 Subject: [PATCH] 2000-03-15 Michael Snyder From "Peter.Schauer" * symfile.c (reread_symbols): Clear msymbol hash table. --- gdb/ChangeLog | 5 +++++ gdb/symfile.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fa2686ee75d..ab8b741effc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2000-03-15 Michael Snyder + + From "Peter.Schauer" + * symfile.c (reread_symbols): Clear msymbol hash table. + 2000-03-15 Jim Blandy Deal with the inferior unloading shared objects. diff --git a/gdb/symfile.c b/gdb/symfile.c index 5b2a2ff5657..fb332967af3 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1775,6 +1775,10 @@ reread_symbols () objfile->free_psymtabs = NULL; objfile->msymbols = NULL; objfile->minimal_symbol_count = 0; + memset (&objfile->msymbol_hash, 0, + sizeof (objfile->msymbol_hash)); + memset (&objfile->msymbol_demangled_hash, 0, + sizeof (objfile->msymbol_demangled_hash)); objfile->fundamental_types = NULL; if (objfile->sf != NULL) { -- 2.30.2