From 10abe6bf36363fc8004785a70e350f013bd02c4a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 5 Nov 2009 22:26:10 +0000 Subject: * symmisc.c (print_symbol_bcache_statistics): Print filename cache statistics. (print_objfile_statistics): Likewise. * symfile.c (reread_symbols): Initialize filename_cache. (allocate_symtab): Cache the file name. (allocate_psymtab): Likewise. * solib-sunos.c (allocate_rt_common_objfile): Initialize filename_cache. * objfiles.h (struct objfile) : New field. * objfiles.c (allocate_objfile): Initialize filename_cache. (free_objfile): Free filename_cache. --- gdb/solib-sunos.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/solib-sunos.c') diff --git a/gdb/solib-sunos.c b/gdb/solib-sunos.c index 9b2a470..02793f1 100644 --- a/gdb/solib-sunos.c +++ b/gdb/solib-sunos.c @@ -191,6 +191,7 @@ allocate_rt_common_objfile (void) memset (objfile, 0, sizeof (struct objfile)); objfile->psymbol_cache = bcache_xmalloc (); objfile->macro_cache = bcache_xmalloc (); + objfile->filename_cache = bcache_xmalloc (); obstack_init (&objfile->objfile_obstack); objfile->name = xstrdup ("rt_common"); -- cgit v1.1