From: Peter Schauer Date: Mon, 21 Mar 1994 21:14:27 +0000 (+0000) Subject: * symmisc.c (maintenance_check_symtabs): New function to check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=71c33ef7d4b297c9e1b11062d30d9c259fd0cb80;p=binutils-gdb.git * symmisc.c (maintenance_check_symtabs): New function to check consistency of psymtabs and symtabs. * symtab.h (maintenance_check_symtabs): Add prototype. * maint.c: Add new `maint check-symtabs' command. --- diff --git a/gdb/maint.c b/gdb/maint.c index 378ac0aaeb5..d4e774846c1 100644 --- a/gdb/maint.c +++ b/gdb/maint.c @@ -1,5 +1,5 @@ /* Support for GDB maintenance commands. - Copyright (C) 1992 Free Software Foundation, Inc. + Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. Written by Fred Fish at Cygnus Support. This file is part of GDB. @@ -287,5 +287,9 @@ If a SOURCE file is specified, dump only that file's partial symbols.", add_cmd ("objfiles", class_maintenance, maintenance_print_objfiles, "Print dump of current object file definitions.", &maintenanceprintlist); + + add_cmd ("check-symtabs", class_maintenance, maintenance_check_symtabs, + "Check consistency of psymtabs and symtabs.", + &maintenancelist); #endif /* MAINTENANCE_CMDS */ }