I’m facing a problem in VS Code which, if fact, is more of an annoyance than a problem. While debugging, as I hoover over macros, structs, variables, or pointer, a pop-up warning (from the bottom right corner) shows up instantly. I get two errors:
- A syntax error in expression, near ‘variable_name’
- No symbol ‘macro_name’ in the current context
But otherwise debugging a target device is done without issues. I just keep getting these errors and cannot tell what are they referring to, since nothing is actually wrong. Any ideas how to solve this issue or at least prevent these notifications from popping up?
I need to point out that I have tried several different options of generating compiler symbols. Since I’m using the
arm-none-eabi-gcc compiler, I individually tried the following options:
-gstabs (in addition to disabling all optimizations and leaving only
-O0) but none of them affected the outcome. It seems the might be some issue with GDB and symbols being generated by the compiler.