Steps to reproduce: 1) setup with: --machines=intel-x86-64 --kernel=standard --dl-layers --templates feature/gdb 2) . ./environment-setup-x86_64-wrlinuxsdk-linux 3) . ./oe-init-build-env build_test 4) add the following in local.conf: DEBUG_BUILD = "1" EXTRA_IMAGE_FEATURES_append = " dbg-pkgs" 5) Start target and use gdb to debug something -- python is an example. When it hits a breakpoint at "main", you will not be able to display source. When running gdb on a target, the sources files for an object cannot be found without running set substitute-path in gdb.
In gdb: set substitute-path <where-build-was>/tmp/work/<arch> /usr/src/debug
build glibc-std image setting at the end of local.conf: DEBUG_BUILD = "1" WRTEMPLATE_append = " feature/gdb" EXTRA_IMAGE_FEATURES_append = " dbg-pkgs" Start target and use gdb to debug something -- python is an example. When it hits a breakpoint at "main", you will not be able to display source.