This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Multi-Threaded Extensions for GdbServer


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]