aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-mips.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2009-03-16 21:12:46 +0000
committerJoel Brobecker <brobecker@gnat.com>2009-03-16 21:12:46 +0000
commita624e1115aed93bdc9680076979926cb11d4b5ac (patch)
tree3d77839bae4ba165ace20a7312afb1d9da57849f /gdb/remote-mips.c
parent383c0389987560500a6678e734d28cef67d0a4f4 (diff)
downloadgdb-a624e1115aed93bdc9680076979926cb11d4b5ac.zip
gdb-a624e1115aed93bdc9680076979926cb11d4b5ac.tar.gz
gdb-a624e1115aed93bdc9680076979926cb11d4b5ac.tar.bz2
* remote-mips.c (mips_load): Replace call to regcache_set_valid_p,
which is undefined, by call to regcache_invalidate, which should do what the original author wanted to do.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r--gdb/remote-mips.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index 348a63c..9b514b1 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -3276,9 +3276,9 @@ 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_set_valid_p (regcache,
- gdbarch_pc_regnum (get_regcache_arch (regcache)),
- 0);
+
+ regcache_invalidate (regcache,
+ gdbarch_pc_regnum (get_regcache_arch (regcache)));
}
if (exec_bfd)
write_pc (bfd_get_start_address (exec_bfd));