Can anyone tell me if gprof (ie compiling with -pg) is 
supposed to work with pthreads? I'm finding I get a null
pointer from pthread_create(). Actually, the program counter
becomes a null pointer, as in:
#0  0x00000000 in ?? ()
#1  0x08052cd3 in osiThread::Start( ... )

I'm using gcc30 from the ports, specifically gcc30-3.0.4.
on FreeBSD 4.6-RC #2: Wed May 22 19:30:53 EDT 2002

$ gcc30 -v
Reading specs from
/usr/local/lib/gcc-lib/i386-portbld-freebsd5.0/3.0.4/specs
Configured with: ./..//gcc-3.0.4/configure --disable-nls --with-gnu-as
--with-gnu-ld
--with-gxx-include-dir=/usr/local/lib/gcc-lib/i386-portbld-freebsd5.0/3.0.4/
include/g++ --disable-shared --prefix=/usr/local i386-portbld-freebsd5.0
Thread model: posix
gcc version 3.0.4

I'm compiling everything with -pg.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to