summaryrefslogtreecommitdiff
path: root/gdb/sparc-linux-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/sparc-linux-nat.c')
-rw-r--r--gdb/sparc-linux-nat.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/gdb/sparc-linux-nat.c b/gdb/sparc-linux-nat.c
index a234402fd78..87da3f1cd8d 100644
--- a/gdb/sparc-linux-nat.c
+++ b/gdb/sparc-linux-nat.c
@@ -20,10 +20,41 @@
Boston, MA 02110-1301, USA. */
#include "defs.h"
+#include "regcache.h"
+
+#include <sys/procfs.h>
+#include "gregset.h"
+
+#include "sparc-tdep.h"
+#include "sparc-nat.h"
#include "inferior.h"
#include "target.h"
#include "linux-nat.h"
+void
+supply_gregset (prgregset_t *gregs)
+{
+ sparc32_supply_gregset (sparc_gregset, current_regcache, -1, gregs);
+}
+
+void
+supply_fpregset (prfpregset_t *fpregs)
+{
+ sparc32_supply_fpregset (current_regcache, -1, fpregs);
+}
+
+void
+fill_gregset (prgregset_t *gregs, int regnum)
+{
+ sparc32_collect_gregset (sparc_gregset, current_regcache, regnum, gregs);
+}
+
+void
+fill_fpregset (prfpregset_t *fpregs, int regnum)
+{
+ sparc32_collect_fpregset (current_regcache, regnum, fpregs);
+}
+
void _initialialize_sparc_linux_nat (void);
void