Is there any type of cross-reference listing or search, either in gcc or in an external tool, to find where a symbol is #define'd in some .h file?
I'm trying to get started with Contiki, which has a large tree-structure of files, and many 'nested' .h files. So, when I see a name in a .c file, and that name was defined elsewhere in some .h file, it's very difficult to find where that name is defined.
Yes, I can grep, and find many files where it is defined, but it's then takes a fair amount of time and effort to figure out which of those were actually involved in the compilation of source code in question.
If these were symbols/names in .c files, I presume I could get a linker cross-ref, but since the #defines are in .h files, it seems this info is essentially hidden by the preprocessing.
Is there a way to find this?