aboutsummaryrefslogtreecommitdiff
path: root/gdb/symmisc.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2009-11-05 22:26:10 +0000
committerTom Tromey <tromey@redhat.com>2009-11-05 22:26:10 +0000
commit10abe6bf36363fc8004785a70e350f013bd02c4a (patch)
treeb6f02b801de93a1af23a10b411a7ead5c618483f /gdb/symmisc.c
parent69a943f00538328c36e1d1005f5357a61a71c7fc (diff)
downloadgdb-10abe6bf36363fc8004785a70e350f013bd02c4a.zip
gdb-10abe6bf36363fc8004785a70e350f013bd02c4a.tar.gz
gdb-10abe6bf36363fc8004785a70e350f013bd02c4a.tar.bz2
* 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) <filename_cache>: New field. * objfiles.c (allocate_objfile): Initialize filename_cache. (free_objfile): Free filename_cache.
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r--gdb/symmisc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c
index 4044981..c45135c 100644
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -140,6 +140,7 @@ print_symbol_bcache_statistics (void)
printf_filtered (_("Byte cache statistics for '%s':\n"), objfile->name);
print_bcache_statistics (objfile->psymbol_cache, "partial symbol cache");
print_bcache_statistics (objfile->macro_cache, "preprocessor macro cache");
+ print_bcache_statistics (objfile->filename_cache, "file name cache");
}
immediate_quit--;
}
@@ -204,6 +205,8 @@ print_objfile_statistics (void)
bcache_memory_used (objfile->psymbol_cache));
printf_filtered (_(" Total memory used for macro cache: %d\n"),
bcache_memory_used (objfile->macro_cache));
+ printf_filtered (_(" Total memory used for file name cache: %d\n"),
+ bcache_memory_used (objfile->filename_cache));
}
immediate_quit--;
}