diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-30 21:41:21 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-30 21:41:21 +0000 |
commit | a6f7e8387ec523b3c0eedef713e02d8f68aa68cb (patch) | |
tree | a31159bf8b55401d8f5d8e2a37013cc5f0042ac6 | |
parent | 600d293e5fc14eb1feb984dd41c9f144b280fe31 (diff) | |
download | binutils-a6f7e8387ec523b3c0eedef713e02d8f68aa68cb.zip binutils-a6f7e8387ec523b3c0eedef713e02d8f68aa68cb.tar.gz binutils-a6f7e8387ec523b3c0eedef713e02d8f68aa68cb.tar.bz2 |
2007-10-30 Markus Deuling <deuling@de.ibm.com>
* arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
to get at the current architecture by regcache.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/arm-linux-tdep.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b9de792..455fd99 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2007-10-30 Markus Deuling <deuling@de.ibm.com> + * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch + to get at the current architecture by regcache. + +2007-10-30 Markus Deuling <deuling@de.ibm.com> + * alphabsd-nat.c (alphabsd_fetch_inferior_registers) (alphabsd_store_inferior_registers): Use get_regcache_arch to get at the current architecture by regcache. diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c index fd6b2e5..cdbb910 100644 --- a/gdb/arm-linux-tdep.c +++ b/gdb/arm-linux-tdep.c @@ -392,7 +392,7 @@ arm_linux_supply_gregset (const struct regset *regset, reg_pc = extract_unsigned_integer (gregs + INT_REGISTER_SIZE * ARM_PC_REGNUM, INT_REGISTER_SIZE); - reg_pc = gdbarch_addr_bits_remove (current_gdbarch, reg_pc); + reg_pc = gdbarch_addr_bits_remove (get_regcache_arch (regcache), reg_pc); store_unsigned_integer (pc_buf, INT_REGISTER_SIZE, reg_pc); regcache_raw_supply (regcache, ARM_PC_REGNUM, pc_buf); } |