aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/ns32k
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>1994-09-23 22:30:31 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>1994-09-23 22:30:31 +0000
commit84f652b150d70b36b704182702ee8de5950b0a82 (patch)
tree9d4e4befd4f679a057656cd1f9e022510067329c /gdb/config/ns32k
parent4d61cba98770961e820bdc8e1ea4025ebebb5018 (diff)
downloadgdb-84f652b150d70b36b704182702ee8de5950b0a82.zip
gdb-84f652b150d70b36b704182702ee8de5950b0a82.tar.gz
gdb-84f652b150d70b36b704182702ee8de5950b0a82.tar.bz2
* solib.c: *BSD systems need <a.out.h> to be included before
<link.h>. * i386b-nat.c: Add i386_float_info(), etc. * config/i386/nm-nbsd.h: #define FLOAT_INFO. * config/nm-nbsd.h: New file, for generic NetBSD native support. * config/i386/nm-nbsd.h: Use it. * config/sparc/nm-nbsd.h: Use it. * config/ns32k/nm-nbsd.h: Use it. * configure.in (i386-*-netbsd): Use config/i386/nbsd.m[ht]. (ns32k-*-netbsd): Use config/ns32k/nbsd.m[ht]. * config/i386/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h}: New files, support for NetBSD/i386. * config/ns32k/{nbsd.mh,nbsd.mh,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h}: New files, support for NetBSD/ns32k.
Diffstat (limited to 'gdb/config/ns32k')
-rw-r--r--gdb/config/ns32k/.Sanitize6
-rw-r--r--gdb/config/ns32k/nbsd.mh4
-rw-r--r--gdb/config/ns32k/nbsd.mt3
-rw-r--r--gdb/config/ns32k/nm-nbsd.h36
-rw-r--r--gdb/config/ns32k/tm-nbsd.h38
-rw-r--r--gdb/config/ns32k/xm-nbsd.h21
6 files changed, 107 insertions, 1 deletions
diff --git a/gdb/config/ns32k/.Sanitize b/gdb/config/ns32k/.Sanitize
index 69b0407..7ae6862 100644
--- a/gdb/config/ns32k/.Sanitize
+++ b/gdb/config/ns32k/.Sanitize
@@ -23,21 +23,25 @@ Things-to-keep:
merlin.mh
merlin.mt
+nbsd.mh
+nbsd.mt
+nm-nbsd.h
nm-umax.h
ns32km3.mh
ns32km3.mt
tm-merlin.h
+tm-nbsd.h
tm-ns32km3.h
tm-umax.h
umax.mh
umax.mt
xm-merlin.h
+xm-nbsd.h
xm-ns32km3.h
xm-umax.h
Things-to-lose:
-
Do-last:
# End of file.
diff --git a/gdb/config/ns32k/nbsd.mh b/gdb/config/ns32k/nbsd.mh
new file mode 100644
index 0000000..f9cc72a
--- /dev/null
+++ b/gdb/config/ns32k/nbsd.mh
@@ -0,0 +1,4 @@
+# Host: PC532 running NetBSD
+XM_FILE= xm-nbsd.h
+NAT_FILE= nm-nbsd.h
+NATDEPFILES= exec.o fork-child.o infptrace.o inftarg.o corelow.o coredep.o ns32k-nat.o
diff --git a/gdb/config/ns32k/nbsd.mt b/gdb/config/ns32k/nbsd.mt
new file mode 100644
index 0000000..0a18632
--- /dev/null
+++ b/gdb/config/ns32k/nbsd.mt
@@ -0,0 +1,3 @@
+# Target: PC532 running NetBSD
+TDEPFILES= exec.o ns32k-tdep.o ns32k-pinsn.o solib.o
+TM_FILE= tm-nbsd.h
diff --git a/gdb/config/ns32k/nm-nbsd.h b/gdb/config/ns32k/nm-nbsd.h
new file mode 100644
index 0000000..d22218c
--- /dev/null
+++ b/gdb/config/ns32k/nm-nbsd.h
@@ -0,0 +1,36 @@
+/* Native-dependent definitions for ns32k running NetBSD, for GDB.
+ Copyright 1986, 1987, 1989, 1992, 1994 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. */
+
+#ifndef NM_NBSD_H
+#define NM_NBSD_H
+
+/* Get generic NetBSD native definitions. */
+#include "nm-nbsd.h"
+
+#if 0
+#define FLOAT_INFO { extern ns32k_float_info(); ns32k_float_info(); }
+#endif
+
+#define REGISTER_U_ADDR(addr, blockend, regno) \
+ (addr) = ns32k_register_u_addr ((blockend),(regno));
+
+extern int
+ns32k_register_u_addr PARAMS ((int, int));
+
+#endif /* NM_NBSD_H */
diff --git a/gdb/config/ns32k/tm-nbsd.h b/gdb/config/ns32k/tm-nbsd.h
new file mode 100644
index 0000000..871a153
--- /dev/null
+++ b/gdb/config/ns32k/tm-nbsd.h
@@ -0,0 +1,38 @@
+/* Macro definitions for ns32k running under NetBSD.
+ Copyright 1986, 1987, 1989, 1991, 1992, 1993 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. */
+
+/* Override number of expected traps from sysv. */
+#define START_INFERIOR_TRAPS_EXPECTED 2
+
+/* Most definitions from umax could be used. */
+#define INVALID_FLOAT(p, s) isa_NAN(p, s)
+#include "ns32k/tm-umax.h"
+#include "tm-nbsd.h"
+
+/* Saved Pc. Get it from sigcontext if within sigtramp. */
+
+/* Offset to saved PC in sigcontext, from <machine/signal.h>. */
+#define SIGCONTEXT_PC_OFFSET 20
+
+#undef FRAME_SAVED_PC(FRAME)
+#define FRAME_SAVED_PC(FRAME) \
+ (((FRAME)->signal_handler_caller \
+ ? sigtramp_saved_pc (FRAME) \
+ : read_memory_integer ((FRAME)->frame + 4, 4)) \
+ )
diff --git a/gdb/config/ns32k/xm-nbsd.h b/gdb/config/ns32k/xm-nbsd.h
new file mode 100644
index 0000000..b601f0e
--- /dev/null
+++ b/gdb/config/ns32k/xm-nbsd.h
@@ -0,0 +1,21 @@
+/* Parameters for execution on a ns32k running NetBSD, for GDB.
+ Copyright 1994 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. */
+
+/* Get generic NetBSD host definitions. */
+#include "xm-nbsd.h"