From: Maciej W. Rozycki Date: Wed, 12 Dec 2007 17:14:52 +0000 (+0000) Subject: * remote-mips.c (mips_load): Use regcache_set_valid_p() instead X-Git-Tag: sid-snapshot-20080101~183 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b71c0d47ee35d2c5af2aa636782c13fefb3b7fe2;p=thirdparty%2Fbinutils-gdb.git * remote-mips.c (mips_load): Use regcache_set_valid_p() instead of setting deprecated_register_valid array directly. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a9470ca3867..4a89da36841 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2007-12-12 Nigel Stephens + Maciej W. Rozycki + + * remote-mips.c (mips_load): Use regcache_set_valid_p() instead + of setting deprecated_register_valid array directly. + 2007-12-07 Maciej W. Rozycki * mips-tdep.c (extended_offset): Fix a comment. 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));