gdb on fc6, gdbserver on rh62, which libthread_db.so do i use on which platform?
Daniel Jacobowitz
drow@false.org
Fri Dec 29 17:43:00 GMT 2006
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
More information about the Gdb
mailing list