diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-30 21:40:23 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-30 21:40:23 +0000 |
commit | 676b224e19032076d87ee9755f76c0d0c218be04 (patch) | |
tree | caeef2c8e9a3444f794c7b51388b58793a144cd7 | |
parent | 81250fdaf47c574877341882df11e1c147e2bac4 (diff) | |
download | gdb-676b224e19032076d87ee9755f76c0d0c218be04.tar.gz |
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.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/alphabsd-nat.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 07301396b87..b9de7925525 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/alphabsd-nat.c b/gdb/alphabsd-nat.c index 1f7f62f0588..a166691fd63 100644 --- a/gdb/alphabsd-nat.c +++ b/gdb/alphabsd-nat.c @@ -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; |