This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] symmisc.c cleanups
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 23 Aug 2013 17:31:54 -0700
- Subject: [commit] symmisc.c cleanups
Hi.
Just some minor cleanups I noticed while hacking on symmisc.c.
Committed.
[The other similar maint commands in this file are marked as dont_repeat
and I don't see a reason for the inconsistency. If people want to remove
the dont_repeat that's fine with me. There's at least three that are already
marked as dont_repeat so I went with that.]
2013-08-23 Doug Evans <dje@google.com>
* symmisc.c (dump_symtab): Delete prototype.
(dump_msymbols, dump_objfile): Ditto.
(maintenance_info_symtabs): Mark as dont_repeat.
(_initialize_symmisc): Improve doc string for "mt info symtabs".
Index: symmisc.c
===================================================================
RCS file: /cvs/src/src/gdb/symmisc.c,v
retrieving revision 1.98
diff -u -p -r1.98 symmisc.c
--- symmisc.c 30 May 2013 17:44:54 -0000 1.98
+++ symmisc.c 24 Aug 2013 00:17:23 -0000
@@ -59,13 +59,6 @@ FILE *std_err;
/* Prototypes for local functions */
-static void dump_symtab (struct objfile *, struct symtab *,
- struct ui_file *);
-
-static void dump_msymbols (struct objfile *, struct ui_file *);
-
-static void dump_objfile (struct objfile *);
-
static int block_depth (struct block *);
void _initialize_symmisc (void);
@@ -717,6 +710,8 @@ maintenance_info_symtabs (char *regexp,
struct program_space *pspace;
struct objfile *objfile;
+ dont_repeat ();
+
if (regexp)
re_comp (regexp);
@@ -947,7 +942,7 @@ If a SOURCE file is specified, dump only
List the full symbol tables for all object files.\n\
This does not include information about individual symbols, blocks, or\n\
linetables --- just the symbol table structures themselves.\n\
-With an argument REGEXP, list the symbol tables whose names that match that."),
+With an argument REGEXP, list the symbol tables with matching names."),
&maintenanceinfolist);
add_cmd ("check-symtabs", class_maintenance, maintenance_check_symtabs,