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 | 600d293e5fc14eb1feb984dd41c9f144b280fe31 (patch) | |
tree | 25645956caf48f3311d3aa481965ee785a156549 /gdb/alphabsd-nat.c | |
parent | d4a9a8813dc2afb8289b6cd4d04cc1c75986607d (diff) | |
download | gdb-600d293e5fc14eb1feb984dd41c9f144b280fe31.zip gdb-600d293e5fc14eb1feb984dd41c9f144b280fe31.tar.gz gdb-600d293e5fc14eb1feb984dd41c9f144b280fe31.tar.bz2 |
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.
Diffstat (limited to 'gdb/alphabsd-nat.c')
-rw-r--r-- | gdb/alphabsd-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |