[PATCH] fix gprof's option parsing

Daniel Jacobowitz drow@false.org
Tue Oct 17 13:16:00 GMT 2006

On Mon, Oct 16, 2006 at 03:45:45PM -0700, Bob Wilson wrote:
> 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?

OK.  Could you fix the manual, too?  I believe it says that the
arguments to -n and -N are optional.

Daniel Jacobowitz

More information about the Binutils mailing list