2007-10-30 Markus Deuling <deuling@de.ibm.com>
authorUlrich Weigand <uweigand@de.ibm.com>
Tue, 30 Oct 2007 21:41:21 +0000 (21:41 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Tue, 30 Oct 2007 21:41:21 +0000 (21:41 +0000)
* arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
to get at the current architecture by regcache.

gdb/ChangeLog
gdb/arm-linux-tdep.c

index b9de79255257f83a7e31973743d70e40ea3ad31f..455fd99afcdccbfbf710503e135324e5b2c434c1 100644 (file)
@@ -1,3 +1,8 @@
+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)
index fd6b2e5a6a042fd3e800c53b61f2d38e775eda1a..cdbb910367d5c5f1704722581606f2b13534203b 100644 (file)
@@ -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);
     }