aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1992-10-28 05:31:14 +0000
committerK. Richard Pixley <rich@cygnus>1992-10-28 05:31:14 +0000
commit7aae0974c21c5f0b22a0827b12bfedecec19cbaf (patch)
treec470d0fe01e09828ee1e42a7f15bf11a4c929137 /gdb
parent124a6fc03731dd62203eb02bd55eef793154cd5c (diff)
downloadgdb-7aae0974c21c5f0b22a0827b12bfedecec19cbaf.zip
gdb-7aae0974c21c5f0b22a0827b12bfedecec19cbaf.tar.gz
gdb-7aae0974c21c5f0b22a0827b12bfedecec19cbaf.tar.bz2
vax native support
Diffstat (limited to 'gdb')
-rw-r--r--gdb/.Sanitize1
-rw-r--r--gdb/ChangeLog10
-rw-r--r--gdb/Makefile.in2
-rw-r--r--gdb/config/vaxult.mh4
-rw-r--r--gdb/nm-vax.h28
-rw-r--r--gdb/xm-vax.h10
6 files changed, 44 insertions, 11 deletions
diff --git a/gdb/.Sanitize b/gdb/.Sanitize
index 22426d8..a61bcd0 100644
--- a/gdb/.Sanitize
+++ b/gdb/.Sanitize
@@ -169,6 +169,7 @@ nm-sysv4.h
nm-trash.h
nm-ultra3.h
nm-umax.h
+nm-vax.h
ns32k-opcode.h
ns32k-pinsn.c
objfiles.c
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5980a9c..b3d282d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,15 @@
Tue Oct 27 17:08:45 1992 K. Richard Pixley (rich@cygnus.com)
+ Vax ultrix native support.
+
+ * nm-vax.h: new file.
+ * Makefile.in (HFILES): added nm-vax.h.
+ * config/vaxult.mh (XDEPFILES): infptrace.o inftarg.o fork-child.o
+ coredep.o corelow.o removed.
+ (NAT_FILE, NATDEPFILES): new macros.
+ * xm-vax.h: updated copyright.
+ (REGISTER_U_ADDR): removed.
+
Apollo native support (untested).
* Makefile.in (HFILES): added nm-apollo68[bv].h.
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 2d438a8..920d383 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -257,7 +257,7 @@ HFILES= breakpoint.h buildsym.h call-cmds.h command.h defs.h \
nm-irix4.h nm-linux.h nm-m88k.h nm-mips.h nm-news.h nm-rs6000.h \
nm-sun2.h nm-sun3.h nm-sun386.h nm-sun4os4.h nm-trash.h \
nm-ultra3.h nm-hppab.h nm-hppah.h nm-umax.h nm-sysv4.h \
- nm-apollo68b.h nm-apollov.h
+ nm-apollo68b.h nm-apollo68v.h nm-vax.h
REMOTE_EXAMPLES = m68k-stub.c i386-stub.c sparc-stub.c rem-multi.shar
diff --git a/gdb/config/vaxult.mh b/gdb/config/vaxult.mh
index f085417..7c2fcca 100644
--- a/gdb/config/vaxult.mh
+++ b/gdb/config/vaxult.mh
@@ -1,6 +1,8 @@
# Host: DEC VAX running Ultrix
-XDEPFILES= infptrace.o inftarg.o fork-child.o coredep.o corelow.o
+XDEPFILES=
REGEX=regex.o
REGEX1=regex.o
XM_FILE= xm-vaxult.h
+NAT_FILE= nm-vax.h
+NATDEPFILES= infptrace.o inftarg.o fork-child.o coredep.o corelow.o
diff --git a/gdb/nm-vax.h b/gdb/nm-vax.h
new file mode 100644
index 0000000..efbfd02
--- /dev/null
+++ b/gdb/nm-vax.h
@@ -0,0 +1,28 @@
+/* Common definitions for GDB native support on Vaxen under 4.2bsd and Ultrix.
+ Copyright (C) 1986, 1987, 1989, 1992 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., 675 Mass Ave, Cambridge, MA 02139, USA. */
+
+#define REGISTER_U_ADDR(addr, blockend, regno) \
+{ addr = blockend - 0110 + regno * 4; \
+ if (regno == PC_REGNUM) addr = blockend - 8; \
+ if (regno == PS_REGNUM) addr = blockend - 4; \
+ if (regno == FP_REGNUM) addr = blockend - 0120; \
+ if (regno == AP_REGNUM) addr = blockend - 0124; \
+ if (regno == SP_REGNUM) addr = blockend - 20; }
+
+
diff --git a/gdb/xm-vax.h b/gdb/xm-vax.h
index 778602a..3e91b41 100644
--- a/gdb/xm-vax.h
+++ b/gdb/xm-vax.h
@@ -1,5 +1,5 @@
/* Common definitions to make GDB run on Vaxen under 4.2bsd and Ultrix.
- Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
+ Copyright (C) 1986, 1987, 1989, 1992 Free Software Foundation, Inc.
This file is part of GDB.
@@ -28,14 +28,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define KERNEL_U_ADDR (0x80000000 - (UPAGES * NBPG))
-#define REGISTER_U_ADDR(addr, blockend, regno) \
-{ addr = blockend - 0110 + regno * 4; \
- if (regno == PC_REGNUM) addr = blockend - 8; \
- if (regno == PS_REGNUM) addr = blockend - 4; \
- if (regno == FP_REGNUM) addr = blockend - 0120; \
- if (regno == AP_REGNUM) addr = blockend - 0124; \
- if (regno == SP_REGNUM) addr = blockend - 20; }
-
/* Kernel is a bit tenacious about sharing text segments, disallowing bpts. */
#define ONE_PROCESS_WRITETEXT