aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-02-03 19:39:47 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-02-03 19:39:47 +0000
commite635796721d7fe29aab86fc7580faf16a2b87754 (patch)
tree720efa5eeafd60f0977bbaa8794af903d87770db /gdb
parent159ada029b5bea9a8e3f1a67b550e0633f5733bb (diff)
downloadgdb-e635796721d7fe29aab86fc7580faf16a2b87754.zip
gdb-e635796721d7fe29aab86fc7580faf16a2b87754.tar.gz
gdb-e635796721d7fe29aab86fc7580faf16a2b87754.tar.bz2
* command.c (empty_sfunc): New function.
(add_set_cmd): Use it instead of not_just_help_class_command. (not_just_help_class_command): Change calling convention back to what it was before yesterday's change.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/command.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/gdb/command.c b/gdb/command.c
index cb727aa..2cf2813 100644
--- a/gdb/command.c
+++ b/gdb/command.c
@@ -190,9 +190,19 @@ add_abbrev_prefix_cmd (name, class, fun, doc, prefixlist, prefixname,
return c;
}
-/* ARGSUSED */
+/* This is an empty "cfunc". */
void
-not_just_help_class_command (args, from_tty, c)
+not_just_help_class_command (args, from_tty)
+ char *args;
+ int from_tty;
+{
+}
+
+/* This is an empty "sfunc". */
+static void empty_sfunc PARAMS ((char *, int, struct cmd_list_element *));
+
+static void
+empty_sfunc (args, from_tty, c)
char *args;
int from_tty;
struct cmd_list_element *c;
@@ -223,7 +233,7 @@ add_set_cmd (name, class, var_type, var, doc, list)
c->var = var;
/* This needs to be something besides NO_FUNCTION so that this isn't
treated as a help class. */
- c->function.sfunc = not_just_help_class_command;
+ c->function.sfunc = empty_sfunc;
return c;
}