This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Document values support by PPC targeted objdump's -M switch
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: 04 Sep 2002 11:08:52 +0100
- Subject: Document values support by PPC targeted objdump's -M switch
Hi Guys,
A powerpc targeted objdump can accept certain strings with its -M
switch, but these were not being displayed when invoked with
--help. This patch fixes this discrepancy.
Cheers
Nick
opcodes/ChangeLog
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.
include/ChangeLog
2002-09-04 Nick Clifton <nickc@redhat.com>
* dis-asm.h (print_ppc_disassembler_options): Prototype.
Index: opcodes/disassemble.c
===================================================================
RCS file: /cvs/src/src/opcodes/disassemble.c,v
retrieving revision 1.37
diff -c -3 -p -w -r1.37 disassemble.c
*** opcodes/disassemble.c 28 Aug 2002 10:38:51 -0000 1.37
--- opcodes/disassemble.c 4 Sep 2002 10:03:17 -0000
*************** disassembler_usage (stream)
*** 367,372 ****
--- 367,375 ----
#ifdef ARCH_arm
print_arm_disassembler_options (stream);
#endif
+ #ifdef ARCH_powerpc
+ print_ppc_disassembler_options (stream);
+ #endif
return;
}
Index: opcodes/ppc-dis.c
===================================================================
RCS file: /cvs/src/src/opcodes/ppc-dis.c,v
retrieving revision 1.9
diff -c -3 -p -w -r1.9 ppc-dis.c
*** opcodes/ppc-dis.c 19 Aug 2002 20:59:09 -0000 1.9
--- opcodes/ppc-dis.c 4 Sep 2002 10:03:17 -0000
*************** print_insn_powerpc (memaddr, info, bigen
*** 296,298 ****
--- 296,313 ----
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");
+ }
Index: include/dis-asm.h
===================================================================
RCS file: /cvs/src/src/include/dis-asm.h,v
retrieving revision 1.37
diff -c -3 -p -w -r1.37 dis-asm.h
*** include/dis-asm.h 28 Aug 2002 10:38:48 -0000 1.37
--- include/dis-asm.h 4 Sep 2002 10:03:17 -0000
*************** extern int print_insn_frv PARAMS ((bfd_
*** 243,248 ****
--- 243,249 ----
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));