This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GDB and threads...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]