aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-08-22 16:12:50 +0000
committerTom Tromey <tromey@redhat.com>2012-08-22 16:12:50 +0000
commit6532ff3697890085456f353dd49068edfd4ed422 (patch)
tree1db3205556da46561d9f588d8acfdb1239f54e2b /gdb/symfile.c
parent706e37059fbfed5beb9fe02921483809dfd86e5b (diff)
downloadgdb-6532ff3697890085456f353dd49068edfd4ed422.zip
gdb-6532ff3697890085456f353dd49068edfd4ed422.tar.gz
gdb-6532ff3697890085456f353dd49068edfd4ed422.tar.bz2
* dwarf2read.c (macro_start_file): Update.
* objfiles.c (get_objfile_bfd_data): Initialize macro_cache. (free_objfile_per_bfd_storage): Destroy macro_cache. (allocate_objfile, free_objfile): Update. * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>: New field. (struct objfile) <macro_cache>: Remove. * symfile.c (reread_symbols): Update. * symmisc.c (print_symbol_bcache_statistics): Update. (print_objfile_statistics): Update.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 6ef1ac1..6c93ba6 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -2548,8 +2548,6 @@ reread_symbols (void)
/* Free the obstacks for non-reusable objfiles. */
psymbol_bcache_free (objfile->psymbol_cache);
objfile->psymbol_cache = psymbol_bcache_init ();
- bcache_xfree (objfile->macro_cache);
- objfile->macro_cache = bcache_xmalloc (NULL, NULL);
if (objfile->demangled_names_hash != NULL)
{
htab_delete (objfile->demangled_names_hash);