Module Name: src Committed By: christos Date: Wed Jan 25 16:21:22 UTC 2012
Modified Files: src/external/gpl3/gdb/dist/gdb: sparcnbsd-nat.c Log Message: make thi To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb/dist/gdb/sparcnbsd-nat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gdb/dist/gdb/sparcnbsd-nat.c diff -u src/external/gpl3/gdb/dist/gdb/sparcnbsd-nat.c:1.2 src/external/gpl3/gdb/dist/gdb/sparcnbsd-nat.c:1.3 --- src/external/gpl3/gdb/dist/gdb/sparcnbsd-nat.c:1.2 Sun Sep 25 12:30:25 2011 +++ src/external/gpl3/gdb/dist/gdb/sparcnbsd-nat.c Wed Jan 25 11:21:22 2012 @@ -30,9 +30,43 @@ #include <sys/types.h> #include <machine/pcb.h> +#include <machine/reg.h> #include "bsd-kvm.h" +#ifndef HAVE_GREGSET_T +typedef struct reg gregset_t; +#endif + +#ifndef HAVE_FPREGSET_T +typedef struct fpreg fpregset_t; +#endif +#include "gregset.h" + +void +supply_gregset (struct regcache *regcache, const gregset_t *gregs) +{ + sparc_supply_gregset (sparc_gregset, regcache, -1, gregs); +} + +void +supply_fpregset (struct regcache *regcache, const fpregset_t *fpregs) +{ + sparc_supply_fpregset (regcache, -1, fpregs); +} + +void +fill_gregset (const struct regcache *regcache, gregset_t *gregs, int regnum) +{ + sparc_collect_gregset (sparc_gregset, regcache, regnum, gregs); +} + +void +fill_fpregset (const struct regcache *regcache, fpregset_t *fpregs, int regnum) +{ + sparc_collect_fpregset (regcache, regnum, fpregs); +} + static int sparc32nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) {