This is my first works, i want to configure cscope in my box, and use it to browse source code. you can follow the below steps if have the some idea with me.
step 1:
because i have installed cscope in my box, so if you haven't , please first google and then down it.
step 2:
cd to the source code directory, then execute below command:
find $(pwd) -name "*.[ch]" >cscope.files
if you want to cscope cpp files, you should do like this
find $(pwd) -or -name "*.c" -or -name "*.cpp" -or -name "*.h"
> cscope.files
step 3:
built the cscope database:
cscope -Rbkq
step 4:
man cscope and learn the command about cscope
step 5:
other things,there are some tricks in the cscopes's home page.
if you want to learn more do it yourself.
阅读(662) | 评论(0) | 转发(0) |