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 gdb link again



details:   https://anonhg.NetBSD.org/src/rev/0c389684ff50
branches:  trunk
changeset: 773034:0c389684ff50
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 25 16:08:37 2012 +0000

description:
make gdb link again

diffstat:

 external/gpl3/gdb/dist/gdb/m68kbsd-nat.c |  42 +++++++++++++++++++++++++++++++-
 1 files changed, 41 insertions(+), 1 deletions(-)

diffs (66 lines):

diff -r 8d6014670d74 -r 0c389684ff50 external/gpl3/gdb/dist/gdb/m68kbsd-nat.c
--- a/external/gpl3/gdb/dist/gdb/m68kbsd-nat.c  Wed Jan 25 15:58:10 2012 +0000
+++ b/external/gpl3/gdb/dist/gdb/m68kbsd-nat.c  Wed Jan 25 16:08:37 2012 +0000
@@ -32,6 +32,16 @@
 #include "m68k-tdep.h"
 #include "inf-ptrace.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
 m68kbsd_gregset_supplies_p (int regnum)
 {
@@ -91,7 +101,7 @@
    in FPREGS.  */
 
 static void
-m68kbsd_collect_fpregset (struct regcache *regcache,
+m68kbsd_collect_fpregset (const struct regcache *regcache,
                          void *fpregs, int regnum)
 {
   struct gdbarch *gdbarch = get_regcache_arch (regcache);
@@ -106,6 +116,36 @@
     }
 }
 
+void
+supply_gregset (struct regcache *regcache, const gregset_t *gregsetp)
+{
+  m68kbsd_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)
+{
+  m68kbsd_collect_gregset (regcache, gregsetp, regnum);
+}
+
+void
+supply_fpregset (struct regcache *regcache, const fpregset_t *fpregsetp)
+{  
+  m68kbsd_supply_fpregset (regcache, fpregsetp);
+}
+   
+void
+fill_fpregset (const struct regcache *regcache,
+               fpregset_t *fpregsetp, int regnum)
+{
+  m68kbsd_collect_fpregset (regcache, fpregsetp, regnum);
+}
+
 
 /* Fetch register REGNUM from the inferior.  If REGNUM is -1, do this
    for all registers (including the floating-point registers).  */



Home | Main Index | Thread Index | Old Index