[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: can't debug code after pthread_create
From: |
emmanuel_michon |
Subject: |
Re: can't debug code after pthread_create |
Date: |
04 Feb 2001 17:06:06 -0800 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.2 (Molpe) |
by the way
1. gdb prevents the complete execution of sleep (with EINTR).
2. if you want to debug the new thread, better put your break on its
start routine ThreadProc.
3. Your thread just does nothing, so you may have difficulties to
catch it alive with gdb.
4. RH7 thread debugging support is badly broken anyway, use RH6.2 stock
libc and gdb a convenient debugger on threads.
Debugging thread termination on linux is really tricky; if you make
test programs, prefer infinite loops and test all
return codes (if sem_wait())
--
Emmanuel Michon
Ingénieur en développement logiciel
REALmagic France
Mobile: sans mobile GPGkeyID: D2997E42