[yocto] using gdb with externalsrc

Khem Raj raj.khem at gmail.com
Wed Jul 15 12:49:10 PDT 2015


On Wed, Jul 15, 2015 at 9:36 AM, Dave Kimble <dkimble at alticast.com> wrote:
> We've got a component of an existing Yocto project under active development
> that we'd like to debug with gdb.
>
> We’ve added these features to get gdb and the debug symbol packages into the
> image:
>
> EXTRA_IMAGE_FEATURES = "debug-tweaks tools-debug"
>
> IMAGE_FEATURES = "ssh-server-openssh dbg-pkgs"
>
>
> We’ve added these variables to build the component under active development
> from the local code:
> INHERIT += "externalsrc"
> EXTERNALSRC_pn-[component] = “[local source code path]/[component]”
>
> All seems well, as the build succeeds and the component in the image
> reflects local code changes. However, the component source code never makes
> it into the image, so it can’t be referenced in gdb.
>
> Is there a secret to using dbg-pkgs and EXTERNALSRC together?

Can you check if -dbg package for extrnalsrc component is installed ?
secondly, does the debugging work if you dont isue externalsrc for
this particular component.



More information about the yocto mailing list