From 9cbe5fff2b47da85dbc628bdc8c6a85d5344749a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 27 Mar 2013 14:14:26 -0600 Subject: constify to_load This makes the argument to the target_ops to_load method "const", and fixes up the fallout. Tested by rebuilding all the affected files. 2014-06-26 Tom Tromey * defs.h (generic_load): Update. * m32r-rom.c (m32r_load_gen): Make "filename" const. * monitor.c (monitor_load): Make "args" const. * remote-m32r-sdi.c (m32r_load): Make "args" const. * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args" const. (mips_load): Make "file" const. * remote-sim.c (gdbsim_load): Make "args" const. * remote.c (remote_load): Make "name" const. * symfile.c (generic_load): Make "args" const. * target-delegates.c: Rebuild. * target.c (target_load): Make "arg" const. (debug_to_load): Make "args" const. * target.h (struct target_ops) : Make parameter const. (target_load): Update. --- gdb/defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/defs.h') diff --git a/gdb/defs.h b/gdb/defs.h index b7e9ff4..511279a 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -291,7 +291,7 @@ extern char *re_comp (const char *); extern void symbol_file_command (char *, int); /* * Remote targets may wish to use this as their load function. */ -extern void generic_load (char *name, int from_tty); +extern void generic_load (const char *name, int from_tty); /* * Report on STREAM the performance of memory transfer operation, such as 'load'. -- cgit v1.1