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

gdb/ChangeLog
gdb/corelow.c

index bc7c73ffc589b0ab3feb0e3352b1047eb5d01529..f8aa344858ae0c96ee8cee7b0074fff86bac14fd 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-30  Markus Deuling  <deuling@de.ibm.com>
+
+       * corelow.c (get_core_registers): Use get_regcache_arch to get at the
+       current architecture by regcache.
+
 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
 
        * bsd-uthread.c (bsd_uthread_fetch_registers)
index 1b963caa197d7beb4accbb7c9762114ecce74afb..07be3f437731bf080f881545b3b2ca4a507abdbf 100644 (file)
@@ -503,7 +503,7 @@ get_core_registers (struct regcache *regcache, int regno)
                             ".reg-ppc-vmx", 3, "ppc Altivec", 0);
 
   /* Supply dummy value for all registers not found in the core.  */
-  for (i = 0; i < gdbarch_num_regs (current_gdbarch); i++)
+  for (i = 0; i < gdbarch_num_regs (get_regcache_arch (regcache)); i++)
     if (!regcache_valid_p (regcache, i))
       regcache_raw_supply (regcache, i, NULL);
 }
This page took 0.028242 seconds and 4 git commands to generate.