From: Kevin Buettner Date: Fri, 26 Feb 2010 23:11:24 +0000 (+0000) Subject: * remote-mips.c (mips_load): Don't use pseudo-register when X-Git-Tag: cygwin-1_7_3-release~320 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97b0f3e261b470285eb03b5198fd1b432ae71069;p=external%2Fbinutils.git * remote-mips.c (mips_load): Don't use pseudo-register when invalidating regcache. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1e16950..8c715d9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-02-26 Kevin Buettner + + * remote-mips.c (mips_load): Don't use pseudo-register when + invalidating regcache. + 2010-02-26 Daniel Jacobowitz * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode. diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index f2fb8f3..56f3f22 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -3292,7 +3292,7 @@ mips_load (char *file, int from_tty) to a different value than GDB thinks it has. The following ensures that the regcache_write_pc() WILL update the PC value: */ regcache_invalidate (regcache, - gdbarch_pc_regnum (get_regcache_arch (regcache))); + mips_regnum (get_regcache_arch (regcache))->pc); } if (exec_bfd) regcache_write_pc (regcache, bfd_get_start_address (exec_bfd));