aboutsummaryrefslogtreecommitdiff
path: root/bfd/hosts
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1993-04-24 02:10:09 +0000
committerSteve Chamberlain <sac@cygnus>1993-04-24 02:10:09 +0000
commit5f8f6d56f2c542ccdd85b0bd2c9a6a6661620cb2 (patch)
tree2e9d4b068829533373ca9a5ddb85e7799344ffbb /bfd/hosts
parentb6423cec40c4ce9c75e2fb3abfebdb885711b455 (diff)
downloadgdb-5f8f6d56f2c542ccdd85b0bd2c9a6a6661620cb2.zip
gdb-5f8f6d56f2c542ccdd85b0bd2c9a6a6661620cb2.tar.gz
gdb-5f8f6d56f2c542ccdd85b0bd2c9a6a6661620cb2.tar.bz2
Support for the alpha
Diffstat (limited to 'bfd/hosts')
-rw-r--r--bfd/hosts/.Sanitize1
-rw-r--r--bfd/hosts/alphaosf.h50
2 files changed, 51 insertions, 0 deletions
diff --git a/bfd/hosts/.Sanitize b/bfd/hosts/.Sanitize
index 1e8edf1..0157641 100644
--- a/bfd/hosts/.Sanitize
+++ b/bfd/hosts/.Sanitize
@@ -25,6 +25,7 @@ Do-first:
Things-to-keep:
+alphaosf.h
amix.h
apollo68.h
apollov68.h
diff --git a/bfd/hosts/alphaosf.h b/bfd/hosts/alphaosf.h
new file mode 100644
index 0000000..d8454f0
--- /dev/null
+++ b/bfd/hosts/alphaosf.h
@@ -0,0 +1,50 @@
+#include <fcntl.h>
+#include <errno.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <ctype.h>
+#include <string.h>
+#include <sys/file.h>
+#include <alloca.h>
+
+/* Make the basic types 64-bit quantities on the host */
+#define HOST_64_BIT long
+#ifndef DONTDECLARE_MALLOC
+extern PTR EXFUN(malloc,(unsigned));
+extern PTR EXFUN(realloc, (PTR, unsigned));
+#endif
+
+
+
+/* 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;
+
+
+
+typedef unsigned long uint64e_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;
+
+
+typedef unsigned long uint64_type;
+typedef long int64_type;
+
+
+#define BYTES_IN_PRINTF_INT 4
+
+#define uint64_typeLOW(x) (uint32_type)(((x) & 0xffffffff))
+#define uint64_typeHIGH(x) (uint32_type)(((x) >> 32) & 0xffffffff)
+#include "fopen-same.h"