public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* multi-thread gdbserver and static libthread_db
@ 2003-04-21 16:03 Kevin Hilman
  2003-04-21 16:10 ` Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: Kevin Hilman @ 2003-04-21 16:03 UTC (permalink / raw)
  To: gdb

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?

--
Kevin Hilman


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: multi-thread gdbserver and static libthread_db
  2003-04-21 16:03 multi-thread gdbserver and static libthread_db Kevin Hilman
@ 2003-04-21 16:10 ` Daniel Jacobowitz
  2003-04-21 17:19   ` Kevin Hilman
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2003-04-21 16:10 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: gdb

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: multi-thread gdbserver and static libthread_db
  2003-04-21 16:10 ` Daniel Jacobowitz
@ 2003-04-21 17:19   ` Kevin Hilman
  2003-04-21 17:26     ` Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: Kevin Hilman @ 2003-04-21 17:19 UTC (permalink / raw)
  To: gdb

Also, does this require a specific kernel feature/version?  It appears
to use some /proc magic.  Is the /proc support available in the 2.2.20
kernel?

Kevin

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: multi-thread gdbserver and static libthread_db
  2003-04-21 17:19   ` Kevin Hilman
@ 2003-04-21 17:26     ` Daniel Jacobowitz
  2003-04-21 17:45       ` Kevin Hilman
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2003-04-21 17:26 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: gdb

On Mon, Apr 21, 2003 at 10:19:17AM -0700, Kevin Hilman wrote:
> Also, does this require a specific kernel feature/version?  It appears
> to use some /proc magic.  Is the /proc support available in the 2.2.20
> kernel?

2.2.20 is probably fine.  I haven't tried it on something that old in a
very long time though.

There's really no /proc magic involved...

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: multi-thread gdbserver and static libthread_db
  2003-04-21 17:26     ` Daniel Jacobowitz
@ 2003-04-21 17:45       ` Kevin Hilman
  2003-04-21 17:48         ` Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: Kevin Hilman @ 2003-04-21 17:45 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb

Daniel Jacobowitz <drow@mvista.com> writes:

> On Mon, Apr 21, 2003 at 10:19:17AM -0700, Kevin Hilman wrote:
> > Also, does this require a specific kernel feature/version?  It appears
> > to use some /proc magic.  Is the /proc support available in the 2.2.20
> > kernel?
> 
> 2.2.20 is probably fine.  I haven't tried it on something that old in a
> very long time though.
> 
> There's really no /proc magic involved...

Are there are any docs on the guts of how this is implemented?

Kevin

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: multi-thread gdbserver and static libthread_db
  2003-04-21 17:45       ` Kevin Hilman
@ 2003-04-21 17:48         ` Daniel Jacobowitz
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Jacobowitz @ 2003-04-21 17:48 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: gdb

On Mon, Apr 21, 2003 at 10:45:44AM -0700, Kevin Hilman wrote:
> Daniel Jacobowitz <drow@mvista.com> writes:
> 
> > On Mon, Apr 21, 2003 at 10:19:17AM -0700, Kevin Hilman wrote:
> > > Also, does this require a specific kernel feature/version?  It appears
> > > to use some /proc magic.  Is the /proc support available in the 2.2.20
> > > kernel?
> > 
> > 2.2.20 is probably fine.  I haven't tried it on something that old in a
> > very long time though.
> > 
> > There's really no /proc magic involved...
> 
> Are there are any docs on the guts of how this is implemented?

Not especially :(

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-04-21 17:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-21 16:03 multi-thread gdbserver and static libthread_db Kevin Hilman
2003-04-21 16:10 ` Daniel Jacobowitz
2003-04-21 17:19   ` Kevin Hilman
2003-04-21 17:26     ` Daniel Jacobowitz
2003-04-21 17:45       ` Kevin Hilman
2003-04-21 17:48         ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).