http://cscope.sourceforge.net
/usr/local/bin/mkcsope.sh (chmod 755)
--
find . \( -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.s' -o -name '*.S' \) -print > cscope.files
/usr/local/bin/mkcsope.sh (chmod 755)
--
find . \( -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.s' -o -name '*.S' \) -print > cscope.files
cscope -i cscope.files
--
vi 추가------
if filereadable("./cscope.out")
cs add cscope.out
else
cs add /usr/src/linux/cscope.out
endif
set csverb
map <F2> :Tlist<cr>
map <F3> <c-w><c-w>
map <s-f> <c-f>
map <s-b> <c-b>
------------
사용
ex모드
-> cs find [질의종류] [심볼]
[질의종류]
s - 심볼이 정의와 사용된 곳을 찾음
g - 심볼의 정의를 찾음
d - 심볼이 함수일 경우 그 함수 안에서 호출되는 함수를 찾음
c - 심볼이 함수일 경우 그 함수를 호출하는 곳을 찾음
--
vi 추가------
if filereadable("./cscope.out")
cs add cscope.out
else
cs add /usr/src/linux/cscope.out
endif
set csverb
map <F2> :Tlist<cr>
map <F3> <c-w><c-w>
map <s-f> <c-f>
map <s-b> <c-b>
------------
사용
ex모드
-> cs find [질의종류] [심볼]
[질의종류]
s - 심볼이 정의와 사용된 곳을 찾음
g - 심볼의 정의를 찾음
d - 심볼이 함수일 경우 그 함수 안에서 호출되는 함수를 찾음
c - 심볼이 함수일 경우 그 함수를 호출하는 곳을 찾음
•단축키
ctrl+] / ctrl+t
ctrl+] / ctrl+t
–