aboutsummaryrefslogtreecommitdiff
path: root/gdb/maint.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-10-22 05:55:58 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-10-22 05:55:58 +0000
commit976bb0be038b72449683a428903658347d581eaa (patch)
tree529d1c62dbd968e77a969d1a7e8eca9cf7acef63 /gdb/maint.c
parent06b24c9e49dfa67288c315ec205776c29c086358 (diff)
downloadgdb-976bb0be038b72449683a428903658347d581eaa.zip
gdb-976bb0be038b72449683a428903658347d581eaa.tar.gz
gdb-976bb0be038b72449683a428903658347d581eaa.tar.bz2
* Makefile.in (init.c): Generate using the source, not munch. This
cleans up all kinds of hassles (which nm to use in munch, etc). The new formatting conventions (mostly already followed) are that the name of the _initialize_* routines must start in column zero, and must not be inside #if. * munch: Removed. * Makefile.in: Remove references to munch. * serial.c, remote.c, infptrace.c, maint.c, convex-tdep.c, alpha-tdep.c, hp300ux-nat.c, hppab-nat.c, osfsolib.c, remote-es.c, procfs.c, remote-udi.c, ser-go32.c, ultra3-xdep.c, sh-tdep.c, i960-tdep.c, hppa-tdep.c, h8500-tdep.c, dpx2-nat.c, delta68-nat.c, z8k-tdep.c: Make sure the above conventions are followed. Make sure they are all declared as returning void. Clean up miscellaneous comments and such.
Diffstat (limited to 'gdb/maint.c')
-rw-r--r--gdb/maint.c23
1 files changed, 3 insertions, 20 deletions
diff --git a/gdb/maint.c b/gdb/maint.c
index 7addd4e..35da83f 100644
--- a/gdb/maint.c
+++ b/gdb/maint.c
@@ -217,27 +217,12 @@ maintenance_print_command (arg, from_tty)
help_list (maintenanceprintlist, "maintenance print ", -1, stdout);
}
-/*
-
-GLOBAL FUNCTION
-
- _initialize_maint_cmds -- initialize the process file system stuff
-
-SYNOPSIS
-
- void _initialize_maint_cmds (void)
-
-DESCRIPTION
-
- Do required initializations during gdb startup for using the
- /proc file system interface.
-
-*/
-
+#endif /* MAINTENANCE_CMDS */
void
_initialize_maint_cmds ()
{
+#if MAINTENANCE_CMDS /* Entire file goes away if not including maint cmds */
add_prefix_cmd ("maintenance", class_maintenance, maintenance_command,
"Commands for use by GDB maintainers.\n\
Includes commands to dump specific internal GDB structures in\n\
@@ -301,7 +286,5 @@ 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);
-
-}
-
#endif /* MAINTENANCE_CMDS */
+}