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 | 5be2ad172bd57067af684b3ee4b55afd9f8533be (patch) | |
tree | c32a7401bf2b99dd3b344b2ae97d665bc2fefafc /gdb/command.h | |
parent | e9593a4da9923b9251d5288a0a9ab162edb20346 (diff) | |
download | gdb-5be2ad172bd57067af684b3ee4b55afd9f8533be.tar.gz |
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 8c0461377d1..5b7a5424c29 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, |