This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: GDB and threads...
- To: Jiva DeVoe <jiva at opnix dot com>
- Subject: Re: GDB and threads...
- From: "Jeffrey W. Baker" <jwbaker at acm dot org>
- Date: Thu, 26 Apr 2001 21:01:05 -0700 (PDT)
- cc: <gdb at sources dot redhat dot com>
On Thu, 26 Apr 2001, Jiva DeVoe wrote:
> Does anyone have any tips on debugging multithreaded apps using gdb?
> I have been trying for a couple of months now, and IMO gdb is REALLY
> not very effective at it (at least in my experience.) I've used
> windows debuggers to do this, and when I would have a fault in a
> subthread, the debugger would actually break *in* that thread. With
> gdb, it breaks, but it still breaks in the main thread. I can't even
> get the thread info commands to work.
>
> HELP!
>
> FYI, I am using version 5.0 of gdb on Mandrake 7.2 with kernel 2.2.x
I think you'd better get a newer version of gdb. I was flustered so I
downloaded a CVS snapshot. Now it works fine with my threaded programs as
long as I don't spawn a lot of threads.
Linux 2.4.3-ac<mumble> and glibc 2.2.2 here.
-jwb