yocto - using gdb with externalsrc -


we’re extending existing yocto project. we’d able selectively modify components of project , build using local modifications, debug modifications gdb.

we’ve added these features gdb , debug symbol packages image: extra_image_features = "debug-tweaks tools-debug"
image_features = "ssh-server-openssh dbg-pkgs"

we’ve added these variables build local component code:
inherit += "externalsrc"
externalsrc_pn-[component] = “[local source code path]/[component]”

all seems well, build succeeds , component in image reflects local code changes. however, component source code never makes image, can’t referenced in gdb.

is there secret using dbg-pkgs , externalsrc together?

i believe due bug resolved in 2.1 release, though never pinpointed commit resolved issue. there's bugzilla entry covering issue - if still experiencing 2.1 please let me know.


Comments