[yocto] On target gdb support for multiple architectures?

Khem Raj raj.khem at gmail.com
Fri May 27 00:20:20 PDT 2016


There should be two gdb executables on your target.
On May 26, 2016 3:34 PM, "Stroz, Glenn" <gstroz at qti.qualcomm.com> wrote:

> Hello,
>
>
>
> We’re trying to setup our target for onboard debugging. We have multiple
> architectures being built with multilib. An armv7 variant which is 32 bit
> and an armv8 variant which is 64 bit. We would like the gdb installed in
> the image to support both architectures. Right now, even when adding both
> gdb and lib32-gdb to the image we see it only supports aarch64.
>
>
>
> #
>
> # Multilib configuration
>
> #
>
> # This sets any packages preprended with lib32- to be built with
>
> # the armv7a tuning (32 bit) instead of 64 bit aarch.
>
> #
>
> require conf/multilib.conf
>
> MULTILIBS = "multilib:lib32"
>
> DEFAULTTUNE_virtclass-multilib-lib32 = "armv7a-neon"
>
>
>
> When adding lib32-gdb and gdb to image:
>
> (gdb) set architecture
>
> Requires an argument. Valid arguments are aarch64, aarch64:ilp32, auto.
>
>
>
> When adding only lib32-gdb to image:
>
> (gdb) set architecture
>
> Requires an argument. Valid arguments are arm, armv2, armv2a, armv3,
> armv3m, armv4, armv4t, armv5, armv5t, armv5te, xscale, ep9312, iwmmxt,
> iwmmxt2, auto.
>
>
>
> Is there any method of getting the build system to combine the two lists
> of architectures into one binary that supports them all?
>
>
>
> Thanks,
>
> Glenn
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160527/1b0dbabc/attachment.html>


More information about the yocto mailing list