2007-10-30 Markus Deuling <deuling@de.ibm.com>
authorUlrich Weigand <uweigand@de.ibm.com>
Tue, 30 Oct 2007 21:40:23 +0000 (21:40 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Tue, 30 Oct 2007 21:40:23 +0000 (21:40 +0000)
* alphabsd-nat.c (alphabsd_fetch_inferior_registers)
(alphabsd_store_inferior_registers): Use get_regcache_arch to get at
the current architecture by regcache.

gdb/ChangeLog
gdb/alphabsd-nat.c

index 0730139..b9de792 100644 (file)
@@ -1,5 +1,11 @@
 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.
+
+2007-10-30  Markus Deuling  <deuling@de.ibm.com>
+
        * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
        gdbarch.
 
index 1f7f62f..a166691 100644 (file)
@@ -99,7 +99,7 @@ alphabsd_fetch_inferior_registers (struct regcache *regcache, int regno)
        return;
     }
 
-  if (regno == -1 || regno >= gdbarch_fp0_regnum (current_gdbarch))
+  if (regno == -1 || regno >= gdbarch_fp0_regnum (get_regcache_arch (regcache)))
     {
       struct fpreg fpregs;
 
@@ -134,7 +134,7 @@ alphabsd_store_inferior_registers (struct regcache *regcache, int regno)
        return;
     }
 
-  if (regno == -1 || regno >= gdbarch_fp0_regnum (current_gdbarch))
+  if (regno == -1 || regno >= gdbarch_fp0_regnum (get_regcache_arch (regcache)))
     {
       struct fpreg fpregs;