global
安装
$ sudo apt install global生成数据库
$ make ARCH=arm gtags # 只生成arm的数据库
或
$ gtags # 不建议使用,默认会生成所有arch的数据库查询
Last updated
$ sudo apt install global$ make ARCH=arm gtags # 只生成arm的数据库
或
$ gtags # 不建议使用,默认会生成所有arch的数据库Last updated
$ global -x <funcName> # 查找函数定义
$ global -rx <funcName> # 查找函数调用set cscopeprg=gtags-cscope
if filereadable("GTAGS")
cs add GTAGS
else
let gtags_file=findfile("GTAGS", ".;")
if !empty(gtags_file) && filereadable(gtags_file)
exe "cs add" gtags_file
endif
endif
nmap <C-@>g :cs find g <C-R>=expand("<cword>")<CR><CR> " Find function definition
nmap <C-@>c :cs find c <C-R>=expand("<cword>")<CR><CR> " Find function call