aboutsummaryrefslogtreecommitdiff
path: root/bfd/targets.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-05-29 00:20:02 +0000
committerJohn Gilmore <gnu@cygnus>1991-05-29 00:20:02 +0000
commitc0e5039e64287c34a99d59493d7ea8d2faa9bed4 (patch)
tree8f34ff4b2530aaef3922f26be3f9f711d6daa944 /bfd/targets.c
parentdcc355360e4b039cbe4fb56339d6f490d26b917e (diff)
downloadgdb-c0e5039e64287c34a99d59493d7ea8d2faa9bed4.zip
gdb-c0e5039e64287c34a99d59493d7ea8d2faa9bed4.tar.gz
gdb-c0e5039e64287c34a99d59493d7ea8d2faa9bed4.tar.bz2
Merge in changes from gdb-3.95 release into mainstream of BFD development.
Support defaulted (search all) targets and specific (only check one) targets.
Diffstat (limited to 'bfd/targets.c')
-rw-r--r--bfd/targets.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/bfd/targets.c b/bfd/targets.c
index b1338ad..22cda5c 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -41,6 +41,10 @@ extern bfd_target m88k_bcs_vec;
extern bfd_target m68kcoff_vec;
extern bfd_target i386coff_vec;
+#ifdef DEFAULT_VECTOR
+extern bfd_target DEFAULT_VECTOR;
+#endif
+
#ifdef GNU960
#define ICOFF_LITTLE_VEC icoff_little_vec
#define ICOFF_BIG_VEC icoff_big_vec
@@ -128,6 +132,16 @@ bfd_target *target_vector[] = {
&M68KCOFF_VEC,
#endif /* M68KCOFF_VEC */
-
NULL, /* end of list marker */
};
+
+
+/* default_vector[0] contains either the address of the default vector,
+ if there is one, or zero if there isn't. */
+
+bfd_target *default_vector[] = {
+#ifdef DEFAULT_VECTOR
+ &DEFAULT_VECTOR,
+#endif
+ 0,
+};