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  

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

Reply via email to