Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb on fc6, gdbserver on rh62, which libthread_db.so do i use  on which platform?
@ 2006-12-29 17:34 John Utz
  2006-12-29 17:43 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: John Utz @ 2006-12-29 17:34 UTC (permalink / raw)
  To: gdb; +Cc: crossgcc

Hello Everybody;

Remarkably, I dealt with this successfully previously when I was
contracting at Nintendo
(http://sources.redhat.com/ml/gdb/2004-01/msg00273.html).

But I cant remember how :-( .

My development box is a p4 running fc6 the target is a centaur running
rh62.

I am using crosstool (gcc-2.95.3-glibc-2.1.3) for my tool chain.

I built gdb/gdbserver 6.2 because anything newer wont link because
glibc-2.1.3 is missing some thread thing.

gdb indicates that my application is segfaulting, and based on googling
and finding my *own* email from 2004 and danielj's response, I know that
I need to have matching libthread_db's on both sides of the wire.

*which* libthread_db?

Tnx!

johnu


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

* Re: gdb on fc6, gdbserver on rh62, which libthread_db.so do i use  on which platform?
  2006-12-29 17:34 gdb on fc6, gdbserver on rh62, which libthread_db.so do i use on which platform? John Utz
@ 2006-12-29 17:43 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2006-12-29 17:43 UTC (permalink / raw)
  To: John Utz; +Cc: gdb, crossgcc

On Fri, Dec 29, 2006 at 09:33:39AM -0800, John Utz wrote:
> gdb indicates that my application is segfaulting, and based on googling
> and finding my *own* email from 2004 and danielj's response, I know that
> I need to have matching libthread_db's on both sides of the wire.
> 
> *which* libthread_db?

That's incorrect.  You need matching _libraries_ - that's the libraries
used by your program, not the libraries used by GDB.  The gdb client
will never look at its libthread_db.

On your target, you should have the libthread_db that came with the
libpthread you're using.  On the host, you should have a complete
filesystem image of the target.  Use solib-absolute-prefix to point to
it.

I really need to write a section about this in the manual.

-- 
Daniel Jacobowitz
CodeSourcery


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

end of thread, other threads:[~2006-12-29 17:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-29 17:34 gdb on fc6, gdbserver on rh62, which libthread_db.so do i use on which platform? John Utz
2006-12-29 17:43 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox