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
using std::vector
-
- New User
- Posts: 2
- Joined: Thu Apr 25, 2024 10:06 am
-
Verified
- New User
- Posts: 2
- Joined: Tue Jun 28, 2022 10:58 am
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)
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)
-
- New User
- Posts: 2
- Joined: Thu Apr 25, 2024 10:06 am
thanks Ciaran for explaining, we'll try out the --verbose flag
Chris
Chris
-
Verified
- New User
- Posts: 2
- Joined: Tue Jun 28, 2022 10:58 am
Hi Chris,
The latest version of the tools has been released, which should fix your issue: https://www.xmos.com/software-tools/
The latest version of the tools has been released, which should fix your issue: https://www.xmos.com/software-tools/