Imported Nios II Eclipse Application Results in Broken IDE Indexing
I am currently using the Nios II SBT to create both a user-managed BSP and accompanying application through the command line. Both the BSP and application can be successfully built using the resulting Makefiles.
For debug, I am importing both into a Nios II Eclipse IDE-managed project. Once imported the previously generated .elf can be run on my platform and works as expected. I can also clean and rebuild both the BSP and application from the IDE with no issue.
However, when I try to use any of the IDE indexer functionality (like right clicking a function and moving to its declaration), it does not work. The source files for the application are not in the application's directory and are referenced in the application's Makefile as instructed with the "--src-rdir" switch. I can see the files used to generate the .elf in the drop down menu of the imported .elf.
Is there something extra I need to do to get the indexer working with remote source files for an imported application?
Interesting things I have noticed:
1. Some of the header files are missing in the .elf's drop down menu showing the sources used to build it.
2. When running "Index -> Create Parser Log File" on my main function that gets called by os_init.c, I can see a list of "Unresolved includes (from headers in index)", which even includes the header files that are included in the .elf source list.
3. In the Parser Log File, I do see an indication that you can include more search path using a -I switch somewhere, but have not been able to figure out where I am supposed to put my source path in the IDE to get my source to show up in the list of included directories.
All help is appreciated!