From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jeffrey W. Baker" To: Jiva DeVoe Cc: Subject: Re: GDB and threads... Date: Thu, 26 Apr 2001 21:00:00 -0000 Message-id: References: <20010426174305.B19540@opnix.com> X-SW-Source: 2001-04/msg00198.html 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 and glibc 2.2.2 here. -jwb