This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Documenting target specific disassembler options
- To: binutils at sourceware dot cygnus dot com
- Subject: Documenting target specific disassembler options
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Thu, 27 Jan 2000 12:47:49 -0800
Hi Guys,
Below is a patch to add the ability for 'objdump --help' to display
the target specific options accepted by the -M switch. The patch
adds a new disassmebler function called "disassembler_usage" which
can be used to call target specific documentation functions.
I intend to use this new feature to document the ARM specific
disassembler options.
Is it OK to apply this patch ?
Cheers
Nick
Index: include/dis-asm.h
===================================================================
RCS file: /cvs/cvsfiles/devo/include/dis-asm.h,v
retrieving revision 1.87
diff -p -r1.87 dis-asm.h
*** dis-asm.h 2000/01/18 23:50:56 1.87
--- dis-asm.h 2000/01/27 20:47:06
*************** extern int arm_toggle_regnames
*** 207,212 ****
--- 207,213 ----
/* Fetch the disassembler for a given BFD, if that support is available. */
extern disassembler_ftype disassembler PARAMS ((bfd *));
+ extern void disassembler_usage PARAMS ((FILE *));
/* This block of definitions is for particular callers who read instructions
Index: binutils/objdump.c
===================================================================
RCS file: /cvs/cvsfiles/devo/binutils/objdump.c,v
retrieving revision 1.213
diff -p -r1.213 objdump.c
*** objdump.c 2000/01/03 18:55:44 1.213
--- objdump.c 2000/01/27 20:47:06
*************** usage (stream, status)
*** 264,269 ****
--- 264,271 ----
--adjust-vma <offset> Add <offset> to all displayed section addresses\n\
\n"));
list_supported_targets (program_name, stream);
+
+ disassembler_usage (stream);
}
if (status == 0)
fprintf (stream, _("Report bugs to bug-gnu-utils@gnu.org\n"));
Index: opcodes/disassemble.c
===================================================================
RCS file: /cvs/cvsfiles/devo/opcodes/disassemble.c,v
retrieving revision 1.56
diff -p -r1.56 disassemble.c
*** disassemble.c 2000/01/18 23:46:43 1.56
--- disassemble.c 2000/01/27 20:47:06
*************** disassembler (abfd)
*** 286,288 ****
--- 286,294 ----
}
return disassemble;
}
+
+ void
+ disassembler_usage (FILE * stream)
+ {
+ return;
+ }