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 | 1868c04ebae02e64e51631c2614703b4a294be6b (patch) | |
tree | 6e28234f7e1e80582ef5283f375dc9144bf256d5 /gdb/command.h | |
parent | 4dae1ae7485e87401ae69bcc4f399c11a089b0d8 (diff) | |
download | gdb-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/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 58574f4..fffa3be 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -306,6 +306,18 @@ extern int cmd_cfunc_eq (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. */ +/* NOTE: cagney/2002-03-17: The add_show_from_set() function clones + the set command passed as a parameter. The clone operation will + include (BUG?) any ``set'' command callback, if present. Commands + like ``info set'' call all the ``show'' command callbacks. + Unfortunatly, for ``show'' commands cloned from ``set'', this + includes callbacks belonging to ``set'' commands. Making this + worse, this only occures if add_show_from_set() is called after + add_cmd_sfunc() (BUG?). */ +extern enum cmd_types cmd_type (struct cmd_list_element *cmd); + + extern struct cmd_list_element *lookup_cmd (char **, struct cmd_list_element *, char *, int, int); |