From: Ulrich Weigand Date: Wed, 31 Oct 2007 14:15:49 +0000 (+0000) Subject: 2007-10-31 Markus Deuling X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=08790784703710bad064de53ce2805931204f7e7;p=binutils-gdb.git 2007-10-31 Markus Deuling * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch to get at the current architecture by regcache. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 65b2043d4d2..c32d77c65c2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-10-31 Markus Deuling + + * 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 * libunwind-frame.c (libunwind_frame_sniffer) diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c index bc005934a9b..225be5fd537 100644 --- a/gdb/arm-linux-nat.c +++ b/gdb/arm-linux-nat.c @@ -255,7 +255,8 @@ fetch_register (struct regcache *regcache, int regno) 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]); } @@ -291,7 +292,7 @@ fetch_regs (struct regcache *regcache) (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]); }