From 07dd56a969469ac5b6669b0fbb390019196d2992 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 4 Sep 2002 10:08:08 +0000 Subject: [PATCH] Have objdump's --help switch document PPC -M options. --- include/ChangeLog | 4 ++++ include/dis-asm.h | 1 + opcodes/ChangeLog | 6 ++++++ opcodes/disassemble.c | 3 +++ opcodes/ppc-dis.c | 15 +++++++++++++++ 5 files changed, 29 insertions(+) diff --git a/include/ChangeLog b/include/ChangeLog index e018f1ec506..d252c121a86 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2002-09-04 Nick Clifton + + * dis-asm.h (print_ppc_disassembler_options): Prototype. + 2002-08-28 Michael Hayes * coff/internal.h: Add new relocation types. diff --git a/include/dis-asm.h b/include/dis-asm.h index 0109068f3f8..ea74b99c76d 100644 --- a/include/dis-asm.h +++ b/include/dis-asm.h @@ -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)); diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 7f3dfb4c62e..9f0d0d193bb 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,9 @@ +2002-09-04 Nick Clifton + + * 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 * ppc-opc.c: The BookE implementations of the TLBWE and TLBRE diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c index 4d78a73b403..4bd0d898c32 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 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"); +} -- 2.30.2