This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Multi-Threaded Extensions for GdbServer
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Marius Groeger <mag at sysgo dot de>
- Cc: gdb-patches at sources dot redhat dot com, Daniel Junglas <dju at sysgo dot de>,Wolfgang Denk <wd at denx dot de>
- Date: Sat, 25 May 2002 22:32:42 -0400
- Subject: Re: Multi-Threaded Extensions for GdbServer
- References: <Pine.LNX.4.40.0205221041320.480-101000@mag.devdep.sysgo.de>
On Wed, May 22, 2002 at 10:50:24AM +0200, Marius Groeger wrote:
> Hi all,
>
> several people asked me to post this to the wider audience of gdb
> developers. AFAIK there are several approaches for extending the
> gdbserver to be able to debug remote programs that use threads. The
> attached patch does this. The main advantage of it is that it doesn't
> require libthread_db or symbol information on the target. We need
> this for debugging of embedded targets with limited resources.
> The main downside of the patch is that it's for some pretty ancient
> 5.0 snapshot (20010427). It also contains a small number of general
> fixes which are not related to MT debugging.
Not needing symbol information on the target is definitely the way to
go, but libthread_db is very small and has better reliabilty. I'm
still finishing the legal legwork to get this work committed (I've
already finished it); it should be early next week (really!). After
that I'll take a better look at what you've sent; it may have useful
advantages that I can merge into the existing code. It would be nice
to support both with and without thread_db.
I notice that you added glibc specific code to remote.c and some
protocol extensions; that makes this unsuitable to just drop in.
I believe you needed the same extension that was added in a later
version of GDB for looking up symbols, so this isn't a big deal in any
case.
Thanks!
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer