diff options
author | Tom Tromey <tromey@redhat.com> | 2012-06-13 15:41:24 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-06-13 15:41:24 +0000 |
commit | 625e8578d7514d65901421467d2b6f0f5d87f634 (patch) | |
tree | b3e85b390c634294e258844d36e68be1b719686a /gdb/cli/cli-decode.h | |
parent | 1a43faafe7c5e36bd950ada4081d0e8221d648a9 (diff) | |
download | gdb-625e8578d7514d65901421467d2b6f0f5d87f634.zip gdb-625e8578d7514d65901421467d2b6f0f5d87f634.tar.gz gdb-625e8578d7514d65901421467d2b6f0f5d87f634.tar.bz2 |
* breakpoint.c (add_catch_command): Use completer_ftype.
* breakpoint.h: Include command.h.
(add_catch_command): Use completer_ftype.
* cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
* cli/cli-decode.h (struct cmd_list_element) <completer>:
Use completer_ftype.
* command.h (completer_ftype): New typedef.
(set_cmd_completer): Use it.
* python/py-cmd.c (struct cmdpy_completer) <completer>: Use
completer_ftype.
Diffstat (limited to 'gdb/cli/cli-decode.h')
-rw-r--r-- | gdb/cli/cli-decode.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/cli/cli-decode.h b/gdb/cli/cli-decode.h index 6027123..b5e0790 100644 --- a/gdb/cli/cli-decode.h +++ b/gdb/cli/cli-decode.h @@ -168,8 +168,7 @@ struct cmd_list_element For example, suppose TEXT is "foo" and we want to complete to "foobar". If WORD is "oo", return "oobar"; if WORD is "baz/foo", return "baz/foobar". */ - char **(*completer) (struct cmd_list_element *cmd, - char *text, char *word); + completer_ftype *completer; /* Destruction routine for this command. If non-NULL, this is called when this command instance is destroyed. This may be |