Both Development Studio and DS5 fail to load debug symbols off gcc-generated ELF

Hi,

This is is what I've discovered, and I am hoping it helps others:

When we upped the C++ std support from 11 to 17 with the GCC option -std=gnu++17, both DS5 (all versions) and Development Studio (v2021.0) failed while loading symbols from our ELF.

We're using a Xilinx-supplied gcc cross compiler (for Cortex A9), version:

make-C:\dev\akd\trunk1\make>arm-none-eabi-g++ --version
arm-none-eabi-g++ (Linaro GCC 7.3-2018.04-rc3) 7.3.1 20180314 

The fix is to add the following options to the g++ compiler: -g -gstrict-dwarf -gdwarf-3

Don't forget to do a clean make.

Best,
Sri

More questions in this forum