aboutsummaryrefslogtreecommitdiff
path: root/gprof/gprof.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2019-05-20 17:17:24 +0100
committerNick Clifton <nickc@redhat.com>2019-05-20 17:17:24 +0100
commitefa9760914311fdd9b9a299f1e6cd5a85d64c5ff (patch)
tree20af1181e3c682261fb2bffb10db18a296c3986c /gprof/gprof.c
parent999b073bdb188635feaf1f719237b4845b5b06f3 (diff)
downloadgdb-efa9760914311fdd9b9a299f1e6cd5a85d64c5ff.zip
gdb-efa9760914311fdd9b9a299f1e6cd5a85d64c5ff.tar.gz
gdb-efa9760914311fdd9b9a299f1e6cd5a85d64c5ff.tar.bz2
Correct the alpha sorting of the short options in the usage description of the gprof program.
PR 24569 * gprof.c (usage): Restore alphabetical sorting to short options list. Add -r, -R and -t short options to the list. (main): Add comment about -g and -G possibly being deprecated. * gprof.texi: Update usage example in line with changes above.
Diffstat (limited to 'gprof/gprof.c')
-rw-r--r--gprof/gprof.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gprof/gprof.c b/gprof/gprof.c
index db425a6..da1411b 100644
--- a/gprof/gprof.c
+++ b/gprof/gprof.c
@@ -160,7 +160,7 @@ static void
usage (FILE *stream, int status)
{
fprintf (stream, _("\
-Usage: %s [-[abcDhilLsTvwxyz]] [-[ACeEfFJnNOpPqSQZ][name]] [-I dirs]\n\
+Usage: %s [-[abcDhilLrsTvwxyz]] [-[ACeEfFJnNOpPqQRStZ][name]] [-I dirs]\n\
[-d[num]] [-k from/to] [-m min-count] [-t table-length]\n\
[--[no-]annotated-source[=name]] [--[no-]exec-counts[=name]]\n\
[--[no-]flat-profile[=name]] [--[no-]graph[=name]]\n\
@@ -269,6 +269,10 @@ main (int argc, char **argv)
case 'f':
sym_id_add (optarg, INCL_GRAPH);
break;
+ /* FIXME: The -g and -G options are not present in the getopt_long
+ invocation above, and they are not documented in gprof.texi.
+ Therefore they appear to be deprecated. Test this theory and
+ delete them if true. */
case 'g':
sym_id_add (optarg, EXCL_FLAT);
break;