开发者

cscope menu without recreating the database?

开发者 https://www.devze.com 2022-12-12 06:46 出处:网络
I usually create the cscope database wi开发者_开发知识库th the command, cscope -bqRv But at times, I just want to access the cscope menu usually got by running,

I usually create the cscope database wi开发者_开发知识库th the command,

cscope -bqRv

But at times, I just want to access the cscope menu usually got by running,

cscope -R

This needlessly recreates the cscope database, something, I don't always need. Is there anyway to get to the cscope menu without recreating the database ?


I found the answer myself! It was there on the cscope main page. (under "Using Cscope on large projects") here - http://cscope.sourceforge.net/large_projects.html

After creating the database I can run this,

cscope -d

and it brings up the cscope menu !!


The man page on Fedora says:

cscope builds the symbol cross-reference the first time it is used on the source files for the program being browsed. On a subsequent invocation, cscope rebuilds the cross-reference only if a source file has changed or the list of source files is different. When the cross-reference is rebuilt, the data for the unchanged files are copied from the old cross-reference, which makes rebuilding faster than the initial build.

Maybe if you don't give any parameters, it won't rebuild the database. Though it does look as though it will check to see if it should, based on any files being changed.

0

精彩评论

暂无评论...
验证码 换一张
取 消