+2007-10-31 Markus Deuling <deuling@de.ibm.com>
+
+ * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
+ to get at the current architecture by regcache.
+
2007-10-30 Markus Deuling <deuling@de.ibm.com>
* libunwind-frame.c (libunwind_frame_sniffer)
if (ARM_PC_REGNUM == regno)
{
regs[ARM_PC_REGNUM] = gdbarch_addr_bits_remove
- (current_gdbarch, regs[ARM_PC_REGNUM]);
+ (get_regcache_arch (regcache),
+ regs[ARM_PC_REGNUM]);
regcache_raw_supply (regcache, ARM_PC_REGNUM,
(char *) ®s[ARM_PC_REGNUM]);
}
(char *) ®s[ARM_PC_REGNUM]);
regs[ARM_PC_REGNUM] = gdbarch_addr_bits_remove
- (current_gdbarch, regs[ARM_PC_REGNUM]);
+ (get_regcache_arch (regcache), regs[ARM_PC_REGNUM]);
regcache_raw_supply (regcache, ARM_PC_REGNUM,
(char *) ®s[ARM_PC_REGNUM]);
}