Index: gdb/sparcnbsd-tdep.c |
diff --git a/gdb/sparcnbsd-tdep.c b/gdb/sparcnbsd-tdep.c |
index 9afbbcf14e292ee865ede1c19ea28acb7e8adce5..eb1dff9c0f14c9f5b7e1f44b6d354c00ae61b794 100644 |
--- a/gdb/sparcnbsd-tdep.c |
+++ b/gdb/sparcnbsd-tdep.c |
@@ -1,6 +1,6 @@ |
/* Target-dependent code for NetBSD/sparc. |
- Copyright (C) 2002-2004, 2006-2012 Free Software Foundation, Inc. |
+ Copyright (C) 2002-2013 Free Software Foundation, Inc. |
Contributed by Wasabi Systems, Inc. |
This file is part of GDB. |
@@ -31,7 +31,7 @@ |
#include "trad-frame.h" |
#include "gdb_assert.h" |
-#include "gdb_string.h" |
+#include <string.h> |
#include "sparc-tdep.h" |
#include "nbsd-tdep.h" |
@@ -64,7 +64,8 @@ sparc32nbsd_supply_gregset (const struct regset *regset, |
Instead, the general-purpose and floating-point registers are |
lumped together in a single section. */ |
if (len >= 212) |
- sparc32_supply_fpregset (regcache, regnum, (const char *) gregs + 80); |
+ sparc32_supply_fpregset (&sparc32_bsd_fpregset, regcache, regnum, |
+ (const char *) gregs + 80); |
} |
static void |
@@ -72,7 +73,7 @@ sparc32nbsd_supply_fpregset (const struct regset *regset, |
struct regcache *regcache, |
int regnum, const void *fpregs, size_t len) |
{ |
- sparc32_supply_fpregset (regcache, regnum, fpregs); |
+ sparc32_supply_fpregset (&sparc32_bsd_fpregset, regcache, regnum, fpregs); |
} |