diff options
author | 2021-03-20 17:23:40 -0600 | |
---|---|---|
committer | 2021-03-20 17:23:43 -0600 | |
commit | 4829711b6ba57568d5fec3c2e8c747a2edb2aa8f (patch) | |
tree | b5b258588ea8fec7c998f3ac22281befc70fc076 /gdb/objfiles.h | |
parent | Change how DWARF indices use addrmap (diff) | |
download | binutils-gdb-4829711b6ba57568d5fec3c2e8c747a2edb2aa8f.tar.gz binutils-gdb-4829711b6ba57568d5fec3c2e8c747a2edb2aa8f.tar.bz2 binutils-gdb-4829711b6ba57568d5fec3c2e8c747a2edb2aa8f.zip |
Move psymtab statistics printing to psymtab.c
This moves all the psymtab statistics printing code form symmisc.c to
psymtab.c. This changes the formatting of the output a little, but
considering that it is a maint command (and, I assume, a rarely used
one), this seems fine to me.
This change helps further dissociate the psymtab from the objfile. In
the end there will be no direct connect -- only via the
quick_symbol_functions interface.
gdb/ChangeLog
2021-03-20 Tom Tromey <tom@tromey.com>
* dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
print_bcache parameter.
* symfile-debug.c (objfile::print_stats): Add print_bcache
parameter.
* quick-symbol.h (struct quick_symbol_functions)
<print_stats>: Add print_bcache parameter.
* symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
code to psymtab.c.
(print_objfile_statistics): Move psymtab code to psymtab.c.
* psymtab.c (count_psyms): Move from symmisc.c.
(psymbol_functions::print_stats): Print partial symbol and bcache
statistics. Add print_bcache parameter.
* objfiles.h (print_symbol_bcache_statistics): Don't declare.
(struct objfile) <print_stats>: Add print_bcache parameter.
* maint.c (maintenance_print_statistics): Update.
gdb/testsuite/ChangeLog
2021-03-20 Tom Tromey <tom@tromey.com>
* gdb.base/maint.exp: Update "maint print statistics" output.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r-- | gdb/objfiles.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index cd136eef788..ff60e18bca4 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -211,7 +211,6 @@ struct objstats #define OBJSTAT(objfile, expr) (objfile -> stats.expr) #define OBJSTATS struct objstats stats extern void print_objfile_statistics (void); -extern void print_symbol_bcache_statistics (void); /* Number of entries in the minimal symbol hash table. */ #define MINIMAL_SYMBOL_HASH_SIZE 2039 @@ -568,7 +567,7 @@ public: domain_enum domain); /* See quick_symbol_functions. */ - void print_stats (); + void print_stats (bool print_bcache); /* See quick_symbol_functions. */ void dump (); |