This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] fix another gprof option problem


I found another problem with gprof's option parsing: the -r and -R options (the short versions of --function-ordering and --file-ordering) are missing from the option string. Here is a patch, which I have tested by building an i686-pc-linux-gnu version and manually running gprof with -r and -R. The docs look OK.

OK?

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

* gprof.c (main): Fix option string for -r and -R.

Index: gprof.c
===================================================================
RCS file: /cvs/src/src/gprof/gprof.c,v
retrieving revision 1.27
diff -u -p -r1.27 gprof.c
--- gprof.c	17 Oct 2006 04:45:32 -0000	1.27
+++ gprof.c	17 Oct 2006 18:43:24 -0000
@@ -200,7 +200,7 @@ main (int argc, char **argv)
   expandargv (&argc, &argv);
 
   while ((ch = getopt_long (argc, argv,
-	"aA::bBcC::d::De:E:f:F:hiI:J::k:lLm:n:N:O:p::P::q::Q::st:Tvw:xyzZ::",
+	"aA::bBcC::d::De:E:f:F:hiI:J::k:lLm:n:N:O:p::P::q::Q::rR:st:Tvw:xyzZ::",
 			    long_options, 0))
 	 != EOF)
     {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]