主要參考 :
安裝 :
(1) 與emacs 集成的 安裝.配置
可執行文件位置,emacs配置文件的修改
http://lifegoo.pluskid.org/wiki/EmacsCscope.html
(2) 生成 etags ( 獨立於 (1) )
方法2:切換到 src 的目錄 : cscope -b -q -k -R
生成 ==> cscope.files
使用 :
(1) emacs 初始化 etags
M-x cscope-set-initial-directory
(2) 使用
常用指令
i.
M-x cscope-find-this-symbol
ii. 其他
Misc:
1. 自動更新數據庫 : http://www.emacswiki.org/emacs/CScopeAndEmacs
禁止更新:
(setq cscope-do-not-update-database t)
By default, xcscope.el
does
automatic indexing by use of a Bash script (cscope-indexer
).
As Windows lacks Bash support, automatic indexing is here disabled (although the MSYS project does include a sh.exe
executable
which can run such scripts). To index manually and recursively, in the uppermost directory run
cscope -bR
The -b
flag tells cscope
to
just build the database and then exit. Otherwise, cscope
is
terminated by Ctrl-D