* remote.c (process_stop_reply): Access expedited target registers
authorUlrich Weigand <uweigand@de.ibm.com>
Tue, 14 Jul 2009 14:53:41 +0000 (14:53 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Tue, 14 Jul 2009 14:53:41 +0000 (14:53 +0000)
in target_gdbarch.

gdb/ChangeLog
gdb/remote.c

index b0625e0a9d4d9d20c36d65d3a70c8c1a4a8b2f8b..2056b31d98a1cf73a99b8bb25a35b930fe0f8f82 100644 (file)
@@ -1,3 +1,8 @@
+2009-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * remote.c (process_stop_reply): Access expedited target registers
+       in target_gdbarch.
+
 2009-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Fix memory access from signed 32bit inferior registers on 64bit GDB.
index 756186f1defe862f93ce2570fea3a0202228e3f8..0a03fc7b60c5662e488226fb5c88630ab68e3a13 100644 (file)
@@ -4591,14 +4591,15 @@ process_stop_reply (struct stop_reply *stop_reply,
       /* Expedited registers.  */
       if (stop_reply->regcache)
        {
+         struct regcache *regcache
+           = get_thread_arch_regcache (ptid, target_gdbarch);
          cached_reg_t *reg;
          int ix;
 
          for (ix = 0;
               VEC_iterate(cached_reg_t, stop_reply->regcache, ix, reg);
               ix++)
-           regcache_raw_supply (get_thread_regcache (ptid),
-                                reg->num, reg->data);
+           regcache_raw_supply (regcache, reg->num, reg->data);
          VEC_free (cached_reg_t, stop_reply->regcache);
        }