[yocto] using gdb with externalsrc

Paul Eggleton paul.eggleton at linux.intel.com
Thu Jul 16 01:13:05 PDT 2015


On Wednesday 15 July 2015 19:54:08 Khem Raj wrote:
> On Wed, Jul 15, 2015 at 2:52 PM, Dave Kimble <dkimble at alticast.com> wrote:
> > Yes, I'm able to debug the externalsrc component. I can see variables, set
> > breakpoints, step/next through the code etc. (so the symbols are valid).
> > And local changes to the externalsrc component are reflected when I
> > debug.
> > 
> > But I can't list the externalsrc component source code from within gdb (or
> > find it anywhere in the image). The source for all of the other components
> > is in the image (and I can list it in gdb). When I try to list the code
> > for
> > the externalsrc component, gdb prints this error message:
> > "[path on my build machine]/sourceFile.c: No such file or directory."
> 
> is this path pointing to S which is externalsrc path or to B which is
> under build TMPDIR
> and secondly, can you see compiler flags used during build for externalsrc ?

This sounds suspiciously like this bug that coincidentally I just filed 
yesterday:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=8015

As far as I can tell it has something to do with the source not being in the 
path we're passing to debugedit, but I'm not immediately sure how to fix it.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the yocto mailing list