From f32dbf8c793020592e09d6aafd5c2ed70ea4f2b1 Mon Sep 17 00:00:00 2001 From: Markus Metzger Date: Mon, 13 Jan 2014 14:24:50 +0100 Subject: Add target_ops argument to to_prepare_to_store 2013-12-17 Tom Tromey * windows-nat.c (windows_prepare_to_store): Add 'self' argument. * target.h (struct target_ops) : Add argument. (target_prepare_to_store): Add argument. * target.c (debug_to_prepare_to_store): Add argument. (update_current_target): Update. * remote.c (remote_prepare_to_store): Add 'self' argument. * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument. * remote-mips.c (mips_prepare_to_store): Add 'self' argument. * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument. * record-full.c (record_full_core_prepare_to_store): Add 'self' argument. * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument. * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument. * monitor.c (monitor_prepare_to_store): Add 'self' argument. * inf-child.c (inf_child_prepare_to_store): Add 'self' argument. * go32-nat.c (go32_prepare_to_store): Add 'self' argument. --- gdb/remote-sim.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gdb/remote-sim.c') diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index fbb8fb6..9309087 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -81,7 +81,8 @@ static void gdbsim_close (void); static void gdbsim_detach (struct target_ops *ops, const char *args, int from_tty); -static void gdbsim_prepare_to_store (struct regcache *regcache); +static void gdbsim_prepare_to_store (struct target_ops *self, + struct regcache *regcache); static void gdbsim_files_info (struct target_ops *target); @@ -1052,7 +1053,7 @@ gdbsim_wait (struct target_ops *ops, debugged. */ static void -gdbsim_prepare_to_store (struct regcache *regcache) +gdbsim_prepare_to_store (struct target_ops *self, struct regcache *regcache) { /* Do nothing, since we can store individual regs. */ } -- cgit v1.1