]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2007-10-22 Markus Deuling <deuling@de.ibm.com>
authorUlrich Weigand <uweigand@de.ibm.com>
Mon, 22 Oct 2007 14:04:42 +0000 (14:04 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Mon, 22 Oct 2007 14:04:42 +0000 (14:04 +0000)
* i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
get_regcache_arch to get at the current architecture by regcache.

gdb/ChangeLog
gdb/i387-tdep.c

index e25bbcf09ccf26fd9d34cea17dc257c8f43a06f8..134642a468135fea52be82c9acf753f70b67f227 100644 (file)
@@ -1,3 +1,8 @@
+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
index d54268e8094d49258c6ca1dc8dd5d7d3048a91fb..73a7797b0a90bcaba5e4a88d312bdd8fb7a4b06e 100644 (file)
@@ -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;