diff options
author | Tom Tromey <tom@tromey.com> | 2020-06-28 10:33:06 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-06-28 10:33:07 -0600 |
commit | cd4c4c07f45fcd8e7c03ee3a0d90942a92250768 (patch) | |
tree | ae594d27afbba39f3797e09b1226147f5454d313 /gdb/command.h | |
parent | a5122bfa078902c04668a59370ed33ef51783b0e (diff) | |
download | gdb-cd4c4c07f45fcd8e7c03ee3a0d90942a92250768.zip gdb-cd4c4c07f45fcd8e7c03ee3a0d90942a92250768.tar.gz gdb-cd4c4c07f45fcd8e7c03ee3a0d90942a92250768.tar.bz2 |
Remove "cmd_type" function
The cmd_type function only has a single caller, which is in the CLI
implementation code. This patch removes the function, and moves the
cmd_types enum definition from command.h to cli-decode.h, fixing an 18
year old FIXME.
gdb/ChangeLog
2020-06-28 Tom Tromey <tom@tromey.com>
* command.h (cmd_types): Remove.
(cmd_type): Don't declare.
* cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
typedef.
* cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
* cli/cli-decode.c (cmd_type): Remove.
Diffstat (limited to 'gdb/command.h')
-rw-r--r-- | gdb/command.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gdb/command.h b/gdb/command.h index 2cac5c8..22e43de 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -71,19 +71,6 @@ enum command_class no_set_class }; -/* FIXME: cagney/2002-03-17: Once cmd_type() has been removed, ``enum - cmd_types'' can be moved from "command.h" to "cli-decode.h". */ -/* Not a set/show command. Note that some commands which begin with - "set" or "show" might be in this category, if their syntax does - not fall into one of the following categories. */ -typedef enum cmd_types - { - not_set_cmd, - set_cmd, - show_cmd - } -cmd_types; - /* Types of "set" or "show" command. */ typedef enum var_types { @@ -282,9 +269,6 @@ extern void *get_cmd_context (struct cmd_list_element *cmd); extern void execute_cmd_pre_hook (struct cmd_list_element *cmd); extern void execute_cmd_post_hook (struct cmd_list_element *cmd); -/* Return the type of the command. */ -extern enum cmd_types cmd_type (struct cmd_list_element *cmd); - /* Flag for an ambiguous cmd_list result. */ #define CMD_LIST_AMBIGUOUS ((struct cmd_list_element *) -1) |