June 2017
Intermediate to advanced
478 pages
13h 14m
English
To begin with, you need to add gdb to the target image by adding this to conf/local.conf:
IMAGE_INSTALL_append = " gdb"
Next, you need the debug information for the packages you want to debug. The Yocto Project builds debug variants of packages, which contain unstripped binaries and the source code. You can add these debug packages selectively to your target image by adding <package name>-dbg to your conf/local.conf. Alternatively, you can simply install all debug packages by adding dbg-pkgs to EXTRA_IMAGE_FEATURES. Be warned that this will increase the size of the target image dramatically, perhaps by several hundreds of megabytes.
EXTRA_IMAGE_FEATURES = "dbg-pkgs"
The source code is installed into /usr/src/debug/<package ...
Read now
Unlock full access