aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/m68k
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-07-11 23:29:31 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-07-11 23:29:31 +0000
commit0a8f1742669223640fa8b4509418675cfb3ea5a4 (patch)
tree014be7c4243f1c0d46be128bfc251041dcd956ea /gdb/config/m68k
parenta4b6affa7b66adb678d28513b55dc555482ee579 (diff)
downloadfsf-binutils-gdb-0a8f1742669223640fa8b4509418675cfb3ea5a4.zip
fsf-binutils-gdb-0a8f1742669223640fa8b4509418675cfb3ea5a4.tar.gz
fsf-binutils-gdb-0a8f1742669223640fa8b4509418675cfb3ea5a4.tar.bz2
* configure.in (m68*-bull-sysv*): added support for Bull dpx2.
* config/m68k/{t,x,n}m-dpx2.h, dpx2-nat.c: New files. * config/m68k/dpx2.m{h,t}: New files.
Diffstat (limited to 'gdb/config/m68k')
-rw-r--r--gdb/config/m68k/.Sanitize5
-rw-r--r--gdb/config/m68k/dpx2.mh9
-rw-r--r--gdb/config/m68k/dpx2.mt3
-rw-r--r--gdb/config/m68k/nm-dpx2.h29
-rw-r--r--gdb/config/m68k/tm-dpx2.h32
-rw-r--r--gdb/config/m68k/xm-dpx2.h26
6 files changed, 104 insertions, 0 deletions
diff --git a/gdb/config/m68k/.Sanitize b/gdb/config/m68k/.Sanitize
index 2a46c13..bba5ae2 100644
--- a/gdb/config/m68k/.Sanitize
+++ b/gdb/config/m68k/.Sanitize
@@ -29,6 +29,8 @@ amix.mh
amix.mt
apollo68b.mh
apollo68v.mh
+dpx2.mh
+dpx2.mt
es1800.mt
hp300bsd.mh
hp300bsd.mt
@@ -43,6 +45,7 @@ news.mt
news1000.mh
nm-apollo68b.h
nm-apollo68v.h
+nm-dpx2.h
nm-hp300bsd.h
nm-hp300hpux.h
nm-news.h
@@ -64,6 +67,7 @@ tm-m68k-nofp.h
tm-m68k.h
tm-altos.h
tm-amix.h
+tm-dpx2.h
tm-es1800.h
tm-hp300bsd.h
tm-hp300hpux.h
@@ -82,6 +86,7 @@ xm-altos.h
xm-amix.h
xm-apollo68b.h
xm-apollo68v.h
+xm-dpx2.h
xm-hp300bsd.h
xm-hp300hpux.h
xm-isi.h
diff --git a/gdb/config/m68k/dpx2.mh b/gdb/config/m68k/dpx2.mh
index e69de29..7f5f852 100644
--- a/gdb/config/m68k/dpx2.mh
+++ b/gdb/config/m68k/dpx2.mh
@@ -0,0 +1,9 @@
+# Host: Bull DPX2 (68k, System V release 3)
+XDEPFILES=
+XM_FILE= xm-dpx2.h
+NAT_FILE= nm-dpx2.h
+NATDEPFILES= infptrace.o coredep.o corelow.o inftarg.o dpx2-nat.o \
+ inftarg.o fork-child.o
+REGEX=regex.o
+REGEX1=regex.o
+TERMCAP=-lcurses
diff --git a/gdb/config/m68k/dpx2.mt b/gdb/config/m68k/dpx2.mt
index e69de29..948a851 100644
--- a/gdb/config/m68k/dpx2.mt
+++ b/gdb/config/m68k/dpx2.mt
@@ -0,0 +1,3 @@
+# Target: Bull DPX2 (68k, System V release 3)
+TDEPFILES= m68k-pinsn.o exec.o m68k-tdep.o
+TM_FILE= tm-dpx2.h
diff --git a/gdb/config/m68k/nm-dpx2.h b/gdb/config/m68k/nm-dpx2.h
index e69de29..7986e4c 100644
--- a/gdb/config/m68k/nm-dpx2.h
+++ b/gdb/config/m68k/nm-dpx2.h
@@ -0,0 +1,29 @@
+/* Native support for a Bull DPX2.
+ Copyright (C) 1986, 1987, 1989 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. */
+
+/* KERNEL_U_ADDR is determined upon startup in dpx2-xdep.c. */
+
+#define REGISTER_U_ADDR(addr, blockend, regno) \
+ (addr) = dpx2_register_u_addr ((blockend),(regno));
+
+extern int
+dpx2_register_u_addr PARAMS ((int, int));
+
+/* Kernel is a bit tenacious about sharing text segments, disallowing bpts. */
+#define ONE_PROCESS_WRITETEXT
diff --git a/gdb/config/m68k/tm-dpx2.h b/gdb/config/m68k/tm-dpx2.h
index e69de29..1483026 100644
--- a/gdb/config/m68k/tm-dpx2.h
+++ b/gdb/config/m68k/tm-dpx2.h
@@ -0,0 +1,32 @@
+/* Parameters for targeting to a Bull DPX2.
+ Copyright (C) 1986, 1987, 1989, 1991 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 BPT_VECTOR if it is different than the default.
+ This is the vector number used by traps to indicate a breakpoint. */
+
+#define BPT_VECTOR 0xe
+
+#define HAVE_68881
+
+/* Need to get function ends by adding this to epilogue address from .bf
+ record, not using x_fsize field. */
+#define FUNCTION_EPILOGUE_SIZE 4
+
+#include <sys/types.h>
+#include "tm-68k.h"
diff --git a/gdb/config/m68k/xm-dpx2.h b/gdb/config/m68k/xm-dpx2.h
index e69de29..f533cd9 100644
--- a/gdb/config/m68k/xm-dpx2.h
+++ b/gdb/config/m68k/xm-dpx2.h
@@ -0,0 +1,26 @@
+/* Parameters for execution on a Bull DPX2.
+ Copyright (C) 1986, 1987, 1989 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 HOST_BYTE_ORDER BIG_ENDIAN
+
+#define HAVE_TERMIO
+#define USG
+
+/* Avoid redefinition errors */
+#include <limits.h>