* remote-mips.c (mips_load): Don't use pseudo-register when
authorKevin Buettner <kevinb@redhat.com>
Fri, 26 Feb 2010 23:11:24 +0000 (23:11 +0000)
committerKevin Buettner <kevinb@redhat.com>
Fri, 26 Feb 2010 23:11:24 +0000 (23:11 +0000)
invalidating regcache.

gdb/ChangeLog
gdb/remote-mips.c

index 1e16950a14dc65c6e5b74f6f4c1474db4c7452d2..8c715d9f2701acddd2d26af525c20950e0cff80c 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-26  Kevin Buettner  <kevinb@redhat.com>
+
+       * remote-mips.c (mips_load): Don't use pseudo-register when
+       invalidating regcache.
+
 2010-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
index f2fb8f3af48ca37a398a274b86b65030da0f9da5..56f3f22bead0f32124d5dff2a55e5016863a1431 100644 (file)
@@ -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));
This page took 0.02776 seconds and 4 git commands to generate.