From: Gary Thomas <gary@mlbassoc.com>
To: yocto@yoctoproject.org
Subject: Re: GDB problems
Date: Mon, 08 Apr 2013 06:30:02 -0600 [thread overview]
Message-ID: <5162B84A.2020707@mlbassoc.com> (raw)
In-Reply-To: <5162A418.4070204@mlbassoc.com>
On 2013-04-08 05:03, Gary Thomas wrote:
> 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.
It's not clear to me why, but the files labelled as 'eglibc-thread-db' in
the eglibc recipe end up in the 'libthread-db1' package, so that mystery
is solved.
I still don't know how to get the libpthread library to be not stripped
(which it seems is what it takes to make GDB happy in this case).
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
next prev parent reply other threads:[~2013-04-08 12:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-08 11:03 GDB problems Gary Thomas
2013-04-08 12:30 ` Gary Thomas [this message]
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=5162B84A.2020707@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.