* 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.
This commit is contained in:
Joel Brobecker 2009-03-16 21:12:46 +00:00
parent 383c038998
commit a624e1115a
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
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.

View File

@ -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));