diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-03-18 02:26:32 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-03-18 02:26:32 +0000 |
commit | 9986998ef2616860c9e7b56c01a6a0d606623015 (patch) | |
tree | aa0dd3439b807d139f50035ca75ba30002ae0d79 /gdb/cli | |
parent | 4d51f8300844d119b99c942e59285a8a16f3ab1f (diff) | |
download | gdb-9986998ef2616860c9e7b56c01a6a0d606623015.tar.gz |
* cli/cli-decode.c (cmd_type): New function.
* command.h (cmd_type): Declare.
* infrun.c (set_schedlock_func): Call function cmd_type.
* kod.c (kod_set_os): Call cmd_type.
* cris-tdep.c (cris_version_update): Use function cmd_type.
(cris_mode_update, cris_abi_update): Ditto.
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-decode.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index f68064eb0aa..1568e31ae35 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -86,6 +86,12 @@ cmd_cfunc_eq (struct cmd_list_element *cmd, return cmd->func == do_cfunc && cmd->function.cfunc == cfunc; } +enum cmd_types +cmd_type (struct cmd_list_element *cmd) +{ + return cmd->type; +} + void set_cmd_completer (struct cmd_list_element *cmd, char **(*completer) (char *text, char *word)) |