diff options
author | Tom Tromey <tom@tromey.com> | 2017-10-10 17:51:52 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-11-07 13:59:08 -0700 |
commit | ee7ddd713206fdf02512a9fb3fe928a210200c11 (patch) | |
tree | b938589f9e3d4acd9db5bc3a41f4f1c4f58bc967 /gdb/breakpoint.c | |
parent | 52eab766df54915f8d3d71475235868285c4ca82 (diff) | |
download | binutils-gdb-ee7ddd713206fdf02512a9fb3fe928a210200c11.tar.gz |
Constify add_abbrev_prefix_cmd
This changes add_abbrev_prefix_cmd to take a const-taking callback
function and then fixes the one caller.
gdb/ChangeLog
2017-11-07 Tom Tromey <tom@tromey.com>
* breakpoint.c (stop_command): Constify.
* cli/cli-decode.c (struct cmd_list_element): Constify.
* command.h (add_abbrev_prefix_cmd): Constify.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 9106f09a74d..97f704a0ef1 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -193,8 +193,6 @@ static void thbreak_command (char *, int); static void enable_breakpoint_disp (struct breakpoint *, enum bpdisp, int count); -static void stop_command (char *arg, int from_tty); - static void free_bp_location (struct bp_location *loc); static void incref_bp_location (struct bp_location *loc); static void decref_bp_location (struct bp_location **loc); @@ -9658,7 +9656,7 @@ thbreak_command (char *arg, int from_tty) } static void -stop_command (char *arg, int from_tty) +stop_command (const char *arg, int from_tty) { printf_filtered (_("Specify the type of breakpoint to set.\n\ Usage: stop in <function | address>\n\ |