constify to_load
authorTom Tromey <tromey@redhat.com>
Wed, 27 Mar 2013 20:14:26 +0000 (14:14 -0600)
committerTom Tromey <tromey@redhat.com>
Thu, 26 Jun 2014 15:14:14 +0000 (09:14 -0600)
commit9cbe5fff2b47da85dbc628bdc8c6a85d5344749a
treea3ee9c16f6b4726d51239c62f40793a810baf0c8
parent34a68019ccc3879801a291a00bad5bc10558bf5d
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  <tromey@redhat.com>

* 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) <to_load>: Make parameter const.
(target_load): Update.
12 files changed:
gdb/ChangeLog
gdb/defs.h
gdb/m32r-rom.c
gdb/monitor.c
gdb/remote-m32r-sdi.c
gdb/remote-mips.c
gdb/remote-sim.c
gdb/remote.c
gdb/symfile.c
gdb/target-delegates.c
gdb/target.c
gdb/target.h