* bucomm.h (list_supported_architectures): Declare.
* objdump.c (usage): Call the above.
+2001-07-28 Matthias Kramm <kramm@quiss.org>
+
+ * bucomm.c (list_supported_architectures): New function.
+ * bucomm.h (list_supported_architectures): Declare.
+ * objdump.c (usage): Call the above.
+
2001-07-25 Dave Brolley <brolley@redhat.com>
* objdump.c (SKIP_ZEROES): Only define it if it is not already defined.
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");
+}
\f
/* Display the archive header for an element as if it were an ls -l listing:
void list_supported_targets PARAMS ((const char *, FILE *));
+void list_supported_architectures PARAMS ((const char *, FILE *));
+
void print_arelt_descr PARAMS ((FILE *file, bfd *abfd, boolean verbose));
char *make_tempname PARAMS ((char *));
--adjust-vma=OFFSET Add OFFSET to all displayed section addresses\n\
\n"));
list_supported_targets (program_name, stream);
+ list_supported_architectures (program_name, stream);
disassembler_usage (stream);
}