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

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