Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Sep 1999 14:43:41 -0700 (PDT)
From:      "f.johan.beisser" <jan@caustic.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: does gdb on 3.3RC have thread support? (fwd)
Message-ID:  <Pine.BSF.4.05.9909151442550.31678-100000@pogo.caustic.org>

next in thread | raw e-mail | index | archive | help

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 <cdoherty@wopr.skidmore.EDU>
To: f.johan.beisser <jan@caustic.org>
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 <kip@lyris.com>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9909151442550.31678-100000>