[oclug] debugging using ddd

Greg Sarsons gsarsons at home.com
Fri Feb 2 00:32:22 EST 2001


main creates 

prthread_create(&broadcast_thread,NULL,broadcast_function,NULL)) .... :)

I see in the gdb consol window comments about pthread_setconcurrency()
etc 

If set a breakpoint in the main I can even go up to either of the thread
functions and get the values of the variables ie I can get socket file
descriptors etc which are set in the functions.

Greg

Bart Trojanowski wrote:
> 
> OK, another dumb question... you are doing pthread_create and not fork
> right?
> 
> Bart.
> 
> On Thu, 1 Feb 2001, Greg Sarsons wrote:
> 
> > Well for the number of dumb things I've done -ggdb was a fair question
> > but I had that flag.  As for the single thread, ie the main I can debug
> > that.  I can run the program in a terminal and can see my thread is
> > working ok but using ddd I can't seem to figure it out.
> >
> > Noticed the thread option window but I only see one thread, the main.
> >
> > Greg
> >
> > Bart Trojanowski wrote:
> > >
> > > Hey Greg, how is life?
> > >
> > > Well, I am sure that ddd can debug [p]threaded apps.  Just a dumb
> > > question, did you use -ggdb in your CFLAGS?
> > >
> > > Can you successfuly debug a single thread?
> > >
> > > Bart.
> > >
> > > On Thu, 1 Feb 2001, Greg Sarsons wrote:
> > >
> > > > I'm writing a threaded program that creates sockets but I haven't
> > > > succeeded in being able to use ddd to debug it.  I can set break points
> > > > but ddd just seems to ignore them.
> > > >
> > > > Awaiting words of wisdom from the list .....
> > > >
> > > > Greg
-- 
It said use Windows 98 or better so I installed Linux.



More information about the OCLUG mailing list