跳轉(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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章