From 75e192e668ff7717572b9a34c3182376709a6843 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Tue, 4 Apr 2006 21:53:45 +0000 Subject: * 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. --- gdb/sparc-linux-nat.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'gdb/sparc-linux-nat.c') diff --git a/gdb/sparc-linux-nat.c b/gdb/sparc-linux-nat.c index a234402..87da3f1 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 +#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 -- cgit v1.1