summaryrefslogtreecommitdiff
path: root/binutils/bucomm.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2001-07-29 05:31:43 +0000
committerAlan Modra <amodra@bigpond.net.au>2001-07-29 05:31:43 +0000
commita534844c73d1cc692bf5987997e0b20e924eb4f8 (patch)
tree0e9ff7fd19e5743fc3910332e0101a7702ac8a8c /binutils/bucomm.c
parent672a411b4547df8f85fdbecc8ffc313d2f5c6fbe (diff)
downloadbinutils-redhat-a534844c73d1cc692bf5987997e0b20e924eb4f8.tar.gz
* bucomm.c (list_supported_architectures): New function.
* bucomm.h (list_supported_architectures): Declare. * objdump.c (usage): Call the above.
Diffstat (limited to 'binutils/bucomm.c')
-rw-r--r--binutils/bucomm.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/binutils/bucomm.c b/binutils/bucomm.c
index 401a3e406b..bf0f7993d3 100644
--- a/binutils/bucomm.c
+++ b/binutils/bucomm.c
@@ -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: