From: Ulrich Weigand Date: Tue, 14 Jul 2009 14:53:41 +0000 (+0000) Subject: * remote.c (process_stop_reply): Access expedited target registers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=217f1f79547fc2edab20e6fd0f30814c758d86d9;p=binutils-gdb.git * remote.c (process_stop_reply): Access expedited target registers in target_gdbarch. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b0625e0a9d4..2056b31d98a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-07-14 Ulrich Weigand + + * remote.c (process_stop_reply): Access expedited target registers + in target_gdbarch. + 2009-07-13 Jan Kratochvil Fix memory access from signed 32bit inferior registers on 64bit GDB. diff --git a/gdb/remote.c b/gdb/remote.c index 756186f1def..0a03fc7b60c 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); }