aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-decode.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-03-18 02:26:32 +0000
committerAndrew Cagney <cagney@redhat.com>2002-03-18 02:26:32 +0000
commit1868c04ebae02e64e51631c2614703b4a294be6b (patch)
tree6e28234f7e1e80582ef5283f375dc9144bf256d5 /gdb/cli/cli-decode.c
parent4dae1ae7485e87401ae69bcc4f399c11a089b0d8 (diff)
downloadgdb-1868c04ebae02e64e51631c2614703b4a294be6b.zip
gdb-1868c04ebae02e64e51631c2614703b4a294be6b.tar.gz
gdb-1868c04ebae02e64e51631c2614703b4a294be6b.tar.bz2
* 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/cli-decode.c')
-rw-r--r--gdb/cli/cli-decode.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c
index f68064e..1568e31 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))