This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: multi-thread gdbserver and static libthread_db
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Kevin Hilman <khilman at equator dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 21 Apr 2003 12:10:35 -0400
- Subject: Re: multi-thread gdbserver and static libthread_db
- References: <r2el3vrg6j.fsf@equator.com>
On Mon, Apr 21, 2003 at 09:03:32AM -0700, Kevin Hilman wrote:
> I have an egdbserver port working from gdb 5.2.1 and would like to get
> the multi-thread support available in 5.3.
>
> It appears gdbserver needs the libthread_db support from glibc. I'm
> using glibc 2.2.4 and only have support for static linking on my
> platform. When building glibc without dynamic linking, libthread_db
> doesn't get built. Any suggestions for building a static
> libthread_db?
Actually yes, it's pretty easy. In the glibc source,
linuxthreads_db/Makefile:
-libthread_db-inhibit-o = $(filter-out .os,$(object-suffixes))
+#libthread_db-inhibit-o = $(filter-out .os,$(object-suffixes))
In general it's not a good idea, since you must match the libpthread
version precisely; but if you don't have dynamic linking, then this is
probably the way to go.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer