[yocto] How to avoid stripping libthread_db to enable gdb thread debugging?

Hui Liu hliu at deeper.network
Sat Nov 3 20:36:32 PDT 2018


Thanks mark. glibc-dbg resolved this issue.

On Fri, Nov 2, 2018 at 11:21 AM Mark Hatle <mark.hatle at windriver.com> wrote:

> On 11/2/18 1:03 PM, Hui Liu wrote:
> > Hi,
> >
> > I add gdb to my recipe, and found gdb can't enable thread debugging.
> >
> > The warning from gdb is:
> >
> > warning: Unable to find libthread_db matching inferior's thread library,
> thread
> > debugging will not be available
> >
> > After some investigation, I found it is due to libthread_db is stripped:
> >
> > nm lib/libthread_db.so.1
> > nm: lib/libthread_db.so.1: no symbols
> >
> > Could you let me know how to avoid this?
>
> You need to install the dbg package.  This contains the symbols necessary
> for
> debugging.  You can install it for either cross or local (on target)
> debugging.
> In the cross-debuging case, you should not need it on the target.
>
> --Mark
>
> > --
> > Thanks,
> > Hui
> >
> >
>
>

-- 
Thanks,
Hui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20181103/8f7c80eb/attachment.html>


More information about the yocto mailing list