From c917c448616b73da20dce126b70cec3e6619f919 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sat, 23 Feb 2002 20:12:13 +0000 Subject: * 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. --- gdb/top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/top.c') diff --git a/gdb/top.c b/gdb/top.c index daa89c27017..972a5578f8f 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -684,7 +684,7 @@ execute_command (char *p, int from_tty) command. */ if (arg && c->type != set_cmd - && !is_complete_command (c->function.cfunc)) + && !is_complete_command (c)) { p = arg + strlen (arg) - 1; while (p >= arg && (*p == ' ' || *p == '\t')) -- cgit v1.2.1