[OE-core] Debugging with gdb

Khem Raj raj.khem at gmail.com
Thu Mar 22 16:46:39 UTC 2012


On Mon, Mar 19, 2012 at 4:18 PM, Andreas Müller
<schnitzeltony at googlemail.com> wrote:
> Hi,
>
> midori crashes with segmentation fault since a while (0.4.3 & 0.4.4).
> To understand why I would like to start a gdb remote debug session. In
> the past I prepared the image in the following way to get as much
> libraries as possible compiled with -O0 since I do not know which
> component might be responsible:
>
> 1. clean all tmp dirs
> 2. build all recipes where -O0 is not wanted
> (u-boot/kernel/gdb/gdb-cross) or not possible (eglibc/lttng-ust)
> 3. added in local.conf: 'SELECTED_OPTIMIZATION = "${DEBUG_OPTIMIZATION} -O0'
> 4. build image
>
> This sequence does not work anymore since the change in local.conf
> causes most (all?) recipes to rebuild which crashes at least at
> eglibc.
>
> I am running a bit out of ideas to get this done. The only solution I
> see is a minimum optimization passed in the recipe together with 3.
> and build from scratch.
>
> Comments / better ideas?

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.

>
> Andreas
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core




More information about the Openembedded-core mailing list