* 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>
+
+ * 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
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;
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;