aboutsummaryrefslogtreecommitdiff
path: root/bfd/hosts
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-01-31 07:59:13 +0000
committerJohn Gilmore <gnu@cygnus>1992-01-31 07:59:13 +0000
commitab68b260f6edc1cef9a2560ac3fd93532923ab28 (patch)
tree044d567651ec58ebe3d0da47db9583abb804e231 /bfd/hosts
parent3863d64f958e28a0668fd7346b4be57ee4a77d8d (diff)
downloadgdb-ab68b260f6edc1cef9a2560ac3fd93532923ab28.zip
gdb-ab68b260f6edc1cef9a2560ac3fd93532923ab28.tar.gz
gdb-ab68b260f6edc1cef9a2560ac3fd93532923ab28.tar.bz2
* hosts/h-hp300bsd.h, h-tahoe.h, h-vaxbsd.h, h-vaxult.h:
Specify byte order. * hosts/h-vaxbsd.h: Define the form of exec and core files.
Diffstat (limited to 'bfd/hosts')
-rw-r--r--bfd/hosts/tahoe.h17
-rw-r--r--bfd/hosts/vaxbsd.h27
2 files changed, 14 insertions, 30 deletions
diff --git a/bfd/hosts/tahoe.h b/bfd/hosts/tahoe.h
index 99147c0..5a88ea4 100644
--- a/bfd/hosts/tahoe.h
+++ b/bfd/hosts/tahoe.h
@@ -22,6 +22,7 @@
#define HOST_TEXT_START_ADDR 0
#define HOST_STACK_END_ADDR KERNBASE
+#define HOST_BIG_ENDIAN_P
/* EXACT TYPES */
typedef char int8e_type;
@@ -38,18 +39,4 @@ typedef short int16_type;
typedef unsigned short uint16_type;
typedef int int32_type;
typedef unsigned int uint32_type;
-/* Macros for the 'type' part of an fopen, freopen or fdopen.
- <Read|Write>[Update]<Binary file><text file>
- */
-#define FOPEN_RB "r"
-#define FOPEN_WB "w"
-#define FOPEN_AB "a"
-#define FOPEN_RUB "r+"
-#define FOPEN_WUB "w+"
-#define FOPEN_AUB "a+"
-#define FOPEN_RT "r"
-#define FOPEN_WT "w"
-#define FOPEN_AT "a"
-#define FOPEN_RUT "r+"
-#define FOPEN_WUT "w+"
-#define FOPEN_AUT "a+"
+#include "fopen-same.h"
diff --git a/bfd/hosts/vaxbsd.h b/bfd/hosts/vaxbsd.h
index a818c77..a867081 100644
--- a/bfd/hosts/vaxbsd.h
+++ b/bfd/hosts/vaxbsd.h
@@ -12,6 +12,17 @@
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
#endif
+#undef ALIGN /* They use it, we use it too */
+#include <machine/param.h>
+#undef ALIGN /* They use it, we use it too */
+
+#define HOST_PAGE_SIZE NBPG
+#define HOST_MACHINE_ARCH bfd_arch_vax
+
+#define HOST_TEXT_START_ADDR 0
+#define HOST_STACK_END_ADDR KERNBASE
+#undef HOST_BIG_ENDIAN_P
+
/* EXACT TYPES */
typedef char int8e_type;
typedef unsigned char uint8e_type;
@@ -27,18 +38,4 @@ typedef short int16_type;
typedef unsigned short uint16_type;
typedef int int32_type;
typedef unsigned int uint32_type;
-/* Macros for the 'type' part of an fopen, freopen or fdopen.
- <Read|Write>[Update]<Binary file><text file>
- */
-#define FOPEN_RB "r"
-#define FOPEN_WB "w"
-#define FOPEN_AB "a"
-#define FOPEN_RUB "r+"
-#define FOPEN_WUB "w+"
-#define FOPEN_AUB "a+"
-#define FOPEN_RT "r"
-#define FOPEN_WT "w"
-#define FOPEN_AT "a"
-#define FOPEN_RUT "r+"
-#define FOPEN_WUT "w+"
-#define FOPEN_AUT "a+"
+#include "fopen-same.h"