]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Have objdump's --help switch document PPC -M options.
authorNick Clifton <nickc@redhat.com>
Wed, 4 Sep 2002 10:08:08 +0000 (10:08 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 4 Sep 2002 10:08:08 +0000 (10:08 +0000)
include/ChangeLog
include/dis-asm.h
opcodes/ChangeLog
opcodes/disassemble.c
opcodes/ppc-dis.c

index e018f1ec50614e600b9c490e4c0a0ed7873941fc..d252c121a869b888202ac06739a827fb389bcd99 100644 (file)
@@ -1,3 +1,7 @@
+2002-09-04  Nick Clifton  <nickc@redhat.com>
+
+       * dis-asm.h (print_ppc_disassembler_options): Prototype.
+
 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
 
        * coff/internal.h: Add new relocation types.
index 0109068f3f8086433345e6c4ab6f4370e7bf44e0..ea74b99c76d7c1f9c27bf17e1f6277e856bc51ea 100644 (file)
@@ -243,6 +243,7 @@ extern int print_insn_frv           PARAMS ((bfd_vma, disassemble_info *));
 extern disassembler_ftype arc_get_disassembler PARAMS ((void *));
 extern disassembler_ftype cris_get_disassembler PARAMS ((bfd *));
 
+extern void print_ppc_disassembler_options PARAMS ((FILE *));
 extern void print_arm_disassembler_options PARAMS ((FILE *));
 extern void parse_arm_disassembler_option  PARAMS ((char *));
 extern int  get_arm_regname_num_options    PARAMS ((void));
index 7f3dfb4c62e9b6965ad857a89b59636b01a0559d..9f0d0d193bbb8fc55f23facf5d08828844058064 100644 (file)
@@ -1,3 +1,9 @@
+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
index 4d78a73b403ea59ed92114f15e8958b269bbf339..4bd0d898c32821e4f054b67e9b542a8b089a4876 100644 (file)
@@ -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;
 }
index bd4dfaca6deeb785742823d77888509b904e6301..cc937db559d24a2c4b97e3947bdc663441f1773a 100644 (file)
@@ -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");
+}