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 off the -g and recompile w/ loads of optimizations.
On 09-Nov-98 [EMAIL PROTECTED] wrote: > 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 proper menu in ddd). Although the task are running with no problems. > > BTW: I compile my program using g++ unsing the arguments: > CFLAGS := -g -Wall -O3 -m486 > > What am I doing wrong? > > Thank, Alex. > > -- > Alexander Schwartz > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < > /dev/null