aboutsummaryrefslogtreecommitdiff
path: root/opcodes
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
commit07dd56a969469ac5b6669b0fbb390019196d2992 (patch)
tree9452704a6d90a175e32fc76292b6cd1f8965243f /opcodes
parent2e32aab953475e6b6c0d039a2de4785d9ed198fd (diff)
downloadgdb-07dd56a969469ac5b6669b0fbb390019196d2992.zip
gdb-07dd56a969469ac5b6669b0fbb390019196d2992.tar.gz
gdb-07dd56a969469ac5b6669b0fbb390019196d2992.tar.bz2
Have objdump's --help switch document PPC -M options.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog6
-rw-r--r--opcodes/disassemble.c3
-rw-r--r--opcodes/ppc-dis.c15
3 files changed, 24 insertions, 0 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 7f3dfb4..9f0d0d1 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,5 +1,11 @@
2002-09-04 Nick Clifton <nickc@redhat.com>
+ * disassemble.c (disassembler_usage): Add invocation of
+ print_ppc_disassembler_options.
+ * ppc-dis.c (print_ppc_disassembler_options): New function.
+
+2002-09-04 Nick Clifton <nickc@redhat.com>
+
* ppc-opc.c: The BookE implementations of the TLBWE and TLBRE
instructions do not take any arguments.
diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c
index 4d78a73..4bd0d89 100644
--- a/opcodes/disassemble.c
+++ b/opcodes/disassemble.c
@@ -367,6 +367,9 @@ disassembler_usage (stream)
#ifdef ARCH_arm
print_arm_disassembler_options (stream);
#endif
+#ifdef ARCH_powerpc
+ print_ppc_disassembler_options (stream);
+#endif
return;
}
diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c
index bd4dfac..cc937db 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");
+}