aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
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/objfiles.h
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/objfiles.h')
-rw-r--r--gdb/objfiles.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index 2b95ce4..24124fe 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,