From e799154c3bf1aac0bffd869df5eed7a959305d00 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 22 Jul 2014 10:47:53 -0600 Subject: constify some cli-utils stuff This constifies a few functions in cli-utils -- get_number_trailer and friends -- and then fixes the fallout. 2014-07-30 Tom Tromey * breakpoint.c (map_breakpoint_numbers): Update. * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update. (get_number_const): New function. (get_number): Rewrite using get_number_const. (init_number_or_range): Make "string" const. (number_is_in_list): Make "list" const. * cli/cli-utils.h (get_number_const): Declare. (struct get_number_or_range_state) : Now const. (init_number_or_range, number_is_in_list): Update. * printcmd.c (map_display_numbers): Update. * value.c (value_from_history_ref): Constify. * value.h (value_from_history_ref): Update. --- gdb/ChangeLog | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gdb/ChangeLog') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 14aaa2c..24d8673 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,20 @@ 2014-07-30 Tom Tromey + * breakpoint.c (map_breakpoint_numbers): Update. + * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update. + (get_number_const): New function. + (get_number): Rewrite using get_number_const. + (init_number_or_range): Make "string" const. + (number_is_in_list): Make "list" const. + * cli/cli-utils.h (get_number_const): Declare. + (struct get_number_or_range_state) : Now const. + (init_number_or_range, number_is_in_list): Update. + * printcmd.c (map_display_numbers): Update. + * value.c (value_from_history_ref): Constify. + * value.h (value_from_history_ref): Update. + +2014-07-30 Tom Tromey + * corefile.c (hook_type, call_extra_exec_file_hooks) (specify_exec_file_hook): Constify. * exec.c (exec_file_attach): Make "filename" const. -- cgit v1.1