diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-31 14:15:49 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-31 14:15:49 +0000 |
commit | 08790784703710bad064de53ce2805931204f7e7 (patch) | |
tree | 834c59776b1698293c5af8d64aab884592352577 /gdb/arm-linux-nat.c | |
parent | cf4a529b63dcef6386b6c96712b4fe5bf84cfa05 (diff) | |
download | gdb-08790784703710bad064de53ce2805931204f7e7.zip gdb-08790784703710bad064de53ce2805931204f7e7.tar.gz gdb-08790784703710bad064de53ce2805931204f7e7.tar.bz2 |
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.
Diffstat (limited to 'gdb/arm-linux-nat.c')
-rw-r--r-- | gdb/arm-linux-nat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c index bc00593..225be5f 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]); } |