aboutsummaryrefslogtreecommitdiff
path: root/gdb/command.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-10-10 17:51:52 -0600
committerTom Tromey <tom@tromey.com>2017-11-07 13:59:08 -0700
commitee7ddd713206fdf02512a9fb3fe928a210200c11 (patch)
treeb938589f9e3d4acd9db5bc3a41f4f1c4f58bc967 /gdb/command.h
parent52eab766df54915f8d3d71475235868285c4ca82 (diff)
downloadgdb-ee7ddd713206fdf02512a9fb3fe928a210200c11.zip
gdb-ee7ddd713206fdf02512a9fb3fe928a210200c11.tar.gz
gdb-ee7ddd713206fdf02512a9fb3fe928a210200c11.tar.bz2
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/command.h')
-rw-r--r--gdb/command.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/command.h b/gdb/command.h
index 32ee73a..71ad71d 100644
--- a/gdb/command.h
+++ b/gdb/command.h
@@ -173,7 +173,7 @@ extern struct cmd_list_element *add_prefix_cmd (const char *, enum command_class
extern struct cmd_list_element *add_abbrev_prefix_cmd (const char *,
enum command_class,
- cmd_cfunc_ftype *fun,
+ cmd_const_cfunc_ftype *fun,
const char *,
struct cmd_list_element
**, const char *, int,