diff options
author | Alan Modra <amodra@gmail.com> | 2001-07-29 05:31:43 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2001-07-29 05:31:43 +0000 |
commit | 2f83960e2ca6a38b4a68d3c394fb2b5c0db2e2af (patch) | |
tree | e5c861876b941f8f7d9e13f47956cfee5d1c314f /binutils/bucomm.c | |
parent | 6608db57920a95e9fa46823fcc00b46b603d7809 (diff) | |
download | gdb-2f83960e2ca6a38b4a68d3c394fb2b5c0db2e2af.zip gdb-2f83960e2ca6a38b4a68d3c394fb2b5c0db2e2af.tar.gz gdb-2f83960e2ca6a38b4a68d3c394fb2b5c0db2e2af.tar.bz2 |
* 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.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/binutils/bucomm.c b/binutils/bucomm.c index 401a3e4..bf0f799 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: |