We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
When I use cortex-debug in vscode or using ozone (segger.com) I noticed that when single stepping it is showing the incorrect source file. The binary generated is correct but the symbol table reference to source file is incorrect and thus single stepping shows the incorrect code. I found if I revert back to 10.3.1-2.2.1 of the gcc toolchain everything works. Was their a change in the toolchain post 10.3.1 which causes this problem? Testing with 13.3.1-1.1.1 I found that if I did objdump -dlr of my elf file, the disassembly listing does show the correct source, however when running with gdb it did not show the correct source file reference to the disassembly. Note I am running code on a cortex-M0+ if it matters.
Thanks
Trampas