This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb on fc6, gdbserver on rh62, which libthread_db.so do i use on which platform?
- From: Daniel Jacobowitz <drow at false dot org>
- To: John Utz <John dot Utz at dmxmusic dot com>
- Cc: gdb at sources dot redhat dot com, crossgcc at sourceware dot org
- Date: Fri, 29 Dec 2006 12:43:18 -0500
- Subject: Re: gdb on fc6, gdbserver on rh62, which libthread_db.so do i use on which platform?
- References: <F8FB97052F1BEF409F7842E960E49B5ACECFF1@sea-exch-01.na.corp.dmxmusic.com>
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