[OE-core] Debugging with gdb

Robert P. J. Day rpjday at crashcourse.ca
Thu Mar 22 16:59:12 UTC 2012


On Thu, 22 Mar 2012, Khem Raj wrote:

> in OE-Core world you can add following to local.conf and then you
> can debug it on target.
>
> EXTRA_IMAGE_FEATURES += "dbg-pkgs tools-sdk"
>
> and that should have pretty much what you want. You dont have to
> lower the optlevel since that might let the crash go away. Try to
> debug the same code thats failing.

  heh ... good timing as i was just about to go all pedantic over
this.  the current docs are confusing regarding how a user is supposed
to use that very variable.

  in meta/conf/local/conf.sample, you read:

... snip ...
EXTRA_IMAGE_FEATURES = "debug-tweaks"
... snip ...

so a user would be inspired to do this:

EXTRA_IMAGE_FEATURES = "dbg-pkgs tools-sdk"   (note "=", not "+=")

which might not make any difference except that some image recipes
specifically *already* assign values to that variable (and not even
consistently):

meta/recipes-sato/images/core-image-sato-sdk.bb:EXTRA_IMAGE_FEATURES += "tools-debug tools-profile tools-testapps debug-tweaks"
meta/recipes-rt/images/core-image-rt-sdk.bb:EXTRA_IMAGE_FEATURES += "tools-debug tools-profile tools-testapps debug-tweaks"
meta/recipes-extended/images/core-image-lsb-sdk.bb:EXTRA_IMAGE_FEATURES = "tools-debug tools-profile tools-testapps debug-tweaks"

  so what happens if you choose to build one of these images and
assign directly to EXTRA_IMAGE_FEATURES in your local.conf?  (i'm
still grappling with the precedence and ordering of assignment so i'm
not sure, but it certainly looks this has the potential to surprise
the user.)

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================





More information about the Openembedded-core mailing list