This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Help-ddd debugger


Hi,
   At present i am working on LINUX platform,and i
donot know how to debug a multithreaded program with
ddd.
please help me regarding this. 

the program is

#include<stdio.h>
#include<pthread.h>
pthread_t thread[5];
void *fun(void *a)
{
   printf("thread %d\n",a);
   pthread_exit(NULL);
}
int main()
{
 int i=0;
 for (i=0 ;i<=5 ;i++)
 {
   printf("thread create %d",i);
   pthread_create(&thread,NULL,fun,(void *)i);
 }
                                                      
                                                      
               
}


With Regards & Thanks
Deepak Kashyap


________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]