aboutsummaryrefslogtreecommitdiff
path: root/bfd/libhppa.h
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1993-05-01 00:57:03 +0000
committerStu Grossman <grossman@cygnus>1993-05-01 00:57:03 +0000
commitd325e28cfd6281aa03629ebe2e33dd5cd77738ff (patch)
treec82b0403839b1a45c5ac4c944b30be661fe34632 /bfd/libhppa.h
parent24725cfeebe1cfb1942fcf3ec698a86138441fee (diff)
downloadgdb-d325e28cfd6281aa03629ebe2e33dd5cd77738ff.zip
gdb-d325e28cfd6281aa03629ebe2e33dd5cd77738ff.tar.gz
gdb-d325e28cfd6281aa03629ebe2e33dd5cd77738ff.tar.bz2
* The following patches are from Jeffrey Law <law@cs.utah.edu>.
* hppa.c (hppa_core_file_p): Provide a temporary dummy routine for HOST_HPPABSD. * bfd/hosts/hppabsd.h: Fix declarations of malloc and free. * bfd/libhppa.h: Include sysdep here. Conditionalize includes based on HOST_HPPAHPUX or HOST_HPPABSD. Provide definitions for MAXCOMLEN and _PA_RISC_ID suitable for BSD.
Diffstat (limited to 'bfd/libhppa.h')
-rw-r--r--bfd/libhppa.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/bfd/libhppa.h b/bfd/libhppa.h
index 830e5cb..76b096e 100644
--- a/bfd/libhppa.h
+++ b/bfd/libhppa.h
@@ -20,9 +20,32 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifndef _LIBHPPA_H
+#define _LIBHPPA_H
+
+#include "sysdep.h"
+
+#ifdef HOST_HPPAHPUX
+
#include <sys/core.h>
#include <sys/utsname.h>
+#endif /* HOST_HPPAHPUX */
+
+#ifdef HOST_HPPABSD
+
+/* Defining MAXCOMLEN avoids bringing in several (7 or 8) otherwise
+ useless include files which tend to clutter up the namespace.
+
+ BSD uses a completely different scheme for object file identification.
+ so for now, define _PA_RISC_ID to accept any random value for a model
+ number. */
+#include <a.out.h>
+#define MAXCOMLEN 16
+#define _PA_RISC_ID(__m_num) 1
+
+#endif /* HOST_HPPABSD */
+
#define BYTES_IN_WORD 4
struct header;
@@ -157,3 +180,5 @@ enum hppa_reloc_expr_type_alt
e_plabel = R_HPPA_E_PLABEL,
e_abs = R_HPPA_E_ABS
};
+
+#endif /* _LIBHPPA_H */