aboutsummaryrefslogtreecommitdiff
path: root/bfd/hosts
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>1994-09-13 18:39:47 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>1994-09-13 18:39:47 +0000
commita3f7a777c6e5311ec053afdd70068a2a4a790609 (patch)
tree4d0a7eaa18f26d46e1e2ee641e76f61aa1e85929 /bfd/hosts
parent5e39c987650a04223c961b83d9171f7ada388efe (diff)
downloadgdb-a3f7a777c6e5311ec053afdd70068a2a4a790609.zip
gdb-a3f7a777c6e5311ec053afdd70068a2a4a790609.tar.gz
gdb-a3f7a777c6e5311ec053afdd70068a2a4a790609.tar.bz2
* configure.host (sparc-*-netbsd): use sparcnbsd.
(ns32k-*-netbsd): use ns32knbsd. * hosts/{nbsd,i386nbsd,ns32knbsd,sparcnbsd}.h: New files, NetBSD host support. * sparcnetbsd.c: New file, adds support for NetBSD/sparc. * config/sparc-nbsd.mt: Likewise. * netbsd.h: New file, definitions common to all netbsd ports. * i386netbsd.c: Use it. * ns32knetbsd.c: Use it. * Makefile.in, configure.in, targets.c, config/i386-nbsd.mt, config/ns32k-nbsd.mt: canonicalize netbsd targets to conform to file/variable naming conventions. * i386netbsd.c: New file, renamed from netbsd386.c. * ns32knetbsd.c: New file, renamed from netbsd532.c.
Diffstat (limited to 'bfd/hosts')
-rw-r--r--bfd/hosts/.Sanitize14
-rw-r--r--bfd/hosts/i386nbsd.h14
-rw-r--r--bfd/hosts/nbsd.h34
-rw-r--r--bfd/hosts/ns32knbsd.h13
-rw-r--r--bfd/hosts/sparcnbsd.h19
5 files changed, 90 insertions, 4 deletions
diff --git a/bfd/hosts/.Sanitize b/bfd/hosts/.Sanitize
index 5c23108..e4c8e2f 100644
--- a/bfd/hosts/.Sanitize
+++ b/bfd/hosts/.Sanitize
@@ -33,16 +33,16 @@ alphaosf.h
apollo68.h
apollov68.h
decstation.h
-dgux.h
delta68.h
delta88.h
delta88v4.h
+dgux.h
dose.h
dpx2.h
go32.h
harris.h
-hp300bsd.h
hp300.h
+hp300bsd.h
hppabsd.h
hppahpux.h
hppaosf.h
@@ -51,6 +51,7 @@ i386bsd.h
i386linux.h
i386lynx.h
i386mach3.h
+i386nbsd.h
i386osf1mk.h
i386sco.h
i386v.h
@@ -64,9 +65,12 @@ m88kmach3.h
miniframe.h
mipsbsd.h
mipsmach3.h
-news.h
-news-mips.h
+nbsd.h
ncr3000.h
+news-mips.h
+news.h
+ns32knbsd.h
+ns32knetbsd.h
pc532mach.h
riscos.h
rs6000.h
@@ -76,6 +80,8 @@ solaris2.h
sparc-ll.h
sparc.h
sparclynx.h
+sparcnbsd.h
+sparcnetbsd.h
std-host.h
stratus.h
sun3.h
diff --git a/bfd/hosts/i386nbsd.h b/bfd/hosts/i386nbsd.h
new file mode 100644
index 0000000..1fd3bed
--- /dev/null
+++ b/bfd/hosts/i386nbsd.h
@@ -0,0 +1,14 @@
+/* Intel 386 running NetBSD */
+
+#ifndef hosts_i386bsd_H
+#define hosts_i386bsd_H
+
+#include "hosts/nbsd.h"
+
+#define HOST_MACHINE_ARCH bfd_arch_i386
+
+#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \
+ ((core_bfd)->tdata.trad_core_data->u.u_sig)
+#define u_comm u_kproc.kp_proc.p_comm
+#endif
+
diff --git a/bfd/hosts/nbsd.h b/bfd/hosts/nbsd.h
new file mode 100644
index 0000000..1c7a779
--- /dev/null
+++ b/bfd/hosts/nbsd.h
@@ -0,0 +1,34 @@
+/* Architecture independant NetBSD host support */
+
+#ifndef hosts_nbsd_H_
+#define hosts_nbsd_H__
+
+#include <fcntl.h>
+#include <errno.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <ctype.h>
+#include <string.h>
+#include <sys/file.h>
+#include <machine/param.h>
+#include <machine/vmparam.h>
+#include <machine/reg.h>
+
+#ifndef O_ACCMODE
+#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
+#endif
+
+#define SEEK_SET 0
+#define SEEK_CUR 1
+
+#define POSIX_UTIME
+
+#include "fopen-same.h"
+
+#define HOST_PAGE_SIZE NBPG
+#define HOST_TEXT_START_ADDR USRTEXT
+#define HOST_STACK_END_ADDR USRSTACK
+
+#endif
diff --git a/bfd/hosts/ns32knbsd.h b/bfd/hosts/ns32knbsd.h
new file mode 100644
index 0000000..d072d6d
--- /dev/null
+++ b/bfd/hosts/ns32knbsd.h
@@ -0,0 +1,13 @@
+/* ns32k running NetBSD */
+
+#ifndef hosts_ns32knbsd_h
+#define hosts_ns32knbsd_h
+
+#include "hosts/nbsd.h"
+
+#define HOST_MACHINE_ARCH bfd_arch_ns32k
+
+#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \
+ ((core_bfd)->tdata.trad_core_data->u.u_sig)
+#define u_comm u_kproc.kp_proc.p_comm
+#endif
diff --git a/bfd/hosts/sparcnbsd.h b/bfd/hosts/sparcnbsd.h
new file mode 100644
index 0000000..d5ae6d9
--- /dev/null
+++ b/bfd/hosts/sparcnbsd.h
@@ -0,0 +1,19 @@
+/* Sparc running NetBSD */
+
+#ifndef hosts_sparcnbsd_h
+#define hosts_sparcnbsd_h
+
+#include "hosts/nbsd.h"
+
+#define HOST_MACHINE_ARCH bfd_arch_sparc
+#define HOST_BIG_ENDIAN_P
+
+#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \
+ ((core_bfd)->tdata.trad_core_data->u.u_sig)
+#define u_comm u_kproc.kp_proc.p_comm
+#define TRAD_CORE_REGPOS(core_bfd) \
+ ((bfd_vma)(core_bfd)->tdata.trad_core_data->u.u_kproc.kp_proc.p_md.md_tf)
+
+#define CORE_FPU_OFFSET (sizeof(struct trapframe))
+
+#endif