aboutsummaryrefslogtreecommitdiff
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
commite071d1f67462901649858166f71b581ab22bf929 (patch)
treeba716a9ca3ff36306a673cd93b9c0b4bfd493c3e
parentf8d2990873716de2bee1048265d51b46b801f2e2 (diff)
downloadgdb-e071d1f67462901649858166f71b581ab22bf929.zip
gdb-e071d1f67462901649858166f71b581ab22bf929.tar.gz
gdb-e071d1f67462901649858166f71b581ab22bf929.tar.bz2
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/i387-tdep.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e25bbcf..134642a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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.
+
+2007-10-22 Markus Deuling <deuling@de.ibm.com>
+
* target.c (debug_print_register): Use get_regcache_arch to get at the
current architecture by regcache.
diff --git a/gdb/i387-tdep.c b/gdb/i387-tdep.c
index d54268e..73a7797 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;