Try the following steps:
1. Create cscope.files
find /my/src -name '*.c' -o -name '*.h' > /my/db/cscope.files
2. Run cscope for the generated result
cscope -i /my/db/cscope.files
3. Export to environment variable
CSCOPE_DB=/my/db/cscope.out; export CSCOPE_DB
source
share