mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-05 12:53:16 +08:00
* 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:
parent
383c038998
commit
a624e1115a
@ -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.
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user