aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-11-18 19:24:22 -0700
committerTom Tromey <tromey@redhat.com>2014-07-01 10:21:10 -0600
commit82ae6c8d79c426e1b4d6f7b8d4be5292b3e9a8c5 (patch)
tree40847145d6c1a411dce67743dbd2b6731b463dcc /gdb/breakpoint.c
parentb6a1c03a9547590a35fccda9ae358fb1cfd8befa (diff)
downloadgdb-82ae6c8d79c426e1b4d6f7b8d4be5292b3e9a8c5.zip
gdb-82ae6c8d79c426e1b4d6f7b8d4be5292b3e9a8c5.tar.gz
gdb-82ae6c8d79c426e1b4d6f7b8d4be5292b3e9a8c5.tar.bz2
use cmd_sfunc_ftype and cmd_cfunc_ftype more
This patch changes a few more spots to use either cmd_sfunc_ftype or cmd_cfunc_ftype, as appropriate. This is a bit cleaner. Tested by rebuilding. 2014-07-01 Tom Tromey <tromey@redhat.com> * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype. * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype. * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd) (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype. * command.h (cmd_cfunc_ftype): Move earlier. (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq) (add_com, add_info): Use cmd_cfunc_ftype.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 0b49dec..908a1ea 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -16061,8 +16061,7 @@ static struct cmd_list_element *tcatch_cmdlist;
void
add_catch_command (char *name, char *docstring,
- void (*sfunc) (char *args, int from_tty,
- struct cmd_list_element *command),
+ cmd_sfunc_ftype *sfunc,
completer_ftype *completer,
void *user_data_catch,
void *user_data_tcatch)