Diego Roversi <[EMAIL PROTECTED]> writes:

> Probably the rename is not strictly necessary, btw before running gprof,
> remember to rename back gmon.out to gmon.out. The _mcleanup() forces the
> process to produce the gmon.out file.

I think the writing of profiling information on process exit is
supposed accumulate information if you're running more than one
instance of the profiled program. Unfortunately, the code in gcc-2.x's
libgcc that does this doesn't do any file locking, so you lose if
running several instances simultaneously. I've had this problem when
using gcov a while ago. Is it the same problem you're trying to solve?

The bug is fixed in gcc-3, and I also have a patch for gcc-2.95
somewhere if you're interested.

Regards,
/Niels

_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd

Reply via email to