* hppa.c [HOST_HPPABSD]: Use hpux-style core files.
authorJim Kingdon <jkingdon@engr.sgi.com>
Wed, 14 Jul 1993 20:35:18 +0000 (20:35 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Wed, 14 Jul 1993 20:35:18 +0000 (20:35 +0000)
* libhppa.h [HOST_HPPABSD]: Include hpux version of core.h

bfd/ChangeLog
bfd/hppa.c
bfd/libhppa.h

index 1ed4d0835f4c335d604174ac7cbd8c0153dc98aa..30db05e739e77969ed52cda099d117c13d1984a9 100644 (file)
@@ -1,3 +1,8 @@
+Wed Jul 14 15:29:56 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * hppa.c [HOST_HPPABSD]: Use hpux-style core files.
+       * libhppa.h [HOST_HPPABSD]: Include hpux version of core.h
+
 Wed Jul 14 09:30:48 1993  Doug Evans  (dje@canuck.cygnus.com)
 
        * configure.in: Recognize h8300h-*-*.
index d808fd647825a4c349c5d04a6f28389723b7db49..888c78edf964628a40a0b1c32d302a9f698d0e1a 100644 (file)
@@ -535,7 +535,9 @@ make_bfd_asection (abfd, name, flags, _raw_size, vma, alignment_power)
   return asect;
 }
 
-#ifdef HOST_HPPAHPUX
+#if defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD)
+/* This requires system include files.  */
+
 static bfd_target *
 hppa_core_file_p (abfd)
      bfd *abfd;
@@ -635,7 +637,7 @@ hppa_core_file_matches_executable_p (core_bfd, exec_bfd)
   return true;                 /* FIXME, We have no way of telling at this point */
 }
 
-#endif /* HOST_HPPAHPUX */
+#endif /* HPUX or BSD.  */
 
 /* Miscellaneous Support Functions -- Control Structures and Functions
    for the PA.  */
@@ -1010,16 +1012,6 @@ hppa_get_symbol_info (ignore_abfd, symbol, ret)
 
 /* End of miscellaneous support functions. */
 
-#ifdef HOST_HPPABSD
-/* All the core file code for BSD needs to be rewritten cleanly.  For
-     now we do not support core files under BSD.  */
-
-#define hppa_core_file_p _bfd_dummy_target
-#define hppa_core_file_failing_command _bfd_dummy_core_file_failing_command
-#define hppa_core_file_failing_signal _bfd_dummy_core_file_failing_signal
-#define hppa_core_file_matches_executable_p _bfd_dummy_core_file_matches_executable_p
-#endif /* HOST_HPPABSD */
-
 #define hppa_bfd_debug_info_start        bfd_void
 #define hppa_bfd_debug_info_end          bfd_void
 #define hppa_bfd_debug_info_accumulate   (PROTO(void,(*),(bfd*, struct sec *))) bfd_void
index 5ae54cbf4fec4cfd9b7c4ca24505e309bda528fc..cf69813161a94f4b4d804d08681acf2c9192b1c4 100644 (file)
@@ -23,7 +23,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #ifndef _LIBHPPA_H
 #define _LIBHPPA_H
 
-#include "sysdep.h"
+#include "../bfd/sysdep.h"
 
 #ifdef HOST_HPPAHPUX
 
@@ -34,18 +34,26 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #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.
+/* 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
+
+/* Not a very swift place to put it, but that's where the BSD port
+   puts them.  */
+#include "/hpux/usr/include/sys/core.h"
+#ifndef _PA_RISC_ID
 #define _PA_RISC_ID(__m_num) 1
+#endif
 
 #endif /* HOST_HPPABSD */
 
+/* Defining MAXCOMLEN avoids bringing in several (7 or 8) otherwise
+   useless include files which tend to clutter up the namespace.  */
+
+#define MAXCOMLEN 16
+
 #define BYTES_IN_WORD 4
 
 struct header;
This page took 0.029593 seconds and 4 git commands to generate.