summaryrefslogtreecommitdiff
path: root/gdb/command.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-21 17:14:03 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-21 17:14:03 +0000
commitfffe160b7858f886d18a064ec734d33e57148106 (patch)
treeaf0b2cd507011051af0021ab316e9a569a43f5cd /gdb/command.h
parent6dde5c85deea12dca70ad7f9441d9ef59d05463a (diff)
downloadgdb-fffe160b7858f886d18a064ec734d33e57148106.tar.gz
2005-02-21 Andrew Cagney <cagney@gnu.org>
* command.h (deprecated_add_set_cmd): Rename add_set_cmd. * cli/cli-decode.h (add_set_cmd): Delete declaration. * cli/cli-decode.c (deprecated_add_set_cmd): Rename add_set_cmd. * i386-nat.c (_initialize_i386_nat): Update call. * valprint.c (_initialize_valprint): Update comment. * gnu-nat.c (_initialize_gnu_nat): Update call.
Diffstat (limited to 'gdb/command.h')
-rw-r--r--gdb/command.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/gdb/command.h b/gdb/command.h
index 7e19f43d245..0729752d997 100644
--- a/gdb/command.h
+++ b/gdb/command.h
@@ -205,11 +205,15 @@ extern void help_list (struct cmd_list_element *, char *,
extern void help_cmd_list (struct cmd_list_element *, enum command_class,
char *, int, struct ui_file *);
-extern struct cmd_list_element *add_set_cmd (char *name, enum
- command_class class,
- var_types var_type, void *var,
- char *doc,
- struct cmd_list_element **list);
+/* NOTE: cagney/2005-02-21: Since every set command should be paired
+ with a corresponding show command (i.e., add_setshow_*) this call
+ should not be needed. Unfortunatly some are not (e.g.,
+ "maintenance <variable> <value>") and those need to be fixed. */
+extern struct cmd_list_element *deprecated_add_set_cmd (char *name, enum
+ command_class class,
+ var_types var_type, void *var,
+ char *doc,
+ struct cmd_list_element **list);
/* Method for show a set/show variable's VALUE on FILE. If this
method isn't supplied deprecated_show_value_hack() is called (which