diff options
author | David S. Miller <davem@redhat.com> | 2006-04-04 21:53:45 +0000 |
---|---|---|
committer | David S. Miller <davem@redhat.com> | 2006-04-04 21:53:45 +0000 |
commit | 75e192e668ff7717572b9a34c3182376709a6843 (patch) | |
tree | d161a11fc7888fafe5ac95d04b652ce8562c9541 /gdb/sparc-linux-nat.c | |
parent | dbcd679b17d4eced511a9e0511d9205f330929f0 (diff) | |
download | gdb-75e192e668ff7717572b9a34c3182376709a6843.zip gdb-75e192e668ff7717572b9a34c3182376709a6843.tar.gz gdb-75e192e668ff7717572b9a34c3182376709a6843.tar.bz2 |
* 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/sparc-linux-nat.c')
-rw-r--r-- | gdb/sparc-linux-nat.c | 31 |
1 files changed, 31 insertions, 0 deletions
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 <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 |