IDEs like NetBeans has made life easier and more productive.
But, you may as well use utilities like 'cscope' when all you have is a console login. Here is how you would set up MySQL sources for easy cross-referencing using 'cscope':
Build the cross-reference:
Go the MySQL sources top-level directory and build the cross-reference (-R is used to descend recursively into the directories, and -b builds the cross-references):
/home/as227057/dev-tools/mysql-5.1.25-rc" 24 $ cscope -Rb
Search for symbols, functions, etc:
$cscope` -R brings up a text based interface:
Find this C symbol: Find this global definition: Find functions called by this function: Find functions calling this function: Find this text string: Change this text string: Find this egrep pattern: Find this file: Find files #including this file: Find all function definitions: Find all symbol assignments:
Using the various options available you can navigate through the sources easily. Here are some links on 'cscope':



You missed an important step:
hit ctrl+D to exit
(I've just used 3 minutes of my life searching for that)
Posted by Francesco on August 29, 2008 at 01:58 PM IST #
Thanks for the 3 minutes :-) I am sure they were fruitful for you!
It would have been a nice addition, though.
Posted by Amit on August 29, 2008 at 02:08 PM IST #