* lynx-core.c (lynx_core_file_p): Change bfd_zalloc to bfd_alloc.
authorStu Grossman <grossman@cygnus>
Wed, 17 Nov 1993 01:11:30 +0000 (01:11 +0000)
committerStu Grossman <grossman@cygnus>
Wed, 17 Nov 1993 01:11:30 +0000 (01:11 +0000)
* m68klynx.c:  Define core file macros.
* hosts/i386lynx.h, hosts/m68klynx.h, hosts/lynx.h:  Move all
non-architecture specific stuff into lynx.h.

bfd/ChangeLog
bfd/hosts/.Sanitize
bfd/hosts/i386lynx.h
bfd/hosts/lynx.h [new file with mode: 0644]
bfd/hosts/m68klynx.h
bfd/m68klynx.c

index 288eedb5274cf128b67423591b0eccbc45fc5f00..87cc5346be6106ae2622c3c9b43d9e55a6424878 100644 (file)
@@ -1,3 +1,10 @@
+Tue Nov 16 17:03:41 1993  Stu Grossman  (grossman at cygnus.com)
+
+       * lynx-core.c (lynx_core_file_p):  Change bfd_zalloc to bfd_alloc.
+       * m68klynx.c:  Define core file macros.
+       * hosts/i386lynx.h, hosts/m68klynx.h, hosts/lynx.h:  Move all
+       non-architecture specific stuff into lynx.h.
+
 Tue Nov 16 15:45:54 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
 
        * i386linux.c: Define new macro ZMAGIC_DISK_BLOCK_SIZE to 1024, and
index c4a665276cdd27a0802eb50e492651f724dffab2..25a425ee3c19d30b77f2c7c1220c3dbcfd3cad82 100644 (file)
@@ -53,6 +53,7 @@ i386v.h
 i386v4.h
 irix3.h
 irix4.h
+lynx.h
 m68klynx.h
 miniframe.h
 mipsbsd.h
index 2c93f504383f1abf67c6dfd64538dc165ed1dda7..b5be30cf76ee0dfea79a572e26a8cce80f8f2ae1 100644 (file)
@@ -3,35 +3,8 @@
 #ifndef hosts_i386lynx_h
 #define hosts_i386lynx_h
 
-#include <fcntl.h>
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <ctype.h>
-#include <string.h>
+#include "hosts/lynx.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_i386
-#define        HOST_TEXT_START_ADDR    USRTEXT
-
-#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 */
diff --git a/bfd/hosts/lynx.h b/bfd/hosts/lynx.h
new file mode 100644 (file)
index 0000000..737c9bd
--- /dev/null
@@ -0,0 +1,36 @@
+/* Architecture independant LynxOS host support for 2.2 */
+
+#ifndef hosts_lynx_h
+#define hosts_lynx_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_TEXT_START_ADDR    USRTEXT
+
+#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_lynx_h */
index 394289a05ff4abd21fce2ab272ffc96072694ca6..2d370da86d629ea7c274bf490c0107557a982f40 100644 (file)
@@ -3,33 +3,8 @@
 #ifndef hosts_m68klynx_H
 #define hosts_m68klynx_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 "hosts/lynx.h"
 
-#ifndef O_ACCMODE
-#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
-#endif
-
-#define SEEK_SET 0
-#define SEEK_CUR 1
-
-#define        HOST_PAGE_SIZE          NBPG
 #define        HOST_MACHINE_ARCH       bfd_arch_m68k
-#define        HOST_TEXT_START_ADDR            USRTEXT
-
-#define u_comm u_kproc.kp_proc.p_comm
-
-#include "fopen-same.h"
-
-/* Lynx has calloc, but no cfree, and gprof uses it. */
-
-#define cfree free
 
 #endif /* hosts_m68klynx_H */
index 295b7d0eb9f0a9f86dbd6abd7756fbb4651fa49e..0c7fce3fcfe64c06906bf78a4fcfbb8788ede5d7 100644 (file)
@@ -38,4 +38,18 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #define TARGET_IS_BIG_ENDIAN_P
 
+#ifdef HOST_LYNX
+
+char *lynx_core_file_failing_command();
+int lynx_core_file_failing_signal();
+boolean lynx_core_file_matches_executable_p();
+bfd_target *lynx_core_file_p();
+
+#define        MY_core_file_failing_command lynx_core_file_failing_command
+#define        MY_core_file_failing_signal lynx_core_file_failing_signal
+#define        MY_core_file_matches_executable_p lynx_core_file_matches_executable_p
+#define        MY_core_file_p lynx_core_file_p
+
+#endif /* HOST_LYNX */
+
 #include "aout-target.h"
This page took 0.029901 seconds and 4 git commands to generate.