summaryrefslogtreecommitdiff
path: root/gdb/i387-tdep.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-10-22 14:04:42 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-10-22 14:04:42 +0000
commitc3397e69968b1a89e6cc7a4bc0f8340c1c40e03d (patch)
tree647f2036b912d986974e58834333cc3f4a1073f4 /gdb/i387-tdep.c
parent5d261a0d6004fa0ac7e79fa90be8eb6f5861a963 (diff)
downloadgdb-c3397e69968b1a89e6cc7a4bc0f8340c1c40e03d.tar.gz
2007-10-22 Markus Deuling <deuling@de.ibm.com>
* i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use get_regcache_arch to get at the current architecture by regcache.
Diffstat (limited to 'gdb/i387-tdep.c')
-rw-r--r--gdb/i387-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/i387-tdep.c b/gdb/i387-tdep.c
index d54268e8094..73a7797b0a9 100644
--- a/gdb/i387-tdep.c
+++ b/gdb/i387-tdep.c
@@ -435,7 +435,7 @@ i387_supply_fsave (struct regcache *regcache, int regnum, const void *fsave)
void
i387_collect_fsave (const struct regcache *regcache, int regnum, void *fsave)
{
- struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
+ struct gdbarch_tdep *tdep = gdbarch_tdep (get_regcache_arch (regcache));
gdb_byte *regs = fsave;
int i;
@@ -623,7 +623,7 @@ i387_supply_fxsave (struct regcache *regcache, int regnum, const void *fxsave)
void
i387_collect_fxsave (const struct regcache *regcache, int regnum, void *fxsave)
{
- struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
+ struct gdbarch_tdep *tdep = gdbarch_tdep (get_regcache_arch (regcache));
gdb_byte *regs = fxsave;
int i;