which is undefined, by call to regcache_invalidate, which should
do what the original author wanted to do.
+2009-03-16 Joel Brobecker <brobecker@adacore.com>
+
+ * 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.
+
2009-03-16 Joel Brobecker <brobecker@adacore.com>
* remote-mips.c (mips_mourn_inferior): Add missing ops parameter.
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));