mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-30 13:23:50 +08:00
* cli/cli-decode.c (cmd_cfunc_eq): New function.
* command.h (cmd_cfunc_eq): Declare. * cli/cli-decode.h (cmd_cfunc_eq): Ditto. * cli/cli-cmds.h (is_complete_command): Change parameter to a ``struct cmd_list_element *''. * cli/cli-cmds.c (is_complete_command): Update. Use cmd_cfunc_eq. * top.c (execute_command): Pass the command to is_complete_command. * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
This commit is contained in:
@ -259,9 +259,10 @@ complete_command (char *arg, int from_tty)
|
||||
}
|
||||
}
|
||||
|
||||
int is_complete_command (void (*func) (char *args, int from_tty))
|
||||
int
|
||||
is_complete_command (struct cmd_list_element *c)
|
||||
{
|
||||
return func == complete_command;
|
||||
return cmd_cfunc_eq (c, complete_command);
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
|
Reference in New Issue
Block a user