aboutsummaryrefslogtreecommitdiff
path: root/gdb/command.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2002-06-26 20:58:17 +0000
committerTom Tromey <tromey@redhat.com>2002-06-26 20:58:17 +0000
commit9f064c95194a51d61bfcff02b4fabbd183fd4aae (patch)
treea7e1a8e6e12a3367f63eb1ff52169e40248a97b7 /gdb/command.h
parent7655ea92770345b6d557295cdde8ed6bc7f53dd9 (diff)
downloadgdb-9f064c95194a51d61bfcff02b4fabbd183fd4aae.zip
gdb-9f064c95194a51d61bfcff02b4fabbd183fd4aae.tar.gz
gdb-9f064c95194a51d61bfcff02b4fabbd183fd4aae.tar.bz2
* command.h (add_setshow_cmd): Declare.
(add_setshow_cmd_full): Declare. * cli/cli-decode.c (add_setshow_cmd): No longer static. Now returns void. Use add_setshow_cmd_full. (add_setshow_cmd_full): New function. (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full. (add_setshow_boolean_cmd): Likewise.
Diffstat (limited to 'gdb/command.h')
-rw-r--r--gdb/command.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/gdb/command.h b/gdb/command.h
index 00110ce..9aceef6 100644
--- a/gdb/command.h
+++ b/gdb/command.h
@@ -210,6 +210,26 @@ 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 void add_setshow_cmd (char *name,
+ enum command_class class,
+ var_types var_type, void *var,
+ char *set_doc, char *show_doc,
+ cmd_sfunc_ftype *set_func,
+ cmd_sfunc_ftype *show_func,
+ struct cmd_list_element **set_list,
+ struct cmd_list_element **show_list);
+
+extern void add_setshow_cmd_full (char *name,
+ enum command_class class,
+ var_types var_type, void *var,
+ char *set_doc, char *show_doc,
+ cmd_sfunc_ftype *set_func,
+ cmd_sfunc_ftype *show_func,
+ struct cmd_list_element **set_list,
+ struct cmd_list_element **show_list,
+ struct cmd_list_element **set_result,
+ struct cmd_list_element **show_result);
+
extern struct cmd_list_element *add_set_cmd (char *name, enum
command_class class,
var_types var_type, void *var,