2008-11-12 Tristan Gingold <gingold@adacore.com>
[binutils-gdb.git] / gdb / m68klinux-nat.c
index edd002e7e358db5fd78eb3e4cc0f7eda8e2900c2..149a0b66a765fe1211a17b922cc0e95cea44e9f5 100644 (file)
@@ -79,8 +79,7 @@ getregs_supplies (int regno)
 int
 getfpregs_supplies (int regno)
 {
-  return gdbarch_fp0_regnum (current_gdbarch) <= regno
-        && regno <= M68K_FPI_REGNUM;
+  return M68K_FP0_REGNUM <= regno && regno <= M68K_FPI_REGNUM;
 }
 
 /* Does the current host support the GETREGS request?  */
@@ -180,7 +179,7 @@ old_fetch_inferior_registers (struct regcache *regcache, int regno)
 static void
 store_register (const struct regcache *regcache, int regno)
 {
-  struct gdbarch *gdbarch = reg_regcache_arch (regcache);
+  struct gdbarch *gdbarch = get_regcache_arch (regcache);
   /* This isn't really an address.  But ptrace thinks of it as one.  */
   CORE_ADDR regaddr;
   char mess[128];              /* For messages */