aboutsummaryrefslogtreecommitdiff
path: root/bfd/hosts
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1993-09-22 14:54:50 +0000
committerStu Grossman <grossman@cygnus>1993-09-22 14:54:50 +0000
commit2b91cc453bae74cdf8ccd567a651b6af4aa0ce10 (patch)
tree9d0f4b41670e00f2d364c79d956515276b38271d /bfd/hosts
parentcb6b02027c32b484c6a9bf3c348333ab6501926b (diff)
downloadgdb-2b91cc453bae74cdf8ccd567a651b6af4aa0ce10.zip
gdb-2b91cc453bae74cdf8ccd567a651b6af4aa0ce10.tar.gz
gdb-2b91cc453bae74cdf8ccd567a651b6af4aa0ce10.tar.bz2
* Makefile.in (OPTIONAL_BACKENDS): Add lynx-core.o.
* bfd-in2.h (tdata): Add lynx_core_data; * config.bfd configure.host: Get rid of superfluous netbsd and lynxos entries. * configure.in: Add lynx-core.o to Lynx config. * i386lynx.c: Add defs for core file support. * lynx-core.c: New file with Lynx core file support. * hosts/i386lynx.h: Move lots of host specific includes to here. Add def of HOST_LYNX. Remove unnecessary defs.
Diffstat (limited to 'bfd/hosts')
-rw-r--r--bfd/hosts/i386lynx.h35
1 files changed, 16 insertions, 19 deletions
diff --git a/bfd/hosts/i386lynx.h b/bfd/hosts/i386lynx.h
index 59adeff..b399533 100644
--- a/bfd/hosts/i386lynx.h
+++ b/bfd/hosts/i386lynx.h
@@ -1,35 +1,32 @@
-/* Intel 386 running any BSD Unix */
+/* Intel 386 running Lynx OS */
+
+#ifndef hosts_i386lynx_h
+#define hosts_i386lynx_h
-#ifndef hosts_i386bsd_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>
-#ifndef O_ACCMODE
-#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
-#endif
-
-#define SEEK_SET 0
-#define SEEK_CUR 1
+#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_i386
-#define HOST_TEXT_START_ADDR USRTEXT
+#define HOST_TEXT_START_ADDR USRTEXT
-#define u_comm u_kproc.kp_proc.p_comm
+#define HOST_LYNX
#include "fopen-same.h"
-#define hosts_i386bsd_H
#undef I386 /* Lynx defines this for some reason */
-#endif
-/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
-#ifndef offsetof
-#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
-#endif
+#endif /* hosts_i386lynx_h */