Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Sunil Somarajan" <sunil.somarajan@gmail.com>
To: gdb@sourceware.org
Subject: gdbserver not able to initiatilize thread_db on arm
Date: Sat, 15 Dec 2007 02:22:00 -0000	[thread overview]
Message-ID: <f45c7a8a0712141822v2c7de1d0pa3d7a3bcd970a83d@mail.gmail.com> (raw)

Hi,

My target is an ARMv6.

I have gdb/gdbserver (6.6) BOTH compiled and linked against uClibc. I
have a multi-threaded app (LinuxThreads) that I am trying to debug
remotely. I have set solib-absolute-prefix to /<host_home>/

The ld-linux.so.2 can be found against /host_home/lib/ on the host and
/lib on the target. Once I load the program I am able to break at
main. I see the shared libraries being loaded from /host_home/lib. The
same libraries present on the target.

"info shared" on the gdb client shows the following libs loaded
correctly from host_home/lib

libdl, libc, libpthread and ld-linux all loaded fine including a
shared library that my app uses. ,libthread_db is missing on the host.

gdbserver on target is linked against libthread_db.so.1 (present at
/lib on target and /host_home/lib on the host). As soon as my app
creates threads I see a gdb:error initializing thread_db : generic
error message on the target. I instrumented thread_db.c on the target
and err=1 => TD_ERR.

I am not sure what is wrong ? Does thread_db need to be loaded
manually on the host for this to work ?

Thanks,
Sunil.


             reply	other threads:[~2007-12-15  2:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-15  2:22 Sunil Somarajan [this message]
2007-12-15  4:47 ` Daniel Jacobowitz
2007-12-15  7:23   ` Sunil Somarajan

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=f45c7a8a0712141822v2c7de1d0pa3d7a3bcd970a83d@mail.gmail.com \
    --to=sunil.somarajan@gmail.com \
    --cc=gdb@sourceware.org \
    /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