From: David MacKenzie Date: Wed, 26 Jan 1994 21:53:55 +0000 (+0000) Subject: * format.c (bfd_check_format_matches): Put the new entry in the X-Git-Tag: gdb-4_18~15831 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d6d4e4c3d094eb34d807fa6d94bd04859ca003ff;p=external%2Fbinutils.git * format.c (bfd_check_format_matches): Put the new entry in the correct element of matching_vector. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d12a7f8..13ff5f4 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +Wed Jan 26 13:47:15 1994 David J. Mackenzie (djm@thepub.cygnus.com) + + * format.c (bfd_check_format_matches): Put the new entry in the + correct element of matching_vector. + Tue Jan 25 11:43:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com) * som.c, som.h (bfd_som_set_section_attributes, diff --git a/bfd/format.c b/bfd/format.c index c7d994e..fb9fdc0 100644 --- a/bfd/format.c +++ b/bfd/format.c @@ -177,23 +177,23 @@ bfd_check_format_matches (abfd, format, matching) temp = BFD_SEND_FMT (abfd, _bfd_check_format, (abfd)); if (temp) { /* This format checks out as ok! */ right_targ = temp; - match_count++; if (matching) { matching_vector[match_count] = temp->name; - matching_vector[match_count] = NULL; + matching_vector[match_count + 1] = NULL; } + match_count++; /* If this is the default target, accept it, even if other targets might match. People who want those other targets have to set the GNUTARGET variable. */ if (temp == bfd_default_vector[0]) { - match_count = 1; if (matching) { matching_vector[0] = temp->name; matching_vector[1] = NULL; } + match_count = 1; break; } #ifdef GNU960