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 Make mips gdb7 compile.
details: https://anonhg.NetBSD.org/src/rev/b319e8595b2f
branches: trunk
changeset: 773606:b319e8595b2f
user: skrll <skrll%NetBSD.org@localhost>
date: Thu Feb 09 15:14:19 2012 +0000
description:
Make mips gdb7 compile.
XXX not sure I got this right.
diffstat:
external/gpl3/gdb/dist/gdb/mipsnbsd-nat.c | 36 +++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
diffs (53 lines):
diff -r 910feb1c6dd6 -r b319e8595b2f external/gpl3/gdb/dist/gdb/mipsnbsd-nat.c
--- a/external/gpl3/gdb/dist/gdb/mipsnbsd-nat.c Thu Feb 09 15:13:30 2012 +0000
+++ b/external/gpl3/gdb/dist/gdb/mipsnbsd-nat.c Thu Feb 09 15:14:19 2012 +0000
@@ -27,6 +27,16 @@
#include <sys/ptrace.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"
+
#include "mips-tdep.h"
#include "mipsnbsd-tdep.h"
#include "inf-ptrace.h"
@@ -110,6 +120,32 @@
}
}
+/* Wrapper functions. These are only used by nbsd-thread. */
+void
+supply_gregset (struct regcache *regcache, const gdb_gregset_t *gregsetp)
+{
+ mipsnbsd_supply_reg (regcache, (const char *) gregsetp, -1);
+}
+
+void
+fill_gregset (const struct regcache *regcache,
+ gdb_gregset_t *gregsetp, int regno)
+{
+ mipsnbsd_fill_reg (regcache, (char *) gregsetp, -1);
+}
+
+void
+supply_fpregset (struct regcache *regcache, const gdb_fpregset_t *fpregsetp)
+{
+ mipsnbsd_supply_fpreg (regcache, (const char *) fpregsetp, -1);
+}
+
+void
+fill_fpregset (const struct regcache *regcache,
+ gdb_fpregset_t *fpregsetp, int regno)
+{
+ mipsnbsd_fill_fpreg (regcache, (char *) fpregsetp, -1);
+}
/* Provide a prototype to silence -Wmissing-prototypes. */
void _initialize_mipsnbsd_nat (void);
Home |
Main Index |
Thread Index |
Old Index