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

Mark Hatle mark.hatle at windriver.com
Fri Nov 2 11:20:47 PDT 2018


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
> 
> 



More information about the yocto mailing list