diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-02-23 20:12:13 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-02-23 20:12:13 +0000 |
commit | c917c448616b73da20dce126b70cec3e6619f919 (patch) | |
tree | 19102bfb24580a962643c8ef03386c43d10e92e6 /gdb/cli/cli-decode.h | |
parent | 9785f58c48b53ca9a23831a0bcf9e1b0134238da (diff) | |
download | gdb-c917c448616b73da20dce126b70cec3e6619f919.tar.gz |
* 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.
Diffstat (limited to 'gdb/cli/cli-decode.h')
-rw-r--r-- | gdb/cli/cli-decode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/cli/cli-decode.h b/gdb/cli/cli-decode.h index 6c7c22b8ac7..e4b7c5566ad 100644 --- a/gdb/cli/cli-decode.h +++ b/gdb/cli/cli-decode.h @@ -286,6 +286,10 @@ extern void set_cmd_sfunc (struct cmd_list_element *cmd, void (*sfunc) (char *args, int from_tty, struct cmd_list_element * c)); +/* HACK: cagney/2002-02-23: Code, mostly in tracepoints.c, grubs + around in cmd objects to test the value of the commands sfunc(). */ +extern int cmd_cfunc_eq (struct cmd_list_element *cmd, + void (*cfunc) (char *args, int from_tty)); extern struct cmd_list_element *lookup_cmd (char **, struct cmd_list_element *, char *, |