This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Help-ddd debugger
- From: Deepak Kashyap <deepak_kashyap01 at yahoo dot co dot in>
- To: drow at mvista dot com, gautham dot thavva at lycos dot com, gdb at sources dot redhat dot com
- Date: Tue, 3 May 2005 14:48:19 +0100 (BST)
- Subject: 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