|Build system bug [message #1852697]
||Wed, 01 June 2022 11:10
| Andrew Coad
Registered: January 2022
Eclipse CDT C/C++ version: 2021-09 (4.21.0)
Build id: 20210910-1417
Mac OS X 11.4 (BigSur)
main.c is shown here:
The breakpoint on line 434 that had no effect. Lines 434 and 435, while showing as active code on-screen, did not actually get compiled. Eclipse moved the breakpoint to the next valid line of code on line 441 as highlighted.
The PP symbols at the project level are:
PP symbol BOARD_AMP_MODULE is active and this is reflected on-screen.
PP symbols at the main.c file level are:
PP symbol BOARD_AMP_MODULE is "commented out" (or completely removed) but Eclipse is interpreting that as being not defined instead of referring to the project-level PP symbols.
The index has been rebuilt (multiple times) but Eclipse is still looking at the file for the BOARD_AMP_MODULE symbol, doesn't find it and doesn't compile the bracketed code segment. Meanwhile the parser that greys code segments out is looking at the project level PP symbols.
How to reproduce:
For a symbol defined at the project-level, also define it on a selected file. Rebuild the index. Comment out, or remove the symbols completely at the file level. Eclipse project build still looks at the file for the designated symbol.
(Size: 194.96KB, Downloaded 138 times)
(Size: 66.28KB, Downloaded 137 times)
Attachment: main file.png
(Size: 56.58KB, Downloaded 148 times)
Powered by FUDForum
. Page generated in 0.20568 seconds