diff options
author | Nick Clifton <nickc@redhat.com> | 2000-07-20 00:39:10 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2000-07-20 00:39:10 +0000 |
commit | b56f55ce04b49900252128472486632d04fb4e62 (patch) | |
tree | 7b7ad70cd2076b8c5cd60bd4fd57b41453a45a4a /binutils/nm.c | |
parent | 1d713d9eaf8c25830fbae4035134fcc7d6f03219 (diff) | |
download | gdb-b56f55ce04b49900252128472486632d04fb4e62.zip gdb-b56f55ce04b49900252128472486632d04fb4e62.tar.gz gdb-b56f55ce04b49900252128472486632d04fb4e62.tar.bz2 |
Change output of `nm --help' to include a description of the purpose of the
program and a detailed description of the accepted options.
Diffstat (limited to 'binutils/nm.c')
-rw-r--r-- | binutils/nm.c | 41 |
1 files changed, 30 insertions, 11 deletions
diff --git a/binutils/nm.c b/binutils/nm.c index 2ee4873..ad5a00d 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -291,19 +291,38 @@ usage (stream, status) FILE *stream; int status; { - fprintf (stream, _("\ -Usage: %s [-aABCDglnopPrsuvV] [-t radix] [--radix=radix] [--target=bfdname]\n\ - [--debug-syms] [--extern-only] [--print-armap] [--print-file-name]\n\ - [--numeric-sort] [--no-sort] [--reverse-sort] [--size-sort]\n\ - [--undefined-only] [--portability] [-f {bsd,sysv,posix}]\n\ - [--format={bsd,sysv,posix}] [--demangle] [--no-demangle] [--dynamic]\n\ - [--defined-only] [--line-numbers]\n\ - [--version] [--help]\n\ - [file...]\n"), - program_name); + fprintf (stream, _("Usage: %s [OPTION]... [FILE]...\n"), program_name); + fprintf (stream, _("List symbols from FILEs (a.out by default).\n")); + fprintf (stream, _("\n\ + -a, --debug-syms Display debugger-only symbols\n\ + -A, --print-file-name Print name of the input file before every symbol\n\ + -B Same as --format=bsd\n\ + -C, --demangle Decode low-level symbol names into user-level names\n\ + --no-demangle Do not demangle low-level symbol names\n\ + -D, --dynamic Display dynamic symbols instead of normal symbols\n\ + --defined-only Display only defined symbols\n\ + -e (ignored)\n\ + -f, --format=FORMAT Use the output format FORMAT. FORMAT can be `bsd',\n\ + `sysv' or `posix'. The default is `bsd'\n\ + -g, --extern-only Display only external symbols\n\ + -h, --help Display this information\n\ + -l, --line-numbers Use debugging information to find a filename and\n\ + line number for each symbol\n\ + -n, --numeric-sort Sort symbols numerically by address\n\ + -o Same as -A\n\ + -p, --no-sort Do not sort the symbols\n\ + -P, --portability Same as --format=posix\n\ + -r, --reverse-sort Reverse the sense of the sort\n\ + -s, --print-armap Include index for symbols from archive members\n\ + --size-sort Sort symbols by size\n\ + -t, --radix=RADIX Use RADIX for printing symbol values\n\ + --target=BFDNAME Specify the target object format as BFDNAME\n\ + -u, --undefined-only Display only undefined symbols\n\ + -V, --version Display this program's version number\n\ +\n")); list_supported_targets (program_name, stream); if (status == 0) - fprintf (stream, _("Report bugs to %s\n"), REPORT_BUGS_TO); + fprintf (stream, _("Report bugs to %s.\n"), REPORT_BUGS_TO); exit (status); } |