aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2009-07-14 14:53:41 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2009-07-14 14:53:41 +0000
commit217f1f79547fc2edab20e6fd0f30814c758d86d9 (patch)
tree40d29ea932c67baf26240b921a3aadab9c5e9626
parent74bdfecf08407fd56e067c8e1bb69ece6735e389 (diff)
downloadgdb-217f1f79547fc2edab20e6fd0f30814c758d86d9.zip
gdb-217f1f79547fc2edab20e6fd0f30814c758d86d9.tar.gz
gdb-217f1f79547fc2edab20e6fd0f30814c758d86d9.tar.bz2
* remote.c (process_stop_reply): Access expedited target registers
in target_gdbarch.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/remote.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b0625e0..2056b31 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/remote.c b/gdb/remote.c
index 756186f..0a03fc7 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -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);
}