This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


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

A patch for typo in sprof.c


I assume it is a typo in sprof.c  Without it, read_symbols goes into
a endless loop.


H.J.
----
2001-05-17  H.J. Lu  <hjl@gnu.org>

	* elf/sprof.c (read_symbols): Move "++symtab" into the while
	loop.

--- elf/sprof.c.strip	Thu Jan  4 16:57:34 2001
+++ elf/sprof.c	Thu May 17 10:59:10 2001
@@ -1006,9 +1006,9 @@ read_symbols (struct shobj *shobj)
 		    obstack_free (&shobj->ob_sym, newsym);
 		}
 	    }
-	}
 
-      ++symtab;
+	  ++symtab;
+	}
     }
 
   sortsym = malloc (n * sizeof (struct known_symbol *));


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