diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-10-30 17:10:14 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-10-30 17:10:14 +0000 |
commit | 1b295c3d694ca3e6d06cdcba8c886052529a0c4a (patch) | |
tree | e47df6a406921b8356df864356ed33c9826b1bed /gdb/command.h | |
parent | 6bcadd0641f12605d4433e6935174810211dcc80 (diff) | |
download | gdb-1b295c3d694ca3e6d06cdcba8c886052529a0c4a.zip gdb-1b295c3d694ca3e6d06cdcba8c886052529a0c4a.tar.gz gdb-1b295c3d694ca3e6d06cdcba8c886052529a0c4a.tar.bz2 |
2004-10-30 Andrew Cagney <cagney@gnu.org>
* cli/cli-decode.c (add_setshow_enum_cmd): New function.
* command.h (add_setshow_enum_cmd): Declare.
* mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
Diffstat (limited to 'gdb/command.h')
-rw-r--r-- | gdb/command.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/command.h b/gdb/command.h index 8c04613..5b7a542 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -223,6 +223,18 @@ extern struct cmd_list_element *add_set_enum_cmd (char *name, const char **var, char *doc, struct cmd_list_element **list); +extern void add_setshow_enum_cmd (char *name, + enum command_class class, + const char *enumlist[], + const char **var, + const char *set_doc, + const char *show_doc, + const char *help_doc, + const char *print, + 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_auto_boolean_cmd (char *name, enum command_class class, |