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/cli | |
parent | 52eab766df54915f8d3d71475235868285c4ca82 (diff) | |
download | gdb-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/cli')
-rw-r--r-- | gdb/cli/cli-decode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index 87ebed5..5fc3187 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -424,7 +424,7 @@ add_prefix_cmd (const char *name, enum command_class theclass, struct cmd_list_element * add_abbrev_prefix_cmd (const char *name, enum command_class theclass, - cmd_cfunc_ftype *fun, const char *doc, + cmd_const_cfunc_ftype *fun, const char *doc, struct cmd_list_element **prefixlist, const char *prefixname, int allow_unknown, struct cmd_list_element **list) |