summaryrefslogtreecommitdiff
path: root/opcodes/ppc-dis.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-09-04 10:08:08 +0000
committerNick Clifton <nickc@redhat.com>2002-09-04 10:08:08 +0000
commit5c4e148a4e75b74182022de7df55ec7b6dc5cfb4 (patch)
tree99603e81f8b935b71bbeeba77a684689aed613a5 /opcodes/ppc-dis.c
parentc7b8790401d61f122eb3b0e6ef5aab21fb4f6eb8 (diff)
downloadgdb-5c4e148a4e75b74182022de7df55ec7b6dc5cfb4.tar.gz
Have objdump's --help switch document PPC -M options.
Diffstat (limited to 'opcodes/ppc-dis.c')
-rw-r--r--opcodes/ppc-dis.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c
index bd4dfaca6de..cc937db559d 100644
--- a/opcodes/ppc-dis.c
+++ b/opcodes/ppc-dis.c
@@ -296,3 +296,18 @@ print_insn_powerpc (memaddr, info, bigendian, dialect)
return 4;
}
+
+void
+print_ppc_disassembler_options (FILE * stream)
+{
+ fprintf (stream, "\n\
+The following PPC specific disassembler options are supported for use with\n\
+the -M switch:\n");
+
+ fprintf (stream, " booke|booke32|booke64 Disassemble the BookE instructions\n");
+ fprintf (stream, " e500|e500x2 Disassemble the e500 instructions\n");
+ fprintf (stream, " efs Disassemble the EFS instructions\n");
+ fprintf (stream, " power4 Disassemble the Power4 instructions\n");
+ fprintf (stream, " 32 Do not disassemble 64-bit instructions\n");
+ fprintf (stream, " 64 Allow disassembly of 64-bit instructions\n");
+}