From owner-freebsd-hackers Wed Sep 15 14:43:17 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from pogo.caustic.org (pogo.caustic.org [216.69.69.123]) by hub.freebsd.org (Postfix) with ESMTP id 3753314DEF for ; Wed, 15 Sep 1999 14:43:13 -0700 (PDT) (envelope-from jan@caustic.org) Received: from localhost (jan@localhost) by pogo.caustic.org (8.9.3/ignatz) with ESMTP id OAA35871 for ; Wed, 15 Sep 1999 14:43:41 -0700 (PDT) Date: Wed, 15 Sep 1999 14:43:41 -0700 (PDT) From: "f.johan.beisser" To: freebsd-hackers@freebsd.org Subject: Re: does gdb on 3.3RC have thread support? (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG sorry folks, i passed this on to someone who should know.. jan ---------- Forwarded message ---------- Date: Wed, 15 Sep 1999 17:07:33 -0400 (EDT) From: Chris Doherty To: f.johan.beisser Subject: Re: does gdb on 3.3RC have thread support? (fwd) Kip-- I'm not actually on the lists; your message was forwarded to me. the first place to check is the documentation at www.gnu.org; that will tell you that thread support in gdb is sketchy--"present on some platforms" is what I think it says. I wrote an application this past summer using pthreads and had no debugging support; I know nothing about uthreads but wouldn't be surprised if the same thing was true. things you *can* do: 1. printf() is, as always, your friend. 2. gdb will happily set breakpoints at arbitrary lines in arbitrary files, or simply at the beginning of a function. since each of my threads ran a separate function, I could set a breakpoint at that function and there gdb would stop. inefficient and somewhat painful, but it worked. although I didn't go into it, you may be able to set a breakpoint in another thread while the program is running. this was all on 3.2 and 3.1, but afaik the versions of gdb are roughly the same. HTH, sorry I didn't have better news... Chris > Date: Wed, 15 Sep 1999 12:20:49 -0700 (PDT) > From: Kip Macy > To: freebsd-stable@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG > Subject: does gdb on 3.3RC have thread support? > > When I run my program under ddd, press Ctrl-C to return control to gdb and > then type info threads at the gdb prompt it returns nothing. > > When I run it under gdb on the command line and do the same as above, gdb > dumps core. > > How should I proceed? Should I grab the source for uthreads from current? > > > -Kip > > -------------------------------------- Only this, THIS! Soen -------------------------------------- Chris cdoherty@skidmore.edu a.k.a. Fuzzy Logic -------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message