mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
* bucomm.c (list_supported_architectures): New function.
* bucomm.h (list_supported_architectures): Declare. * objdump.c (usage): Call the above.
This commit is contained in:
@@ -168,6 +168,25 @@ list_supported_targets (name, f)
|
||||
fprintf (f, " %s", bfd_target_vector[t]->name);
|
||||
fprintf (f, "\n");
|
||||
}
|
||||
|
||||
/* List the supported architectures. */
|
||||
|
||||
void
|
||||
list_supported_architectures (name, f)
|
||||
const char *name;
|
||||
FILE *f;
|
||||
{
|
||||
const char** arch;
|
||||
|
||||
if (name == NULL)
|
||||
fprintf (f, _("Supported architectures:"));
|
||||
else
|
||||
fprintf (f, _("%s: supported architectures:"), name);
|
||||
|
||||
for (arch = bfd_arch_list (); *arch; arch++)
|
||||
fprintf (f, " %s", *arch);
|
||||
fprintf (f, "\n");
|
||||
}
|
||||
|
||||
/* Display the archive header for an element as if it were an ls -l listing:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user