This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Fix merge error (Re: [04/15] Per-thread architecture support)
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 14 Jul 2009 16:56:57 +0200 (CEST)
- Subject: [commit] Fix merge error (Re: [04/15] Per-thread architecture support)
Hello,
it seems this chunk got lost due to a merge reject I must have overlooked:
> * remote.c (remote_wait): Access target registers in target_gdbarch.
The following patch re-applies it at the proper location.
Tested on powerpc64-linux, committed to mainline.
Bye,
Ulrich
ChangeLog:
* remote.c (process_stop_reply): Access expedited target registers
in target_gdbarch.
Index: src/gdb/remote.c
===================================================================
--- src.orig/gdb/remote.c
+++ src/gdb/remote.c
@@ -4591,14 +4591,15 @@ process_stop_reply (struct stop_reply *s
/* 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);
}
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com