old-cross-binutils/gdb/cli
Pedro Alves 50dd979345 Constify main.c:get_init_files.
A following patch will want to make the "gdbinit" global array const.
As usual, that forces in a cascading series of const additions.  This
patch preemptively does those.  I went all the way up to constifying
catch_command_errors, but then that would require constifying
execute_command as well (which is a much more significant effort).  So
as stop point, I found the cleanest would be to add a variant of
catch_command_errors that takes const args, and use that in the few
spots that needed it due to the the get_init_files constification.

gdb/
2013-07-01  Pedro Alves  <palves@redhat.com>

	* cli/cli-cmds.c (source_script): Make 'file' parameter const.
	* cli/cli-cmds.h (source_script): Likewise.
	* exceptions.c (catch_command_errors_const): New function.
	* exceptions.h (catch_command_errors_const): Declare.
	* main.c (get_init_files): Make parameters const, and adjust.
	(captured_main): Make 'system_gdbinit', 'home_gdbinit' and
	'local_gdbinit' locals const.  Adjust to use
	catch_command_errors_const.
	(print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
	'local_gdbinit' locals const.
2013-07-01 11:22:12 +00:00
..
cli-cmds.c Constify main.c:get_init_files. 2013-07-01 11:22:12 +00:00
cli-cmds.h Constify main.c:get_init_files. 2013-07-01 11:22:12 +00:00
cli-decode.c 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com> 2013-04-24 14:29:17 +00:00
cli-decode.h Constify strings in tracepoint.c, lookup_cmd and the completers. 2013-03-13 18:34:55 +00:00
cli-dump.c some cleanup checker fixes 2013-05-30 16:24:36 +00:00
cli-dump.h Consistent use of (C) after "Copyright". 2013-02-12 19:03:57 +00:00
cli-interp.c Consistent use of (C) after "Copyright". 2013-02-12 19:03:57 +00:00
cli-logging.c simplify cli-logging.c for analysis 2013-05-30 17:13:19 +00:00
cli-script.c fix cli-script.c 2013-05-30 17:36:29 +00:00
cli-script.h Constify strings in tracepoint.c, lookup_cmd and the completers. 2013-03-13 18:34:55 +00:00
cli-setshow.c Accept "set foo unlimited" in integer/uinteger/zuinteger_unlimited commands. 2013-04-10 15:11:12 +00:00
cli-setshow.h New commands "mt set per-command {space,time,symtab} {on,off}". 2013-03-21 17:37:30 +00:00
cli-utils.c * ada-lang.c (ada_read_renaming_var_value): Pass const 2013-03-12 17:39:45 +00:00
cli-utils.h * ada-lang.c (ada_read_renaming_var_value): Pass const 2013-03-12 17:39:45 +00:00