This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
objdump: display short option names with --help
- To: binutils at sourceware dot cygnus dot com
- Subject: objdump: display short option names with --help
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Fri, 19 Nov 1999 12:14:16 GMT
- Reply-to: nickc at cygnus dot co dot uk
Hi Guys,
This is just a small patch to include the short versions of the
command line options support by objdump in the output it generates
with the --help command line switch.
OK to apply ?
Cheers
Nick
1999-11-19 Nick Clifton <nickc@cygnus.com>
* objdump.c (usage): Include short options in output.
Index: binutils/objdump.c
===================================================================
RCS file: /cvs/binutils/binutils/binutils/objdump.c,v
retrieving revision 1.13
diff -p -r1.13 objdump.c
*** objdump.c 1999/10/28 03:30:13 1.13
--- objdump.c 1999/11/19 12:12:27
*************** usage (stream, status)
*** 228,246 ****
fprintf (stream, _("\
Usage: %s [-ahifCdDprRtTxsSlw] [-b bfdname] [-m machine] \n\
[-j section-name] [-M disassembler-options]\n\
! [--archive-headers] [--target=bfdname] [--debugging] [--disassemble]\n\
! [--disassemble-all] [--disassemble-zeroes] [--file-headers]\n\
! [--section-headers] [--headers]\n\
! [--info] [--section=section-name] [--line-numbers] [--source]\n"),
program_name);
fprintf (stream, _("\
! [--architecture=machine] [--reloc] [--full-contents] [--stabs]\n\
! [--syms] [--all-headers] [--dynamic-syms] [--dynamic-reloc]\n\
! [--wide] [--version] [--help] [--private-headers]\n\
[--start-address=addr] [--stop-address=addr]\n\
[--prefix-addresses] [--[no-]show-raw-insn] [--demangle]\n\
[--adjust-vma=offset] [-EB|-EL] [--endian={big|little}] objfile...\n\
! at least one option besides -l (--line-numbers) must be given\n"));
list_supported_targets (program_name, stream);
if (status == 0)
fprintf (stream, _("Report bugs to bug-gnu-utils@gnu.org\n"));
--- 228,246 ----
fprintf (stream, _("\
Usage: %s [-ahifCdDprRtTxsSlw] [-b bfdname] [-m machine] \n\
[-j section-name] [-M disassembler-options]\n\
! [-a|--archive-headers] [-b|--target=bfdname] [--debugging]\n\
! [-d|--disassemble] [-D|--disassemble-all] [--disassemble-zeroes]\n\
! [-f|--file-headers] [-h|--section-headers] [-h|--headers]\n\
! [-i|--info] [-j|--section=section-name] [-l|--line-numbers] [-S|--source]\n"),
program_name);
fprintf (stream, _("\
! [-m|--architecture=machine] [-r|--reloc] [-s|--full-contents] [--stabs]\n\
! [-t|--syms] [-x|--all-headers] [-T|--dynamic-syms] [-R|--dynamic-reloc]\n\
! [-w|--wide] [--version] [-H|--help] [-p|--private-headers]\n\
[--start-address=addr] [--stop-address=addr]\n\
[--prefix-addresses] [--[no-]show-raw-insn] [--demangle]\n\
[--adjust-vma=offset] [-EB|-EL] [--endian={big|little}] objfile...\n\
! at least one option besides -l (--line-numbers) must be given\n"));
list_supported_targets (program_name, stream);
if (status == 0)
fprintf (stream, _("Report bugs to bug-gnu-utils@gnu.org\n"));