From 6532ff3697890085456f353dd49068edfd4ed422 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 22 Aug 2012 16:12:50 +0000 Subject: * 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) : New field. (struct objfile) : Remove. * symfile.c (reread_symbols): Update. * symmisc.c (print_symbol_bcache_statistics): Update. (print_objfile_statistics): Update. --- gdb/objfiles.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb/objfiles.h') diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 2b95ce47fc1..24124fee0fc 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -174,6 +174,9 @@ struct objfile_per_bfd_storage /* Byte cache for file names. */ struct bcache *filename_cache; + + /* Byte cache for macros. */ + struct bcache *macro_cache; }; /* Master structure for keeping track of each file from which @@ -269,7 +272,6 @@ struct objfile will not change. */ struct psymbol_bcache *psymbol_cache; /* Byte cache for partial syms. */ - struct bcache *macro_cache; /* Byte cache for macros. */ /* Hash table for mapping symbol names to demangled names. Each entry in the hash table is actually two consecutive strings, -- cgit v1.2.1