From owner-freebsd-threads@FreeBSD.ORG Sat Nov 1 07:51:04 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 562AD16A4CE for ; Sat, 1 Nov 2003 07:51:04 -0800 (PST) Received: from imf19aec.mail.bellsouth.net (imf19aec.mail.bellsouth.net [205.152.59.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 069AF43FA3 for ; Sat, 1 Nov 2003 07:51:03 -0800 (PST) (envelope-from drhodus@catpa.com) Received: from catpa.com ([68.209.168.6]) by imf19aec.mail.bellsouth.net (InterMail vM.5.01.05.27 201-253-122-126-127-20021220) with ESMTP id <20031101155102.SFCC1849.imf19aec.mail.bellsouth.net@catpa.com>; Sat, 1 Nov 2003 10:51:02 -0500 Date: Sat, 1 Nov 2003 10:50:59 -0500 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Mime-Version: 1.0 (Apple Message framework v552) To: Daniel Eischen From: David Rhodus In-Reply-To: Message-Id: <301A7B2D-0C83-11D8-A962-000A959B213E@catpa.com> Content-Transfer-Encoding: quoted-printable X-Mailer: Apple Mail (2.552) 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:51:04 -0000 On Saturday, November 1, 2003, at 10:39 AM, Daniel Eischen wrote: > 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=20= >> on it >> yet. I would be interested in taking it on (if no one else has had=20 >> time >> to get started on it yet). >> >> There appears to be several things that need to be done in = general): >> >> >> * Making gdb understand all three libraries that threaded=20 >> programs >> might be liked with: >> -- libc_r, libthr, and libpthread >> >> * Adding code to the kernel to attach to threads running in >> different KSE=92s to bring back and display the data for threads = (which=20 >> are >> attached to blocked). >> >> * For debugging N:M threads some logic could be added to the = ULE >> scheduler (to enable the debugger to control the flow of execution=20= >> while >> debugging a specific thread). >> >> I would like to work on this task (if no one else had gotten started=20= >> on >> it yet) > > I started but put it aside for the time being. Have a look > at NetBSD's libpthread_dbg. How far off is GDB 6.0 from what FreeBSD needs ? -DR