天天看点

Debian配置cscope

1.安装cscope

sudo apt-get install cscope      

2.配置Emacs

package-instal xcscope      

3.修改.emacs文件

;;xcscope
(require 'xcscope)
(cscope-setup)
;; 打开cscope时不更新,提高索引速度
(setq cscope-do-not-update-database t)      

4.在脚本目录(linux内核)建立database file

cscope -b -q -k      

5.Emacs打开脚本并查询

Debian配置cscope

6.测试成功,返回需要1.38s

Debian配置cscope

7.总结:现在是只知其然而不知其所以然,待后续研究cscope后再做补充吧

继续阅读