This is the mail archive of the gdb@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-thread gdbserver and static libthread_db


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


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