diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:31:27 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:45:42 -0700 |
commit | 71a9f134da16fda6094f7cbab121ea62dbfb78d9 (patch) | |
tree | 977629a780b07813fb4b6689024c90f0f3e32c0d /gdb/target.c | |
parent | 0a4f40a208644744287b3e3a080416aede202633 (diff) | |
download | gdb-71a9f134da16fda6094f7cbab121ea62dbfb78d9.zip gdb-71a9f134da16fda6094f7cbab121ea62dbfb78d9.tar.gz gdb-71a9f134da16fda6094f7cbab121ea62dbfb78d9.tar.bz2 |
Add target_ops argument to to_load
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_load>: Add argument.
* target.c (target_load): Add argument.
(debug_to_load): Add argument.
(update_current_target): Update.
* remote.c (remote_load): Add 'self' argument.
* remote-sim.c (gdbsim_load): Add 'self' argument.
* remote-mips.c (mips_load): Add 'self' argument.
* remote-m32r-sdi.c (m32r_load): Add 'self' argument.
* monitor.c (monitor_load): Add 'self' argument.
* m32r-rom.c (m32r_load_gen): Add 'self' argument.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/target.c b/gdb/target.c index 9776426..b1ad4db 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -142,7 +142,7 @@ static void debug_to_terminal_save_ours (struct target_ops *self); static void debug_to_terminal_ours (struct target_ops *self); -static void debug_to_load (char *, int); +static void debug_to_load (struct target_ops *self, char *, int); static int debug_to_can_run (void); @@ -462,7 +462,7 @@ void target_load (char *arg, int from_tty) { target_dcache_invalidate (); - (*current_target.to_load) (arg, from_tty); + (*current_target.to_load) (¤t_target, arg, from_tty); } void @@ -786,7 +786,7 @@ update_current_target (void) de_fault (to_terminal_info, default_terminal_info); de_fault (to_load, - (void (*) (char *, int)) + (void (*) (struct target_ops *, char *, int)) tcomplain); de_fault (to_post_startup_inferior, (void (*) (ptid_t)) @@ -4849,9 +4849,9 @@ debug_to_terminal_info (struct target_ops *self, } static void -debug_to_load (char *args, int from_tty) +debug_to_load (struct target_ops *self, char *args, int from_tty) { - debug_target.to_load (args, from_tty); + debug_target.to_load (&debug_target, args, from_tty); fprintf_unfiltered (gdb_stdlog, "target_load (%s, %d)\n", args, from_tty); } |