June 2017
Intermediate to advanced
478 pages
13h 14m
English
There are two things to be done to debug applications remotely when using the Yocto Project: you need to add gdbserver to the target image, and you need to create an SDK that includes GDB and has debug symbols for the executables that you plan to debug.
First, then, to include gdbserver in the target image, you can add the package explicitly by adding this to conf/local.conf:
IMAGE_INSTALL_append = " gdbserver"
Alternatively, you can add tools-debug to EXTRA_IMAGE_FEATURES, which will add gdbserver, native gdb, and strace to the target image (I will talk about strace in the next chapter):
EXTRA_IMAGE_FEATURES = "debug-tweaks tools-debug"
For the second part, you just need to build an SDK ...
Read now
Unlock full access