1. 安装 cscope,
http://cscope.sourceforge.net/
到这里下载cscope, 最新版本为 15.6.
如果你使用 debian 或者 ubuntu,直接 sudo apt-get install cscope就可以了
2. 安装 xcscope.el
把 cscope 附带的 xcscope.el 文件放到你的 emacs的 load-path 下,在 ~/.emacs 中增加:
(require 'xcscope)
3. 生成 project 文件列表,可以用如下命令完成。例如kernel代码,找出所以 .h, .c, .S文件
find -type f | grep -E '\.[chS] 本文作者: