diff options
author | Kevin Buettner <kevinb@redhat.com> | 2010-02-26 23:11:24 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2010-02-26 23:11:24 +0000 |
commit | 97b0f3e261b470285eb03b5198fd1b432ae71069 (patch) | |
tree | 245d0dade3635ecf795c22fa00dc0cf549d0256b /gdb/remote-mips.c | |
parent | 52a47f1b544ae41c81fce03a301df27b6de89ac3 (diff) | |
download | fsf-binutils-gdb-97b0f3e261b470285eb03b5198fd1b432ae71069.zip fsf-binutils-gdb-97b0f3e261b470285eb03b5198fd1b432ae71069.tar.gz fsf-binutils-gdb-97b0f3e261b470285eb03b5198fd1b432ae71069.tar.bz2 |
* remote-mips.c (mips_load): Don't use pseudo-register when
invalidating regcache.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r-- | gdb/remote-mips.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |