RE: Debugging multithreaded program on Debian

1998-11-11 Thread Geoffrey L. Brimhall
Even linking with libc6 does not cause multiple threads to work correctly. You have to link with libpthreads to have threading work correctly (ie, add -lpthreads). Though I've not digged to find out the reason, it appears that just linking libc6 fills in pthread apis without actually doing anythin

RE: Debugging multithreaded program on Debian

1998-11-09 Thread Shaleh
What you are doing wrong is compiling an app to debug it w/ optimizations. This may not be causing your problem (I have never tried to use ddd). However -g and -O? is not guaranteed to work well. It works, but the results are not well defined. To debug just use -g, then once it is working turn

Debugging multithreaded program on Debian

1998-11-09 Thread alexander.schwartz
Hi, as the subject tells I would like to debug a multithreaded programm on debian. I upgraded gdb (to 4.17-4.m86k.objc.threads.hwwp.fpu.gnat.2), libc6 (2.0.7.u-4) and ddd-smotif (3.0-1) and after my program starts the threads (pthread_create) I am unable to see these tasks (when clicking on the