跳转(2)-cscope

主要参考 :

http://techtooltip.wordpress.com/2012/01/06/how-to-integrate-emacs-cscope-to-browse-linux-kernel-source-code/


安装 :

(1) 与emacs 集成的 安装.配置

可执行文件位置,emacs配置文件的修改

http://lifegoo.pluskid.org/wiki/EmacsCscope.html


(2) 生成 etags ( 独立于 (1) )

方法1:linux kernel 可以使用 makefile : make cscope

方法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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值