Source-Changes-HG archive

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

[src/trunk]: src/gnu/dist/toolchain/gdb Add NetBSD/vax support. Fix compile ...



details:   https://anonhg.NetBSD.org/src/rev/b9a87000b375
branches:  trunk
changeset: 509409:b9a87000b375
user:      matt <matt%NetBSD.org@localhost>
date:      Thu May 03 17:25:45 2001 +0000

description:
Add NetBSD/vax support.  Fix compile bug in vax-tdep.c

diffstat:

 gnu/dist/toolchain/gdb/config/vax/nbsd.mh   |   5 +++++
 gnu/dist/toolchain/gdb/config/vax/nbsd.mt   |   3 +++
 gnu/dist/toolchain/gdb/config/vax/nm-nbsd.h |  22 ++++++++++++++++++++++
 gnu/dist/toolchain/gdb/config/vax/xm-nbsd.h |  22 ++++++++++++++++++++++
 gnu/dist/toolchain/gdb/configure.host       |   1 +
 gnu/dist/toolchain/gdb/configure.tgt        |   2 ++
 gnu/dist/toolchain/gdb/vax-tdep.c           |   5 ++++-
 7 files changed, 59 insertions(+), 1 deletions(-)

diffs (113 lines):

diff -r b74f2992db8b -r b9a87000b375 gnu/dist/toolchain/gdb/config/vax/nbsd.mh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/dist/toolchain/gdb/config/vax/nbsd.mh Thu May 03 17:25:45 2001 +0000
@@ -0,0 +1,5 @@
+# Host: DEC VAX running NetBSD
+XDEPFILES=
+NATDEPFILES= infptrace.o inftarg.o fork-child.o corelow.o vaxnbsd-nat.o solib.o
+XM_FILE= xm-nbsd.h
+NAT_FILE= nm-nbsd.h
diff -r b74f2992db8b -r b9a87000b375 gnu/dist/toolchain/gdb/config/vax/nbsd.mt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/dist/toolchain/gdb/config/vax/nbsd.mt Thu May 03 17:25:45 2001 +0000
@@ -0,0 +1,3 @@
+# Target: DEC VAX running NetBSD
+TDEPFILES= vax-tdep.o
+TM_FILE= tm-vax.h
diff -r b74f2992db8b -r b9a87000b375 gnu/dist/toolchain/gdb/config/vax/nm-nbsd.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/dist/toolchain/gdb/config/vax/nm-nbsd.h       Thu May 03 17:25:45 2001 +0000
@@ -0,0 +1,22 @@
+/* Native-dependent definitions for DEC VAX running NetBSD, for GDB.
+   Copyright 1996 Free Software Foundation, Inc.
+
+This file is part of GDB.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#define        SVR4_SHARED_LIBS
+/* Get generic NetBSD native definitions. */
+#include "nm-nbsd.h"
diff -r b74f2992db8b -r b9a87000b375 gnu/dist/toolchain/gdb/config/vax/xm-nbsd.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/dist/toolchain/gdb/config/vax/xm-nbsd.h       Thu May 03 17:25:45 2001 +0000
@@ -0,0 +1,22 @@
+/* Parameters for execution on a DEC VAX running NetBSD, for GDB.
+   Copyright 1996 Free Software Foundation, Inc.
+
+   This file is part of GDB.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+/* Get generic NetBSD host definitions. */
+#include "xm-nbsd.h"
diff -r b74f2992db8b -r b9a87000b375 gnu/dist/toolchain/gdb/configure.host
--- a/gnu/dist/toolchain/gdb/configure.host     Thu May 03 17:24:46 2001 +0000
+++ b/gnu/dist/toolchain/gdb/configure.host     Thu May 03 17:25:45 2001 +0000
@@ -162,6 +162,7 @@
 
 # OBSOLETE tahoe-*-*)          gdb_host=tahoe ;;
 
+vax-*-netbsd*)         gdb_host=nbsd ;;
 vax-*-bsd*)            gdb_host=vaxbsd ;;
 vax-*-ultrix2*)                gdb_host=vaxult2 ;;
 vax-*-ultrix*)         gdb_host=vaxult ;;
diff -r b74f2992db8b -r b9a87000b375 gnu/dist/toolchain/gdb/configure.tgt
--- a/gnu/dist/toolchain/gdb/configure.tgt      Thu May 03 17:24:46 2001 +0000
+++ b/gnu/dist/toolchain/gdb/configure.tgt      Thu May 03 17:25:45 2001 +0000
@@ -276,6 +276,8 @@
 tic80-*-*)             gdb_target=tic80
                        configdirs="${configdirs} gdbserver" ;;
 
+vax-*-netbsd*)         gdb_target=nbsd ;;
+
 vax-*-*)               gdb_target=vax ;;
 
 fr30-*-*)              gdb_target=fr30
diff -r b74f2992db8b -r b9a87000b375 gnu/dist/toolchain/gdb/vax-tdep.c
--- a/gnu/dist/toolchain/gdb/vax-tdep.c Thu May 03 17:24:46 2001 +0000
+++ b/gnu/dist/toolchain/gdb/vax-tdep.c Thu May 03 17:25:45 2001 +0000
@@ -20,6 +20,9 @@
 
 #include "defs.h"
 #include "symtab.h"
+#include "gdbcore.h"
+#include "frame.h"
+#include "value.h"
 #include "opcode/vax.h"
 
 /* Vax instructions are never longer than this.  */
@@ -287,7 +290,7 @@
       case 14:                 /* Long displacement */
        if (regnum == PC_REGNUM)
          {
-           info->target = addr + *(short *) p + 5;
+           info->target = addr + *(long *) p + 5;
            (*info->print_address_func) (info->target, info);
          }
        else



Home | Main Index | Thread Index | Old Index