aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-10-07 19:40:38 +0000
committerTom Tromey <tromey@redhat.com>2013-10-07 19:40:38 +0000
commit84a1243b15122dfe6414a4f9bdd82096b37bc625 (patch)
tree7cb90ad3699f0d9c30721cd660880c9f65936be6 /gdb/symfile.c
parent1da77581c0559e62b80b27f06f81dad4c7a7a0be (diff)
downloadgdb-84a1243b15122dfe6414a4f9bdd82096b37bc625.zip
gdb-84a1243b15122dfe6414a4f9bdd82096b37bc625.tar.gz
gdb-84a1243b15122dfe6414a4f9bdd82096b37bc625.tar.bz2
move the demangled_names_hash into the per-BFD
This moves the demangled_names_hash from the objfile into the per-BFD object. This is part of the objfile splitting project. The demangled names hash is independent of the program space. And, it is needed by the symbol tables. Both of these things indicate that it must be pushed into the per-BFD object, which this patch does. Built and regtested on x86-64 Fedora 18. * objfiles.c (free_objfile_per_bfd_storage): Delete the demangled_names_hash. (free_objfile): Don't delete the demangled_names_hash. * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash>: New field. (struct objfile) <demangled_names_hash>: Move to objfile_per_bfd_storage. * symfile.c (reread_symbols): Don't delete the demangled_names_hash. * symtab.c (create_demangled_names_hash): Update. (symbol_set_names): Update.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index ecf4e32..d260ff9 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -2497,11 +2497,6 @@ reread_symbols (void)
/* Free the obstacks for non-reusable objfiles. */
psymbol_bcache_free (objfile->psymbol_cache);
objfile->psymbol_cache = psymbol_bcache_init ();
- if (objfile->demangled_names_hash != NULL)
- {
- htab_delete (objfile->demangled_names_hash);
- objfile->demangled_names_hash = NULL;
- }
obstack_free (&objfile->objfile_obstack, 0);
objfile->sections = NULL;
objfile->symtabs = NULL;