From owner-freebsd-threads@FreeBSD.ORG Mon Mar 29 05:06:51 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D6FE16A4CE for ; Mon, 29 Mar 2004 05:06:51 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF04D43D53 for ; Mon, 29 Mar 2004 05:06:50 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i2TD6ntf016980; Mon, 29 Mar 2004 08:06:49 -0500 (EST) Date: Mon, 29 Mar 2004 08:06:49 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Niall Douglas In-Reply-To: <4067688B.19545.1A50C1@localhost> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: GDB 6.0 and FreeBSD threads X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Mar 2004 13:06:51 -0000 On Mon, 29 Mar 2004, Niall Douglas wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 28 Mar 2004 at 9:47, Daniel Eischen wrote: > > > No-one has touched uthread support for other GDB's as > > far as I know. Most work is going in to our other thread > > libraries. There is work trying to get GDB thread support > > for libpthread, and that should be here by 5.3-release. > > I discovered late last night that libc_r implements only userland > threads which seem to have issues with pipes (my code kept hanging > inside the pipe i/o). I then discovered there are real system scope > threads too, but they're in a different library called libkse. > > You guys could seriously improve the documentation inside the man > pages. Please! Just a two line paragraph would have saved me more > than a day of work. > > After linking to libkse and finding it really doesn't like coexisting > with libc_r, I discovered the libmap.conf trick and it works now. > Unfortunately I'm back to square one in that no gdb supports kse > threads. This is a major problem as my code is heavily multithreaded. You'll probably have to wait for gdb support to hit the tree sometime before 5.3-release. -- Dan Eischen