forked from Imagelibrary/binutils-gdb
* defs.h: Delete extraneous whitespace at end of file.
* symfile.h: Move #include of demangle.h outside conditional. * objfiles.h (struct objstats, OBJSTAT, OBJSTATS): New struct and macros to hold per-objfile statistics for internal instrumentation. (struct objfile): Add OBJSTATS member, which is optional. * buildsym.h (next_symbol_text_func): Now takes objfile argument. Also update copyright to 1995. * dbxread.c (dbx_next_symbol_text): Now takes objfile argument. (dbx_symfile_init, coffstab_build_psymtabs, elfstab_build_psymtabs, stabsect_build_psymtabs): Accumulate string table size. (dbx_next_symbol_text, read_dbx_symtab, read_ofile_symtab): Accumulate number of stabs symbols read. * dwarfread.c (new_symbol, symthesize_typedef): Accumulate number of full symbols created. * gdbtypes.c (alloc_type): Accumulate number of types. * maint.c (maintenance_print_statistics): New function. * mdebugread.c (mdebug_next_symbol_text): Now takes objfile argument. * minsyms.c (prim_record_minimal_symbol_and_info): Accumulate number of minimal symbols read. * os9kread.c (read_os9k_psymtab): next_symbol_text takes objfile arg. * partial-stab.h: next_symbol_text takes objfile arg. * stabsread.c (error_type, STABS_CONTINUE): Now takes objfile arg and uses it to call next_symbol_text. * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list): Accumulate number of partial symbols created. * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Accumulate number of partial symbols created. * symmisc.c (print_objfile_statistics): Print the per-objfile internal instrumentation statistics gathered. * xcoffread.c (xcoff_next_symbol_text): Now takes objfile argument.
This commit is contained in:
15
gdb/maint.c
15
gdb/maint.c
@@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include "defs.h"
|
||||
|
||||
#if MAINTENANCE_CMDS /* Entire file goes away if not including maint cmds */
|
||||
#if MAINTENANCE_CMDS /* Entire rest of file goes away if not including maint cmds */
|
||||
|
||||
#include <signal.h>
|
||||
#include "command.h"
|
||||
@@ -243,6 +243,15 @@ maintenance_info_sections (arg, from_tty)
|
||||
}
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
void
|
||||
maintenance_print_statistics (args, from_tty)
|
||||
char *args;
|
||||
int from_tty;
|
||||
{
|
||||
print_objfile_statistics ();
|
||||
}
|
||||
|
||||
/* The "maintenance print" command is defined as a prefix, with allow_unknown
|
||||
0. Therefore, its own definition is called only for "maintenance print"
|
||||
with no args. */
|
||||
@@ -339,6 +348,10 @@ If a SOURCE file is specified, dump only that file's partial symbols.",
|
||||
"Print dump of current object file definitions.",
|
||||
&maintenanceprintlist);
|
||||
|
||||
add_cmd ("statistics", class_maintenance, maintenance_print_statistics,
|
||||
"Print statistics about internal gdb state.",
|
||||
&maintenanceprintlist);
|
||||
|
||||
add_cmd ("check-symtabs", class_maintenance, maintenance_check_symtabs,
|
||||
"Check consistency of psymtabs and symtabs.",
|
||||
&maintenancelist);
|
||||
|
||||
Reference in New Issue
Block a user