From 0a01252d9db38e39e1a2080bdfcce403d43f1aa3 Mon Sep 17 00:00:00 2001 From: CSRG Date: Thu, 6 May 1993 06:15:32 -0800 Subject: [PATCH] BSD 4_4_Lite2 development Work on file usr/src/contrib/gdb-4.7.LBL/opcodes/sysdep.h Work on file usr/src/contrib/gdb-4.7.LBL/bfd/sysdep.h Work on file usr/src/contrib/gdb-4.7.LBL/bfd/hosts/hp300bsd.h Synthesized-from: CSRG/cd3/4.4BSD-Lite2 --- .../contrib/gdb-4.7.LBL/bfd/hosts/hp300bsd.h | 45 +++++++++++++++++++ usr/src/contrib/gdb-4.7.LBL/bfd/sysdep.h | 1 + usr/src/contrib/gdb-4.7.LBL/opcodes/sysdep.h | 1 + 3 files changed, 47 insertions(+) create mode 100644 usr/src/contrib/gdb-4.7.LBL/bfd/hosts/hp300bsd.h create mode 120000 usr/src/contrib/gdb-4.7.LBL/bfd/sysdep.h create mode 120000 usr/src/contrib/gdb-4.7.LBL/opcodes/sysdep.h diff --git a/usr/src/contrib/gdb-4.7.LBL/bfd/hosts/hp300bsd.h b/usr/src/contrib/gdb-4.7.LBL/bfd/hosts/hp300bsd.h new file mode 100644 index 0000000000..1a598dc082 --- /dev/null +++ b/usr/src/contrib/gdb-4.7.LBL/bfd/hosts/hp300bsd.h @@ -0,0 +1,45 @@ +#include +#include +#include +#include +#include +#include +#include +#include + +void *malloc(); +void *realloc(); +void free(); + +#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_SEGMENT_SIZE NBPG /* Data seg start addr rounds to NBPG */ +#define HOST_MACHINE_ARCH bfd_arch_m68k +/* #define HOST_MACHINE_MACHINE */ + +#define HOST_TEXT_START_ADDR 0 +#define HOST_STACK_END_ADDR 0xfff00000 +#define HOST_BIG_ENDIAN_P + +/* EXACT TYPES */ +typedef char int8e_type; +typedef unsigned char uint8e_type; +typedef short int16e_type; +typedef unsigned short uint16e_type; +typedef int int32e_type; +typedef unsigned int uint32e_type; + +/* CORRECT SIZE OR GREATER */ +typedef char int8_type; +typedef unsigned char uint8_type; +typedef short int16_type; +typedef unsigned short uint16_type; +typedef int int32_type; +typedef unsigned int uint32_type; +#include "fopen-same.h" diff --git a/usr/src/contrib/gdb-4.7.LBL/bfd/sysdep.h b/usr/src/contrib/gdb-4.7.LBL/bfd/sysdep.h new file mode 120000 index 0000000000..99b39d1539 --- /dev/null +++ b/usr/src/contrib/gdb-4.7.LBL/bfd/sysdep.h @@ -0,0 +1 @@ +./hosts/hp300bsd.h \ No newline at end of file diff --git a/usr/src/contrib/gdb-4.7.LBL/opcodes/sysdep.h b/usr/src/contrib/gdb-4.7.LBL/opcodes/sysdep.h new file mode 120000 index 0000000000..4017d97289 --- /dev/null +++ b/usr/src/contrib/gdb-4.7.LBL/opcodes/sysdep.h @@ -0,0 +1 @@ +./../bfd/hosts/hp300bsd.h \ No newline at end of file -- 2.20.1