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 Provide {supply, fill}_{g, fp}regset
details: https://anonhg.NetBSD.org/src/rev/a83376d494f2
branches: trunk
changeset: 772979:a83376d494f2
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Jan 22 22:04:48 2012 +0000
description:
Provide {supply,fill}_{g,fp}regset
diffstat:
external/gpl3/gdb/dist/gdb/hppanbsd-nat.c | 50 ++++++++++++++++++++++++++++++-
1 files changed, 49 insertions(+), 1 deletions(-)
diffs (74 lines):
diff -r 83287021be0c -r a83376d494f2 external/gpl3/gdb/dist/gdb/hppanbsd-nat.c
--- a/external/gpl3/gdb/dist/gdb/hppanbsd-nat.c Sun Jan 22 20:41:25 2012 +0000
+++ b/external/gpl3/gdb/dist/gdb/hppanbsd-nat.c Sun Jan 22 22:04:48 2012 +0000
@@ -30,6 +30,16 @@
#include "nbsd-nat.h"
+#ifndef HAVE_GREGSET_T
+typedef struct reg gregset_t;
+#endif
+
+#ifndef HAVE_FPREGSET_T
+typedef struct fpreg fpregset_t;
+#endif
+
+#include "gregset.h"
+
static int
hppanbsd_gregset_supplies_p (int regnum)
{
@@ -138,7 +148,7 @@
in FPREGS. */
static void
-hppanbsd_collect_fpregset (struct regcache *regcache,
+hppanbsd_collect_fpregset (const struct regcache *regcache,
void *fpregs, int regnum)
{
char *regs = fpregs;
@@ -224,6 +234,44 @@
}
}
+void
+supply_gregset (struct regcache *regcache, const gregset_t *gregsetp)
+{
+ hppanbsd_supply_gregset (regcache, gregsetp);
+}
+
+/* Fill register REGNUM (if it is a general-purpose register) in
+ *GREGSETP with the value in GDB's register cache. If REGNUM is -1,
+ do this for all registers. */
+
+void
+fill_gregset (const struct regcache *regcache,
+ gregset_t *gregsetp, int regnum)
+{
+ hppanbsd_collect_gregset (regcache, gregsetp, regnum);
+}
+
+/* Transfering floating-point registers between GDB, inferiors and cores. */
+
+/* Fill GDB's register cache with the floating-point and SSE register
+ values in *FPREGSETP. */
+
+void
+supply_fpregset (struct regcache *regcache, const fpregset_t *fpregsetp)
+{
+ hppanbsd_supply_fpregset (regcache, fpregsetp);
+}
+
+/* Fill register REGNUM (if it is a floating-point or SSE register) in
+ *FPREGSETP with the value in GDB's register cache. If REGNUM is
+ -1, do this for all registers. */
+
+void
+fill_fpregset (const struct regcache *regcache,
+ fpregset_t *fpregsetp, int regnum)
+{
+ hppanbsd_collect_fpregset (regcache, fpregsetp, regnum);
+}
/* Provide a prototype to silence -Wmissing-prototypes. */
void _initialize_hppanbsd_nat (void);
Home |
Main Index |
Thread Index |
Old Index