2007-10-31 Markus Deuling <deuling@de.ibm.com>
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 31 Oct 2007 14:15:49 +0000 (14:15 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Wed, 31 Oct 2007 14:15:49 +0000 (14:15 +0000)
* arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
to get at the current architecture by regcache.

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

index 65b2043d4d2ffe3490dc0f21dc5be43bfd7fb98f..c32d77c65c2bdc39c56f85b13d4da8444a934814 100644 (file)
@@ -1,3 +1,8 @@
+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)
index bc005934a9bb919aa7bd63c586bfb05c0c24ee2e..225be5fd5372c920c2759e79874960176943acf9 100644 (file)
@@ -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 *) &regs[ARM_PC_REGNUM]);
     }
@@ -291,7 +292,7 @@ fetch_regs (struct regcache *regcache)
                         (char *) &regs[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 *) &regs[ARM_PC_REGNUM]);
 }