aboutsummaryrefslogtreecommitdiff
path: root/bfd/hosts
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1993-10-29 02:03:32 +0000
committerStan Shebs <shebs@codesourcery.com>1993-10-29 02:03:32 +0000
commit20f951757e0be7a93b5bc58143472533472c5ede (patch)
treebe88aabbab102f255aad91761f595b6235f33e03 /bfd/hosts
parentc9368a3bc3af36a7f53db7137d727ae6a124fde3 (diff)
downloadgdb-20f951757e0be7a93b5bc58143472533472c5ede.zip
gdb-20f951757e0be7a93b5bc58143472533472c5ede.tar.gz
gdb-20f951757e0be7a93b5bc58143472533472c5ede.tar.bz2
Minor changes, plus definitions for Sparc Lynx host.
Diffstat (limited to 'bfd/hosts')
-rw-r--r--bfd/hosts/i386lynx.h5
-rw-r--r--bfd/hosts/m68klynx.h14
-rw-r--r--bfd/hosts/sparclynx.h35
3 files changed, 48 insertions, 6 deletions
diff --git a/bfd/hosts/i386lynx.h b/bfd/hosts/i386lynx.h
index 63d9579..2c93f50 100644
--- a/bfd/hosts/i386lynx.h
+++ b/bfd/hosts/i386lynx.h
@@ -1,4 +1,4 @@
-/* Intel 386 running Lynx OS */
+/* Intel 386 running LynxOS */
#ifndef hosts_i386lynx_h
#define hosts_i386lynx_h
@@ -27,10 +27,11 @@
#define HOST_LYNX
#include "fopen-same.h"
+
#undef I386 /* Lynx defines this for some reason */
/* Lynx has calloc, but no cfree, and gprof uses it. */
#define cfree free
-#endif /* hosts_i386lynx_h */
+#endif /* hosts_i386lynx_h */
diff --git a/bfd/hosts/m68klynx.h b/bfd/hosts/m68klynx.h
index 4944512..394289a 100644
--- a/bfd/hosts/m68klynx.h
+++ b/bfd/hosts/m68klynx.h
@@ -1,6 +1,8 @@
-/* Motorola 680x0 running any BSD Unix */
+/* Motorola 680x0 running LynxOS */
+
+#ifndef hosts_m68klynx_H
+#define hosts_m68klynx_H
-#ifndef hosts_m68kbsd_H
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
@@ -25,5 +27,9 @@
#define u_comm u_kproc.kp_proc.p_comm
#include "fopen-same.h"
-#define hosts_m68kbsd_H
-#endif
+
+/* Lynx has calloc, but no cfree, and gprof uses it. */
+
+#define cfree free
+
+#endif /* hosts_m68klynx_H */
diff --git a/bfd/hosts/sparclynx.h b/bfd/hosts/sparclynx.h
new file mode 100644
index 0000000..78e6ac8
--- /dev/null
+++ b/bfd/hosts/sparclynx.h
@@ -0,0 +1,35 @@
+/* Sparc running LynxOS */
+
+#ifndef hosts_sparclynx_h
+#define hosts_sparclynx_h
+
+#include <fcntl.h>
+#include <errno.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <ctype.h>
+#include <string.h>
+
+#include <sys/conf.h>
+#include <sys/kernel.h>
+#include <sys/mem.h>
+#include <sys/signal.h>
+#include <sys/time.h>
+#include <sys/resource.h>
+#include <sys/itimer.h>
+#include <sys/file.h>
+#include <sys/proc.h>
+
+#define HOST_PAGE_SIZE NBPG
+#define HOST_MACHINE_ARCH bfd_arch_sparc
+#define HOST_TEXT_START_ADDR USRTEXT
+
+#define HOST_LYNX
+
+#include "fopen-same.h"
+
+/* Lynx has calloc, but no cfree, and gprof uses it. */
+
+#define cfree free
+
+#endif /* hosts_sparclynx_h */