diff options
author | Tom Tromey <tromey@redhat.com> | 2013-03-27 14:14:26 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-06-26 09:14:14 -0600 |
commit | 9cbe5fff2b47da85dbc628bdc8c6a85d5344749a (patch) | |
tree | a3ee9c16f6b4726d51239c62f40793a810baf0c8 /gdb/remote-mips.c | |
parent | 34a68019ccc3879801a291a00bad5bc10558bf5d (diff) | |
download | gdb-9cbe5fff2b47da85dbc628bdc8c6a85d5344749a.zip gdb-9cbe5fff2b47da85dbc628bdc8c6a85d5344749a.tar.gz gdb-9cbe5fff2b47da85dbc628bdc8c6a85d5344749a.tar.bz2 |
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.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r-- | gdb/remote-mips.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index 7f0d957..277621d 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -128,9 +128,7 @@ static void pmon_end_download (int final, int bintotal); static void pmon_download (char *buffer, int length); -static void pmon_load_fast (char *file); - -static void mips_load (struct target_ops *self, char *file, int from_tty); +static void mips_load (struct target_ops *self, const char *file, int from_tty); static int mips_make_srec (char *buffer, int type, CORE_ADDR memaddr, unsigned char *myaddr, int len); @@ -2804,7 +2802,7 @@ send_srec (char *srec, int len, CORE_ADDR addr) /* Download a binary file by converting it to S records. */ static void -mips_load_srec (char *args) +mips_load_srec (const char *args) { bfd *abfd; asection *s; @@ -3389,7 +3387,7 @@ pmon_download (char *buffer, int length) using the FastLoad format. */ static void -pmon_load_fast (char *file) +pmon_load_fast (const char *file) { bfd *abfd; asection *s; @@ -3548,7 +3546,7 @@ pmon_load_fast (char *file) /* mips_load -- download a file. */ static void -mips_load (struct target_ops *self, char *file, int from_tty) +mips_load (struct target_ops *self, const char *file, int from_tty) { struct regcache *regcache; |