diff options
-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 0730139..b9de792 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 1f7f62f..a166691 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; |