aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-10-30 21:46:25 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-10-30 21:46:25 +0000
commit13b8769fe05318f4ed96b2b640a64bd5be938944 (patch)
tree3b8747dd9733e917f9efda3531084811b31b91c1 /gdb
parent27524c05b80a6e6e54a6600ec48c1b089a4a2d2c (diff)
downloadgdb-13b8769fe05318f4ed96b2b640a64bd5be938944.zip
gdb-13b8769fe05318f4ed96b2b640a64bd5be938944.tar.gz
gdb-13b8769fe05318f4ed96b2b640a64bd5be938944.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/corelow.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bc7c73f..f8aa344 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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)
(bsd_uthread_store_registers): Use get_regcache_arch to get at the
current architecture by regcache.
diff --git a/gdb/corelow.c b/gdb/corelow.c
index 1b963ca..07be3f4 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -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);
}