Jump to: navigation, search

Talk:HowTo use the CDT to navigate Linux kernel source

I downloaded and installed the latest (Luna) eclipse and followed the steps. The only problem I had is a wrong parsing/indexing of container_of macro. That is, any occurrence of this macro in the code was't indexed and appeared as syntax error. container_of macro defined in linux/kernel.h file in the kernel source tree. The file with the same name installed under /usr/include (part of linux-libc-dev package). Once Linux GCC tool chain was chosen at step 9, the /usr/include path was automatically added to the include paths, apparently hiding the kernel include/linux/kernel.h. Choosing "No Toolchain" instead of "LinuxGCC" at step 9 solves this problem for me.