diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2007-12-12 17:14:52 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2007-12-12 17:14:52 +0000 |
commit | 13ab0d7260d175f94e4366879b566c9049b044a5 (patch) | |
tree | 9f7f6e90d095ec639779d863a4688c747e0b3d90 /gdb/remote-mips.c | |
parent | c3d53abc5a36a8d69709ec568f0b40304918675d (diff) | |
download | gdb-13ab0d7260d175f94e4366879b566c9049b044a5.tar.gz |
* remote-mips.c (mips_load): Use regcache_set_valid_p() instead
of setting deprecated_register_valid array directly.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r-- | gdb/remote-mips.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index ade658da744..b96ae2a85cb 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -3274,7 +3274,8 @@ mips_load (char *file, int from_tty) /* Work around problem where PMON monitor updates the PC after a load to a different value than GDB thinks it has. The following ensures that the write_pc() WILL update the PC value: */ - deprecated_register_valid[gdbarch_pc_regnum (current_gdbarch)] = 0; + regcache_set_valid_p (get_current_regcache (), + gdbarch_pc_regnum (current_gdbarch), 0); } if (exec_bfd) write_pc (bfd_get_start_address (exec_bfd)); |