From owner-freebsd-threads@FreeBSD.ORG Sat Nov 1 07:39:21 2003 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 8743116A4CE for ; Sat, 1 Nov 2003 07:39:21 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA66043FAF for ; Sat, 1 Nov 2003 07:39:20 -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 hA1FdI1G012939; Sat, 1 Nov 2003 10:39:18 -0500 (EST) Date: Sat, 1 Nov 2003 10:39:18 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Glenn Gombert In-Reply-To: <20031101125900.5B7776EF3B@server2.messagingengine.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE cc: freebsd-threads@freebsd.org Subject: Re: Adding Threads Support to GDB 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: Sat, 01 Nov 2003 15:39:21 -0000 On Sat, 1 Nov 2003, Glenn Gombert wrote: > I discussed to Robert Watson the Release 5.2 task of adding threads > support to GDB. It does not appear that anyone is currently working on it > yet. I would be interested in taking it on (if no one else has had time > to get started on it yet). >=20 > =09There appears to be several things that need to be done in general): >=20 >=20 > * Making gdb understand all three libraries that threaded programs > might be liked with: > -- libc_r, libthr, and libpthread >=20 > * Adding code to the kernel to attach to threads running in > different KSE=92s to bring back and display the data for threads (which a= re > attached to blocked). >=20 > * For debugging N:M threads some logic could be added to the ULE > scheduler (to enable the debugger to control the flow of execution while > debugging a specific thread).=20 >=20 > I would like to work on this task (if no one else had gotten started on > it yet) I started but put it aside for the time being. Have a look at NetBSD's libpthread_dbg. --=20 Dan Eischen