aboutsummaryrefslogtreecommitdiff
path: root/bfd/targets.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-07-22 19:39:41 +0000
committerIan Lance Taylor <ian@airs.com>1993-07-22 19:39:41 +0000
commita643e6260e2b817cffecd200214b1fceee802ab8 (patch)
treebb6274bcd78551b72293e2a00e83d0715fc544b8 /bfd/targets.c
parent88b457e59a1d0d51b2950e448c5e8deffc9b9b61 (diff)
downloadgdb-a643e6260e2b817cffecd200214b1fceee802ab8.zip
gdb-a643e6260e2b817cffecd200214b1fceee802ab8.tar.gz
gdb-a643e6260e2b817cffecd200214b1fceee802ab8.tar.bz2
* hpux-core.c: New file; backend for HP/UX style core files.
* bfd.c (struct _bfd): Renamed hppa_core_data field to hpux_core_data. * bfd-in2.h: Updated. * hppa.c (make_bfd_asection, hppa_core_file_p, hppa_core_file_failing_command, hppa_core_file_failing_signal, hppa_core_file_matches_executable_p): Moved into hpux-core.c. Removed from target vector. * libhppa.h (struct hppa_core_struct and accessor macros): Moved into hpux-core.c. * targets.c: If HPUX_CORE is defined, add hpux_core_vec to target list. * config/hp300.mh (HDEFINES): Set to -DHPUX_CORE. (HDEPFILES): Set to hpux-core.o. * config/hppabsd.mh, config/hppahpux.mh: Likewise. * hosts/hp300.h (HOST_HP300HPUX): Define. * Makefile.in (OPTIONAL_BACKENDS): Added sco-core.o, aix386-core.o, hpux-core.o. (sco-core.o, aix386-core.o, hpux-core.o): New dependencies.
Diffstat (limited to 'bfd/targets.c')
-rw-r--r--bfd/targets.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/bfd/targets.c b/bfd/targets.c
index 75117e6..4fa2975 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -328,16 +328,18 @@ in this structure.
#if MINIMIZE && defined(DEFAULT_VECTOR) && !defined(SELECT_VECS)
#ifdef TRAD_CORE
#define SELECT_VECS &DEFAULT_VECTOR,&trad_core_vec
-#else
+#endif
#ifdef SCO_CORE
#define SELECT_VECS &DEFAULT_VECTOR,&sco_core_vec
-#else
+#endif
#ifdef AIX386_CORE
#define SELECT_VECS &DEFAULT_VECTOR,&aix386_core_vec
-#else
-#define SELECT_VECS &DEFAULT_VECTOR
#endif
+#ifdef HPUX_CORE
+#define SELECT_VECS &DEFAULT_VECTOR,&hpux_core_vec
#endif
+#ifndef SELECT_VECS
+#define SELECT_VECS &DEFAULT_VECTOR
#endif
#endif
@@ -385,6 +387,7 @@ extern bfd_target a29kcoff_big_vec;
extern bfd_target trad_core_vec;
extern bfd_target sco_core_vec;
extern bfd_target aix386_core_vec;
+extern bfd_target hpux_core_vec;
extern bfd_target rs6000coff_vec;
extern bfd_target h8300coff_vec;
extern bfd_target h8500coff_vec;
@@ -480,6 +483,9 @@ bfd_target *target_vector[] = {
#ifdef AIX386_CORE
&aix386_core_vec,
#endif
+#ifdef HPUX_CORE
+ &hpux_core_vec,
+#endif
#endif /* not SELECT_VECS */
NULL, /* end of list marker */