cscope笔记

LNX=/home/jru/linux-2.4.18
cd /
find $LNX -path “$LNX/arch/*” ! -path “$LNX/arch/i386*” -prune -o -path “$LNX/include/asm-*” ! -path “$LNX/include/asm-i386*” -prune -o -path “$LNX/tmp*” -prune -o -path “$LNX/Documentation*” -prune -o -path “$LNX/scripts*” -prune -o -path “$LNX/drivers*” -prune -o -name “*.[chxsS]” -print >/home/jru/cscope/cscope.files

cscope -b -q -k
-b build the database without launching Cscope GUI
-q additional ‘inverted index’
-k ‘kernel’ mode, turn off the use of default include dir

export CSCOPE_DB=./cscope.out

vim -t symbol_name

See also
http://cscope.sourceforge.net/large_projects.html


相关文章

Speak Your Mind

If you want a pic to show with your comment, go get a gravatar!