X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fi386v4-nat.c;h=e4b66b846e4b16c8e55adfd8dca132814cb1de9e;hb=74531fed1f2d662debc2c209b8b3faddceb55960;hp=96e29b8f98d037ff2415cab39e4bb65e7b3c2be9;hpb=a9762ec78a53fbe9209fe1654db42df0cd328d50;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/i386v4-nat.c b/gdb/i386v4-nat.c index 96e29b8f98..e4b66b846e 100644 --- a/gdb/i386v4-nat.c +++ b/gdb/i386v4-nat.c @@ -1,7 +1,7 @@ /* Native-dependent code for Unix SVR4 running on i386's. Copyright (C) 1988, 1989, 1991, 1992, 1996, 1997, 1998, 1999, 2000, 2001, - 2002, 2004, 2007 Free Software Foundation, Inc. + 2002, 2004, 2007, 2008 Free Software Foundation, Inc. This file is part of GDB. @@ -137,7 +137,7 @@ fill_gregset (const struct regcache *regcache, void supply_fpregset (struct regcache *regcache, const fpregset_t *fpregsetp) { - if (gdbarch_fp0_regnum (current_gdbarch) == 0) + if (gdbarch_fp0_regnum (get_regcache_arch (regcache)) == 0) return; i387_supply_fsave (regcache, -1, fpregsetp); @@ -151,7 +151,7 @@ void fill_fpregset (const struct regcache *regcache, fpregset_t *fpregsetp, int regno) { - if (gdbarch_fp0_regnum (current_gdbarch) == 0) + if (gdbarch_fp0_regnum (get_regcache_arch (regcache)) == 0) return; i387_collect_fsave (regcache, regno, fpregsetp);