2007-10-30 Markus Deuling <deuling@de.ibm.com>

* bsd-uthread.c (bsd_uthread_fetch_registers)
	(bsd_uthread_store_registers): Use get_regcache_arch to get at the
	current architecture by regcache.
This commit is contained in:
Ulrich Weigand 2007-10-30 21:45:17 +00:00
parent fbff0d8f0b
commit 27524c05b8
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2007-10-30 Markus Deuling <deuling@de.ibm.com>
* bsd-uthread.c (bsd_uthread_fetch_registers)
(bsd_uthread_store_registers): Use get_regcache_arch to get at the
current architecture by regcache.
2007-10-30 Markus Deuling <deuling@de.ibm.com>
* avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use

View File

@ -266,7 +266,7 @@ bsd_uthread_mourn_inferior (void)
static void
bsd_uthread_fetch_registers (struct regcache *regcache, int regnum)
{
struct gdbarch *gdbarch = current_gdbarch;
struct gdbarch *gdbarch = get_regcache_arch (regcache);
struct bsd_uthread_ops *ops = gdbarch_data (gdbarch, bsd_uthread_data);
CORE_ADDR addr = ptid_get_tid (inferior_ptid);
CORE_ADDR active_addr;
@ -292,7 +292,7 @@ bsd_uthread_fetch_registers (struct regcache *regcache, int regnum)
static void
bsd_uthread_store_registers (struct regcache *regcache, int regnum)
{
struct gdbarch *gdbarch = current_gdbarch;
struct gdbarch *gdbarch = get_regcache_arch (regcache);
struct bsd_uthread_ops *ops = gdbarch_data (gdbarch, bsd_uthread_data);
CORE_ADDR addr = ptid_get_tid (inferior_ptid);
CORE_ADDR active_addr;