`

如何在cscope.out files中使用绝对路径

 
阅读更多

When importing cscope.out, you can supply the prefix, i.e.

:cscope add /path/to/cscope.out /path/to/src/code

Then your searches will turn up like:

Cscope Tag: foobar
    #   line  filename / context / line
    1     21 /path/to/src/code/foobar_file.c

分享到:
评论

相关推荐

    cscope 15.8b for windows

    2. **启动cscope**:在命令行中,进入包含`cscope.out`的目录,然后运行`cscope -d`启动cscope。 3. **查询操作**:cscope提供了丰富的查询选项,如: - 输入`1`查找函数定义。 - 输入`2`查找函数调用。 - 输入`...

    Emacs使用记录

    这将生成三个文件:cscope.out、cscope.in.out 和 cscope.po.out,其中 cscope.out 是基本的符号索引,后两个文件是使用"-q"选项生成的,可以加快 Cscope 的索引速度。 Cscope 参数 Cscope 提供了许多参数来控制...

    linux下使用 vim + cscope 查看代码

    在`Vim`中使用`Cscope`非常直观。首先,使用`:cscope add`命令添加数据库,然后使用`:cscope find`进行查找。`Vim`支持八种`Cscope`查询类型: 1. `s`: 查找C语言符号,如函数名、宏、枚举值等。 2. `g`: 查找函数...

    vim+ctags+cscope

    在 Vim 中使用 Cscope - **导入 Cscope 数据库**:在 Vim 中编辑文件时,可以使用 `:csadd` 命令来导入已有的 Cscope 数据库。例如,`:csadd /path/to/cscope.out`。 - **检查是否连接到数据库**:使用 `:css` ...

    打造C程序员专用vim

    **生成cscope.files文件:** 为了加快cscope的索引速度,可以创建一个包含所有源文件路径的文件`cscope.files`。可以通过以下命令生成: ```bash find . -name "*.c" -o -name "*.h" > cscope.files ``` **生成...

Global site tag (gtag.js) - Google Analytics