diff options
author | Jason Molenda <jmolenda@apple.com> | 2003-02-14 01:13:45 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2003-02-14 01:13:45 +0000 |
commit | c4f90d873c3e033b1bea8fae1863313581908a41 (patch) | |
tree | 03888c75995a8731ee224b10e7295bcd2ea11102 /gdb/symmisc.c | |
parent | 8031856cdb7cebf10ac3db7695b16ababc78bddd (diff) | |
download | gdb-c4f90d873c3e033b1bea8fae1863313581908a41.zip gdb-c4f90d873c3e033b1bea8fae1863313581908a41.tar.gz gdb-c4f90d873c3e033b1bea8fae1863313581908a41.tar.bz2 |
[ChangeLog]
2003-02-12 Jason Molenda (jmolenda@apple.com)
* symmisc.c (print_objfile_statistics): Include information about
the number of psymtabs and symtabs in each object file.
[testsuite/ChangeLog]
2003-02-13 Jason Molenda (jmolenda@apple.com)
* gdb.base/maint.exp: Update maint print statistics regexp to include
new entries.
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r-- | gdb/symmisc.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c index 995372d..3011335 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -179,6 +179,9 @@ void print_objfile_statistics (void) { struct objfile *objfile; + struct symtab *s; + struct partial_symtab *ps; + int i, linetables, blockvectors; immediate_quit++; ALL_OBJFILES (objfile) @@ -199,6 +202,28 @@ print_objfile_statistics (void) if (OBJSTAT (objfile, n_types) > 0) printf_filtered (" Number of \"types\" defined: %d\n", OBJSTAT (objfile, n_types)); + i = 0; + ALL_OBJFILE_PSYMTABS (objfile, ps) + { + if (ps->readin == 0) + i++; + } + printf_filtered (" Number of psym tables (not yet expanded): %d\n", i); + i = linetables = blockvectors = 0; + ALL_OBJFILE_SYMTABS (objfile, s) + { + i++; + if (s->linetable != NULL) + linetables++; + if (s->primary == 1) + blockvectors++; + } + printf_filtered (" Number of symbol tables: %d\n", i); + printf_filtered (" Number of symbol tables with line tables: %d\n", + linetables); + printf_filtered (" Number of symbol tables with blockvectors: %d\n", + blockvectors); + if (OBJSTAT (objfile, sz_strtab) > 0) printf_filtered (" Space used by a.out string tables: %d\n", OBJSTAT (objfile, sz_strtab)); |