1. 首先进入msys-shell,设置系统变量HOME
2. 运行生成cscope.files,有两个方法:
a)find -iname '*.[ch]' -o -iname '*.[ch]pp' > cscope.files
b)下载 cscope-indexer脚本
http://code.google.com/p/elisp/source/browse/trunk/emacs/cscope/cscope-15.7-win/cscope-indexer?r=68
运行cscope-indexer -r -v -i cscope.files -f cscope.out .
3. 使用快捷键
- Index files: C-c s I (这个在windows下不能用)
- Find global definition: C-c s d
- Find symbol definition: C-c s s
- Find this file: C-c s f
- Find functions calling this function: C-c s c
- Find functions called by this function: C-c s C
- Find this pattern: C-c s e
- Find this text string: C-c s t
- Find files including this file: C-c s i