diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-30 21:50:46 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-30 21:50:46 +0000 |
commit | 8f4f3fbe31e52ff8d866167c822bc8ab0815c9ca (patch) | |
tree | f1ed7277c69f04bb58c674f14e9cd2bde4ff3025 /gdb | |
parent | 13b8769fe05318f4ed96b2b640a64bd5be938944 (diff) | |
download | gdb-8f4f3fbe31e52ff8d866167c822bc8ab0815c9ca.zip gdb-8f4f3fbe31e52ff8d866167c822bc8ab0815c9ca.tar.gz gdb-8f4f3fbe31e52ff8d866167c822bc8ab0815c9ca.tar.bz2 |
2007-10-30 Markus Deuling <deuling@de.ibm.com>
* core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
the current architecture by regcache.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/core-regset.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f8aa344..3ae908c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2007-10-30 Markus Deuling <deuling@de.ibm.com> + * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at + the current architecture by regcache. + +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. diff --git a/gdb/core-regset.c b/gdb/core-regset.c index 6d7f546..1e539bd 100644 --- a/gdb/core-regset.c +++ b/gdb/core-regset.c @@ -85,7 +85,7 @@ fetch_core_registers (struct regcache *regcache, else { memcpy (&fpregset, core_reg_sect, sizeof (fpregset)); - if (gdbarch_fp0_regnum (current_gdbarch) >= 0) + if (gdbarch_fp0_regnum (get_regcache_arch (regcache)) >= 0) supply_fpregset (regcache, (const gdb_fpregset_t *) fpregset_p); } break; |