[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: objdump -i ordering?

From: Nick Clifton
Subject: Re: objdump -i ordering?
Date: Tue, 05 Dec 2006 15:36:17 +0000
User-agent: Thunderbird (X11/20061105)

Hi Tiron,

you say in a comment at the beggining at the function

/*Print a table showing which architectures are
supported for entries FIRST through LAST-1 of
bfd_target_vector (targets across,
architectures down). */

So target across and architectures down. However you
print the targets across and again the targets down.
Shouldn't you print instead the architectures down?

I think that you may be mistaken here. The main loop inside display_info_table looks like this:

  for (a = bfd_arch_obscure + 1; a < bfd_arch_last; a++)
     for (t = first; t < last && bfd_target_vector[t]; t++)

so it walks over the known architectures and for each one it looks at the list of known targets. At the end of the inner for() loop there is a putchar('\n') so each line corresponds to one set of targets matching one individual architecture.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]