using std::vector

Technical questions regarding the XTC tools and programming with XMOS.
luuma
New User
Posts: 2
Joined: Thu Apr 25, 2024 10:06 am

using std::vector

Post by luuma »

Hi,

i have some code that uses std::vector. If you compile it with debug info (-g flag) then it fails silently, but it works fine otherwise. Does anyone know why this is happening?

thanks,

Chris
CiaranW
Verified
New User
Posts: 2
Joined: Tue Jun 28, 2022 10:58 am

Post by CiaranW »

Hi Chris,

I believe this issue is related to the older version of xgdb which is currently in the XTC tools. xgdb is used under the hood for many of our other tools such as xrun, xflash & xburn.

The currently released version of xgdb does not fully support C++ debug information, which means certain programs will crash when you try to run them. This should be more apparent if you run xrun with the '--verbose' argument: you might see complaints about a "Dwarf error".

This should be fixed in the upcoming next version of the XTC tools, as xgdb has been upgraded. For now, compiling without '-g' is the workaround I'm afraid.

Hope this helps,
Ciaran
(XMOS Tools engineer)
luuma
New User
Posts: 2
Joined: Thu Apr 25, 2024 10:06 am

Post by luuma »

thanks Ciaran for explaining, we'll try out the --verbose flag

Chris
CiaranW
Verified
New User
Posts: 2
Joined: Tue Jun 28, 2022 10:58 am

Post by CiaranW »

Hi Chris,

The latest version of the tools has been released, which should fix your issue: https://www.xmos.com/software-tools/