forked from Imagelibrary/binutils-gdb
* 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.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user