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.
This commit is contained in:
Tom Tromey 2017-10-10 17:51:52 -06:00
parent 52eab766df
commit ee7ddd7132
4 changed files with 9 additions and 5 deletions

View file

@ -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)