diff options
author | Stu Grossman <grossman@cygnus> | 1993-05-01 00:57:03 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1993-05-01 00:57:03 +0000 |
commit | d325e28cfd6281aa03629ebe2e33dd5cd77738ff (patch) | |
tree | c82b0403839b1a45c5ac4c944b30be661fe34632 /bfd/hppa.c | |
parent | 24725cfeebe1cfb1942fcf3ec698a86138441fee (diff) | |
download | gdb-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/hppa.c')
-rw-r--r-- | bfd/hppa.c | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -43,18 +43,23 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef CPU_PA_RISC1_0 #define CPU_PA_RISC1_0 0x20B #endif /* CPU_PA_RISC1_0 */ + #ifndef CPU_PA_RISC1_1 #define CPU_PA_RISC1_1 0x210 #endif /* CPU_PA_RISC1_1 */ + #ifndef _PA_RISC1_0_ID #define _PA_RISC1_0_ID CPU_PA_RISC1_0 #endif /* _PA_RISC1_0_ID */ + #ifndef _PA_RISC1_1_ID #define _PA_RISC1_1_ID CPU_PA_RISC1_1 #endif /* _PA_RISC1_1_ID */ + #ifndef _PA_RISC_MAXID #define _PA_RISC_MAXID 0x2FF #endif /* _PA_RISC_MAXID */ + #ifndef _PA_RISC_ID #define _PA_RISC_ID(__m_num) \ (((__m_num) == _PA_RISC1_0_ID) || \ @@ -523,6 +528,7 @@ make_bfd_asection (abfd, name, flags, _raw_size, vma, alignment_power) return asect; } +#ifdef HOST_HPPAHPUX static bfd_target * hppa_core_file_p (abfd) bfd *abfd; @@ -621,13 +627,22 @@ 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 */ + +#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 - - #define hppa_openr_next_archived_file bfd_generic_openr_next_archived_file #define hppa_generic_stat_arch_elt bfd_generic_stat_arch_elt #define hppa_slurp_armap bfd_false |