[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debugging threaded apps using gdb



On Tue, 24 Aug 1999 jolb01@gel.usherb.ca wrote:

> On Wed, Aug 25, 1999 at 12:16:16PM -0500, Oleg Krivosheev wrote:
> > On Mon, 23 Aug 1999 jolb01@gel.usherb.ca wrote:
> > > hi, 
> > > 
> > > im trying to debug a threaded apps with gdb but it's not working properly.
> > > im using potato.
> > > 
> > > 1) i tried 4.18 and i found that there is no thread patch applied to it.
> > > 2) then i downgraded to 4.17-4 which should support thread... but gdb hang on a pthread_create call.
> > > 
> > > any advice on how to debug threads in debian?
> > > 
> > 
> > HJ maintained gdb 4.17 with special support for debugging
> > pthread glibc2.l apps
> > 
> > OK
> 
> can you explain me something? 
> if i try to debug threads in slink (which have gdb 4.17) it's working.
> but like now i dont ahve a slink but a potato with a downgraded version
> of gdb (4.17)... but it's not working. i guest there's something else to
> downgrade, but what? 

no, nothing to downgrade

i believe glibc 2.1.1 has generic pthread debugging support
and HJ maintains patch against gdb4.17 which allows to debug
pthreads using this interface.

you can read docs and d/l patched gdb source/binary  from

ftp://ftp.valinux.com/pub/support/hjl/gdb


OK



Reply to: