Index: gdb/sparc64nbsd-nat.c |
diff --git a/gdb/sparc64nbsd-nat.c b/gdb/sparc64nbsd-nat.c |
index b37965cf10ec67a18e5fbfdf91cb76a39c680522..636ac6c8b701e3925ee0d6b6ce4cd623158bf348 100644 |
--- a/gdb/sparc64nbsd-nat.c |
+++ b/gdb/sparc64nbsd-nat.c |
@@ -1,6 +1,6 @@ |
/* Native-dependent code for NetBSD/sparc64. |
- Copyright (C) 2003-2004, 2006-2012 Free Software Foundation, Inc. |
+ Copyright (C) 2003-2013 Free Software Foundation, Inc. |
This file is part of GDB. |
@@ -56,15 +56,16 @@ sparc64nbsd_collect_gregset (const struct sparc_gregset *gregset, |
} |
static void |
-sparc64nbsd_supply_fpregset (struct regcache *regcache, |
+sparc64nbsd_supply_fpregset (const struct sparc_fpregset *fpregset, |
+ struct regcache *regcache, |
int regnum, const void *fpregs) |
{ |
int sparc32 = (gdbarch_ptr_bit (get_regcache_arch (regcache)) == 32); |
if (sparc32) |
- sparc32_supply_fpregset (regcache, regnum, fpregs); |
+ sparc32_supply_fpregset (&sparc32_bsd_fpregset, regcache, regnum, fpregs); |
else |
- sparc64_supply_fpregset (regcache, regnum, fpregs); |
+ sparc64_supply_fpregset (&sparc64_bsd_fpregset, regcache, regnum, fpregs); |
} |
static void |
@@ -74,9 +75,9 @@ sparc64nbsd_collect_fpregset (const struct regcache *regcache, |
int sparc32 = (gdbarch_ptr_bit (get_regcache_arch (regcache)) == 32); |
if (sparc32) |
- sparc32_collect_fpregset (regcache, regnum, fpregs); |
+ sparc32_collect_fpregset (&sparc32_bsd_fpregset, regcache, regnum, fpregs); |
else |
- sparc64_collect_fpregset (regcache, regnum, fpregs); |
+ sparc64_collect_fpregset (&sparc64_bsd_fpregset, regcache, regnum, fpregs); |
} |
/* Determine whether `gregset_t' contains register REGNUM. */ |