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 adapt to new api



details:   https://anonhg.NetBSD.org/src/rev/2179526a8011
branches:  trunk
changeset: 814504:2179526a8011
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Mar 24 03:49:06 2016 +0000

description:
adapt to new api

diffstat:

 external/gpl3/gdb/dist/gdb/vaxbsd-nat.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (43 lines):

diff -r f4727a53f669 -r 2179526a8011 external/gpl3/gdb/dist/gdb/vaxbsd-nat.c
--- a/external/gpl3/gdb/dist/gdb/vaxbsd-nat.c   Thu Mar 24 03:33:28 2016 +0000
+++ b/external/gpl3/gdb/dist/gdb/vaxbsd-nat.c   Thu Mar 24 03:49:06 2016 +0000
@@ -17,7 +17,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef _KERNTYPES
 #define _KERNTYPES
+#endif
 #include "defs.h"
 #include "inferior.h"
 #include "regcache.h"
@@ -34,6 +36,11 @@
 #ifndef HAVE_GREGSET_T
 typedef struct reg gregset_t;
 #endif
+#ifndef HAVE_FPREGSET_T
+typedef struct fpreg fpregset_t;
+#endif
+
+#include "gregset.h"
 
 /* Supply the general-purpose registers stored in GREGS to REGCACHE.  */
 
@@ -64,7 +71,7 @@
     }
 }
 
-static void
+void
 supply_gregset (struct regcache *regcache, const gregset_t *gregs)
 {
   if (ptrace (PT_SETREGS, ptid_get_pid (inferior_ptid),
@@ -72,7 +79,7 @@
     perror_with_name (_("Couldn't write registers"));
 }
 
-static void
+void
 fill_gregset (const struct regcache *regcache, gregset_t *gregs, int regnum)
 {
   if (ptrace (PT_GETREGS, ptid_get_pid (inferior_ptid),



Home | Main Index | Thread Index | Old Index