aboutsummaryrefslogtreecommitdiff
path: root/bfd/targets.c
diff options
context:
space:
mode:
authorDavid MacKenzie <djm@cygnus>1994-01-24 23:33:23 +0000
committerDavid MacKenzie <djm@cygnus>1994-01-24 23:33:23 +0000
commitaabda2da07cdaa4d5ed277fce7d99da42499df1e (patch)
treeb87b1cf15b16e2066797707371d63673daa3b55f /bfd/targets.c
parentdb2e6adb5b3e3ac5c6e54c9e51cb92b2b421d001 (diff)
downloadgdb-aabda2da07cdaa4d5ed277fce7d99da42499df1e.zip
gdb-aabda2da07cdaa4d5ed277fce7d99da42499df1e.tar.gz
gdb-aabda2da07cdaa4d5ed277fce7d99da42499df1e.tar.bz2
* format.c (bfd_check_format_matches): New function.
(bfd_check_format): Call it. (bfd_matching_formats): Function removed. * targets.c: Replace the vector added on Jan 21 with a count of entries in default_vector. * bfd-in2.h: Regenerated.
Diffstat (limited to 'bfd/targets.c')
-rw-r--r--bfd/targets.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/bfd/targets.c b/bfd/targets.c
index 9d1e58c..1e90f3a 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -573,12 +573,10 @@ bfd_target *default_vector[] = {
NULL
};
-/* When there is an ambiguous match, bfd_check_format puts the names
- of the matching targets in this array.
- It is declared here so we can give it the same number of entries
- (+ a terminating NULL) as the number of possible targets. */
-char *matching_vector[sizeof(target_vector)/sizeof(*target_vector) + 1];
-
+/* When there is an ambiguous match, bfd_check_format_ambig puts the names
+ of the matching targets in an array. This variable is the maximum
+ number of entries that array could possibly need. */
+CONST size_t bfd_default_vector_entries = sizeof(target_vector)/sizeof(*target_vector);
/*
FUNCTION