summaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-08-22 16:12:47 +0000
committerTom Tromey <tromey@redhat.com>2012-08-22 16:12:47 +0000
commitb34e35f119e5a6ba3ad6640fd8b8488b3c3e4557 (patch)
treef01f7dae8baab47084505dc9f5e27c6fd4fed7cc /gdb/objfiles.h
parentca5cb667e64339dcd2c41717fa8790c3c0115b3e (diff)
downloadgdb-b34e35f119e5a6ba3ad6640fd8b8488b3c3e4557.tar.gz
* 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 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,