aboutsummaryrefslogtreecommitdiff
path: root/gdb/alphabsd-nat.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-10-30 21:40:23 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-10-30 21:40:23 +0000
commit600d293e5fc14eb1feb984dd41c9f144b280fe31 (patch)
tree25645956caf48f3311d3aa481965ee785a156549 /gdb/alphabsd-nat.c
parentd4a9a8813dc2afb8289b6cd4d04cc1c75986607d (diff)
downloadgdb-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.c4
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;