diff options
author | Stan Shebs <shebs@codesourcery.com> | 1993-09-28 01:53:25 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1993-09-28 01:53:25 +0000 |
commit | 96e39d2aaa056b4ed0072494eeca9f86b224a93d (patch) | |
tree | 4fbd7db21e32cbdf31b600a9afab5f2566d0fcd9 /bfd/hosts | |
parent | f0fcf00aade46aebe53e6cb06058e26d75a920cc (diff) | |
download | gdb-96e39d2aaa056b4ed0072494eeca9f86b224a93d.zip gdb-96e39d2aaa056b4ed0072494eeca9f86b224a93d.tar.gz gdb-96e39d2aaa056b4ed0072494eeca9f86b224a93d.tar.bz2 |
New and improved Lynx support.
Diffstat (limited to 'bfd/hosts')
-rw-r--r-- | bfd/hosts/i386lynx.h | 4 | ||||
-rw-r--r-- | bfd/hosts/m68klynx.h | 29 |
2 files changed, 33 insertions, 0 deletions
diff --git a/bfd/hosts/i386lynx.h b/bfd/hosts/i386lynx.h index b399533..63d9579 100644 --- a/bfd/hosts/i386lynx.h +++ b/bfd/hosts/i386lynx.h @@ -29,4 +29,8 @@ #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/m68klynx.h b/bfd/hosts/m68klynx.h new file mode 100644 index 0000000..4944512 --- /dev/null +++ b/bfd/hosts/m68klynx.h @@ -0,0 +1,29 @@ +/* Motorola 680x0 running any BSD Unix */ + +#ifndef hosts_m68kbsd_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 + +#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" +#define hosts_m68kbsd_H +#endif |