summaryrefslogtreecommitdiff
path: root/gdb/remote-mips.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2009-03-17 19:28:08 +0000
committerJoel Brobecker <brobecker@gnat.com>2009-03-17 19:28:08 +0000
commit3a6e68ebef6ab5687ecac21cdfba472342ed8a16 (patch)
treee9283c29d4845c38b47289918d7cf2bf4e40cbd3 /gdb/remote-mips.c
parentfd944dcf8360733363a810773e2cf2d1c4c9b64b (diff)
downloadgdb-3a6e68ebef6ab5687ecac21cdfba472342ed8a16.tar.gz
Add a target_ops parameter to the to_kill method in struct target_ops.
* target.h (struct target_ops): Add a "target_ops *" parameter to method to_kill. (target_kill): Remove macro. Add declaration. * target.c (debug_to_kill): Delete, no longer necessary. (target_kill): New function. (update_current_target): Stop inheriting the to_kill method. Do not de_fault it to no_process either. (setup_target_debug): Do not set current_target.to_kill. * gnu-nat.c, go32-nat.c, hpux-thread.c, inf-ptrace.c, inf-ttrace.c, linux-nat.c, monitor.c, nto-procfs.c, procfs.c, remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c, windows-nat.c: Update accordingly.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r--gdb/remote-mips.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index 9b514b13ca6..b35bb629cd6 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -2129,7 +2129,7 @@ mips_files_info (struct target_ops *ignore)
right port, we could interrupt the process with a break signal. */
static void
-mips_kill (void)
+mips_kill (struct target_ops *ops)
{
if (!mips_wait_flag)
return;
@@ -3276,7 +3276,6 @@ mips_load (char *file, int from_tty)
to a different value than GDB thinks it has. The following ensures
that the write_pc() WILL update the PC value: */
struct regcache *regcache = get_current_regcache ();
-
regcache_invalidate (regcache,
gdbarch_pc_regnum (get_regcache_arch (regcache)));
}