summaryrefslogtreecommitdiff
path: root/gdb/sparc64-linux-nat.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2006-04-04 21:53:45 +0000
committerDavid S. Miller <davem@redhat.com>2006-04-04 21:53:45 +0000
commita839a99ecfb5c4d8af50d0ffb49ab9df99066877 (patch)
tree068259be1b24a4f67712354e690c774a9d3f97f9 /gdb/sparc64-linux-nat.c
parentb10dc0430f3aba4ca698e5bedd304db418cc4e94 (diff)
downloadgdb-a839a99ecfb5c4d8af50d0ffb49ab9df99066877.tar.gz
* config/linux.mh (NATDEPFILES): Remove sparc-sol2-nat.o
* config/linux64.h (NATDEPFILES): Likewise * sparc-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset): New. * sparc64-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset): New.
Diffstat (limited to 'gdb/sparc64-linux-nat.c')
-rw-r--r--gdb/sparc64-linux-nat.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/gdb/sparc64-linux-nat.c b/gdb/sparc64-linux-nat.c
index 730d4f9b3f8..9dc9a6cde5a 100644
--- a/gdb/sparc64-linux-nat.c
+++ b/gdb/sparc64-linux-nat.c
@@ -20,8 +20,13 @@
Boston, MA 02110-1301, USA. */
#include "defs.h"
+#include "regcache.h"
+
+#include <sys/procfs.h>
+#include "gregset.h"
#include "sparc64-tdep.h"
+#include "sparc-tdep.h"
#include "sparc-nat.h"
#include "inferior.h"
#include "target.h"
@@ -41,6 +46,30 @@ static const struct sparc_gregset sparc64_linux_ptrace_gregset =
};
+void
+supply_gregset (prgregset_t *gregs)
+{
+ sparc64_supply_gregset (sparc_gregset, current_regcache, -1, gregs);
+}
+
+void
+supply_fpregset (prfpregset_t *fpregs)
+{
+ sparc64_supply_fpregset (current_regcache, -1, fpregs);
+}
+
+void
+fill_gregset (prgregset_t *gregs, int regnum)
+{
+ sparc64_collect_gregset (sparc_gregset, current_regcache, regnum, gregs);
+}
+
+void
+fill_fpregset (prfpregset_t *fpregs, int regnum)
+{
+ sparc64_collect_fpregset (current_regcache, regnum, fpregs);
+}
+
/* Provide a prototype to silence -Wmissing-prototypes. */
void _initialize_sparc64_linux_nat (void);