mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00: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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user