[OE-core] Debugging with gdb
Robert P. J. Day
rpjday at crashcourse.ca
Thu Mar 22 17:59:12 CET 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
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
Robert P. J. Day Ottawa, Ontario, CANADA
More information about the Openembedded-core