Page 1 of 1

Release 2.1 breaks DWARF2 .elf debug?

Posted: Sun Oct 10, 2021 1:35 pm
by MGeo
After updating to v2.1 of STM32duino core, I'm getting "no DWARF2 info found" errors when attempting to debug .elf file compiled with -g option. This was with Segger Ozone on both Ubuntu 18.04 and Windows 10. Reverting to 2.0 fixes the issue.

Anyone else experiencing this? I'll have to do some digging but I'm thinking maybe compile or link flags were modified.

Re: Release 2.1 breaks DWARF2 .elf debug?

Posted: Sun Oct 10, 2021 2:42 pm
by fpiSTM
The change is that -g option to add debug symbol has its own menu, this allows to use all optimisation options to debug not only the -Og