[PATCH] fix gprof's option parsing

Bob Wilson bwilson@tensilica.com
Tue Oct 17 04:57:00 GMT 2006


gprof's -C option takes an optional argument, but the getopt option string shows 
that it has no argument.

The -n and -N options both have required arguments, but the getopt option string 
shows that they have optional arguments.  (Try running "gprof -n"!)

This patch fixes both.  To test this, I did a i686-pc-linux-gnu build and 
manually ran gprof with several variations on these options.

OK?

2006-10-16  Bob Wilson  <bob.wilson@acm.org>

         * gprof.c (main): Fix option string for -C, -n and -N.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gprof-getopt.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20061017/245a0d37/attachment.ksh>


More information about the Binutils mailing list