aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-06-13 15:41:24 +0000
committerTom Tromey <tromey@redhat.com>2012-06-13 15:41:24 +0000
commit625e8578d7514d65901421467d2b6f0f5d87f634 (patch)
treeb3e85b390c634294e258844d36e68be1b719686a /gdb/breakpoint.h
parent1a43faafe7c5e36bd950ada4081d0e8221d648a9 (diff)
downloadgdb-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/breakpoint.h')
-rw-r--r--gdb/breakpoint.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index a957b6f..2ad80d6 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -23,6 +23,7 @@
#include "value.h"
#include "vec.h"
#include "ax.h"
+#include "command.h"
struct value;
struct block;
@@ -1187,8 +1188,7 @@ extern void
add_catch_command (char *name, char *docstring,
void (*sfunc) (char *args, int from_tty,
struct cmd_list_element *command),
- char **(*completer) (struct cmd_list_element *cmd,
- char *text, char *word),
+ completer_ftype *completer,
void *user_data_catch,
void *user_data_tcatch);