Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gdb/dist/gdb fix this properly.



details:   https://anonhg.NetBSD.org/src/rev/ed9406ab7dbc
branches:  trunk
changeset: 773036:ed9406ab7dbc
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 25 16:25:28 2012 +0000

description:
fix this properly.

diffstat:

 external/gpl3/gdb/dist/gdb/sparc64nbsd-nat.c |  21 +++++++++++++++------
 1 files changed, 15 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 1bf7f7aa335e -r ed9406ab7dbc external/gpl3/gdb/dist/gdb/sparc64nbsd-nat.c
--- a/external/gpl3/gdb/dist/gdb/sparc64nbsd-nat.c      Wed Jan 25 16:21:22 2012 +0000
+++ b/external/gpl3/gdb/dist/gdb/sparc64nbsd-nat.c      Wed Jan 25 16:25:28 2012 +0000
@@ -27,6 +27,17 @@
 #include "sparc64-tdep.h"
 #include "sparc-nat.h"
 
+#include <machine/reg.h>
+
+#ifndef HAVE_GREGSET_T
+typedef struct reg gregset_t;
+#endif
+
+#ifndef HAVE_FPREGSET_T
+typedef struct fpreg fpregset_t;
+#endif
+#include "gregset.h"
+ 
 /* NetBSD is different from the other OSes that support both SPARC and
    UltraSPARC in that the result of ptrace(2) depends on whether the
    traced process is 32-bit or 64-bit.  */
@@ -126,28 +137,26 @@
   return 0;
 }
 
-
 void
-supply_gregset (struct regcache *regcache, const void *gregs)
+supply_gregset (struct regcache *regcache, const gregset_t *gregs)
 {
   sparc64nbsd_supply_gregset (sparc_gregset, regcache, -1, gregs);
 }
 
 void
-supply_fpregset (struct regcache *regcache, const void *fpregs)
+supply_fpregset (struct regcache *regcache, const fpregset_t *fpregs)
 {
   sparc64nbsd_supply_fpregset (regcache, -1, fpregs);
 }
 
 void
-fill_gregset (const struct regcache *regcache, void *gregs, int regnum)
+fill_gregset (const struct regcache *regcache, gregset_t *gregs, int regnum)
 {
   sparc64nbsd_collect_gregset (sparc_gregset, regcache, regnum, gregs);
 }
 
 void
-fill_fpregset (const struct regcache *regcache,
-              void *fpregs, int regnum)
+fill_fpregset (const struct regcache *regcache, fpregset_t *fpregs, int regnum)
 {
   sparc64nbsd_collect_fpregset (regcache, regnum, fpregs);
 }



Home | Main Index | Thread Index | Old Index