X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fremote-mips.c;h=244df5aedf99d96093f3654c304ff5ef6e3bc877;hb=9b254dd1ce46c19dde1dde5b8d1e22e862dfacce;hp=ade658da744034c2a230804eea077040073dfa6e;hpb=49d03eab05e8f80cffaf764d4d26932bf00519d6;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index ade658da74..244df5aedf 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -1,7 +1,7 @@ /* Remote debugging interface for MIPS remote debugging protocol. Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, - 2003, 2004, 2006, 2007 Free Software Foundation, Inc. + 2003, 2004, 2006, 2007, 2008 Free Software Foundation, Inc. Contributed by Cygnus Support. Written by Ian Lance Taylor . @@ -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));