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 | a839a99ecfb5c4d8af50d0ffb49ab9df99066877 (patch) | |
tree | 068259be1b24a4f67712354e690c774a9d3f97f9 /gdb/sparc-linux-nat.c | |
parent | b10dc0430f3aba4ca698e5bedd304db418cc4e94 (diff) | |
download | gdb-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/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 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 |