public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* gdbserver couldn't find thread library
@ 2006-02-20  5:07 Frank Chen
  2006-02-20  5:49 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Chen @ 2006-02-20  5:07 UTC (permalink / raw)
  To: gdb

I am debugging a multi-threaded program using
gdbserver. The function call to td_ta_new in
thread_db_init() (in thread_db.c) returns
TD_NOLIBTHREAD. And the program does not run properly
afterwards.

However, when I debug the same program locally using
gdb, it works fine. The gdb displays the following
message during start up.

Using host libthread_db library
"/lib/tls/libthread_db.so.1"

Since this is a UI program, running gdb locally
doesn't work. I would like to use the gdbserver. It
seems that I need to point gdbserver to the above
location for the thread library. Could someone tell me
how to do that?

Thanks,

Frank 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

* Re: gdbserver couldn't find thread library
  2006-02-20  5:07 gdbserver couldn't find thread library Frank Chen
@ 2006-02-20  5:49 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2006-02-20  5:49 UTC (permalink / raw)
  To: Frank Chen; +Cc: gdb

On Sun, Feb 19, 2006 at 07:16:28PM -0800, Frank Chen wrote:
> I am debugging a multi-threaded program using
> gdbserver. The function call to td_ta_new in
> thread_db_init() (in thread_db.c) returns
> TD_NOLIBTHREAD. And the program does not run properly
> afterwards.
> 
> However, when I debug the same program locally using
> gdb, it works fine. The gdb displays the following
> message during start up.
> 
> Using host libthread_db library
> "/lib/tls/libthread_db.so.1"
> 
> Since this is a UI program, running gdb locally
> doesn't work. I would like to use the gdbserver. It
> seems that I need to point gdbserver to the above
> location for the thread library. Could someone tell me
> how to do that?

You need to point GDB at the exact same versions of libraries that you
are using on the machine running gdbserver.  I recommend using
"set solib-absolute-prefix".  If you're still having trouble, and you
can't find an answer in the list archives, please show us exactly what
commands you are using.

-- 
Daniel Jacobowitz
CodeSourcery

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

end of thread, other threads:[~2006-02-20  4:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-20  5:07 gdbserver couldn't find thread library Frank Chen
2006-02-20  5:49 ` 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).