All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Yocto Project <yocto@yoctoproject.org>
Subject: GDB problems
Date: Mon, 08 Apr 2013 05:03:52 -0600	[thread overview]
Message-ID: <5162A418.4070204@mlbassoc.com> (raw)

I'm trying to run GDB to debug code on my target.  Whenever I start
it up, I get this warning:
   warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
and indeed, no thread debug commands will work.

I've found that the library /usr/lib/libthread_db.so is not being
installed in the rootfs.  However, just adding this library isn't
enough.  The file /lib/libpthread-2.60.so has been stripped on the
target and this also breaks GDB.  Installing a non-stripped version
of this library lets GDB do thread debugging.

Both of these libraries come from the eglibc package.  How can I
adjust that recipe to:
   * Install libthread_db.so
   * Avoid stripping libpthread-2.16.so

It looks like the libthread_db.so file(s) should be installed via
the 'eglibc-thread-db' package, but I can't find this package anywhere
on my system.

Any pointers?

Thanks

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


             reply	other threads:[~2013-04-08 11:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-08 11:03 Gary Thomas [this message]
2013-04-08 12:30 ` GDB problems Gary Thomas
2013-04-08 12:47   ` Paul Eggleton
2013-04-08 13:01     ` Gary Thomas
2013-04-08 17:34     ` Khem Raj
  -- strict thread matches above, loose matches on Subject: below --
2004-01-27 16:48 gdb problems Christopher R. Johnson
2004-01-27 17:13 ` Christopher R. Johnson
2004-01-27 17:13 ` Wolfgang Denk
     [not found] <000701c0d99b$357cbf20$3196143e@jocke>
2001-05-10 22:09 ` Wolfgang Denk
2001-05-11 10:25   ` Joakim Tjernlund
2001-05-10 17:19 Joakim Tjernlund
2001-05-10 17:40 ` Wolfgang Denk
2001-05-10 18:22 ` Scott Anderson
2001-05-11 10:23   ` Joakim Tjernlund
2001-05-11 15:38     ` Joakim Tjernlund

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=5162A418.4070204@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=yocto@yoctoproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.