[yocto] On target gdb support for multiple architectures?

Stroz, Glenn gstroz at qti.qualcomm.com
Thu May 26 15:31:25 PDT 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160526/611b4f43/attachment.html>


More information about the yocto mailing list