[oclug] debugging using ddd
Bart Trojanowski
bart at nexus.carleton.ca
Fri Feb 2 10:12:34 EST 2001
Greg, you are not doing anything wrong. I just found out that there is a
small inconsistency in how break/continue is done in gdb 5 with the new
kernels. When I did thread debugging I was using gdb 4.x and linux 2.2.x.
I figure you are running gdb 5.x and linux 2.4.x, right?
So try to see what the gdb people are saying about this. Keep us posted.
Bart.
On Fri, 2 Feb 2001, Greg Sarsons wrote:
> 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
>
--
WebSig: http://www.jukie.net/~bart/sig/
More information about the OCLUG
mailing list