GDB and threads...

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jiva DeVoe
Date:  
Subject: GDB and threads...
On Thu, Apr 26, 2001 at 02:17:17PM -0700, Kevin Buettner wrote:
> On Apr 26, 1:38pm, Jiva DeVoe wrote:
>
> > does anyone know of a better debugger than gdb for debugging
> > multithreaded apps?
>
> I don't know of any other options on Linux.
>
> > Gdb's thread support is... ummm "interesting"
>
> What problems are you seeing?


Well, for instance, if I have a segfault in another thread, gdb
doesn't switch right to it. Nor can I do it manually (info threads
returns nothing.) I can attach to the other threads externally by
doing a gdb ./progname pid but that's a real pain when you have like
4-5 threads and you don't know which one is croaking.

>
> Also, have you tried the current development sources? See
> http://sources.redhat.com/gdb/#download
>


I haven't tried the development version source, but I have tried the
latest cvs version of stable. I'll try the devel version today.

> > OR, does anyone know WHEN gdb's thread support will improve?
>
> It is being worked on, off and on. It really helps when we (the
> GDB team) have relatively small test cases to look at.
>


I'll see if I can come up with some.

> BTW, this discussion probably ought to be moved to
> . I'm willing to continue discussing it here if
> you want, but you'll get the attention of other GDB developers if you
> ask your question on one of the GDB mailing lists. (The Linux threads
> maintainer for GDB is usually pretty responsive if you supply him with
> specific test cases.)
>


Yeah, I posted to the gdb list at the same time I posted here. Have
only gotten a few responses from (I assume) non-maintainers so far,
and it's been recommendations for other products to use.
Unfortunately, I tried all of those, and they don't do too much
better. ;D

> Kevin
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail.
>
> PLUG-discuss mailing list -
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


--
Jiva DeVoe
VP Of Software Development
Opnix, Inc. - Simply mega-cool bandwidth.
GPG Fingerprint: 0A17 DF84 516A 1DC4 B837 FE6D 3128 41CD 97CB 4AA7