Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Frank Chen <frankxchen@yahoo.com>
Cc: gdb@sources.redhat.com
Subject: Re: gdbserver couldn't find thread library
Date: Mon, 20 Feb 2006 05:49:00 -0000	[thread overview]
Message-ID: <20060220043338.GA1424@nevyn.them.org> (raw)
In-Reply-To: <20060220031628.35250.qmail@web34705.mail.mud.yahoo.com>

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


      reply	other threads:[~2006-02-20  4:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-20  5:07 Frank Chen
2006-02-20  5:49 ` Daniel Jacobowitz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060220043338.GA1424@nevyn.them.org \
    --to=drow@false.org \
    --cc=frankxchen@yahoo.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox