0

Cscope 在交互模式下有 11 个搜索输入字段。但是当我尝试在面向行的输出模式下使用它并Find all symbol assignments:使用 switch 指定字段-10时它不起作用。有任何想法吗?

谢谢。

4

2 回答 2

1

我也看到了一些奇怪的东西。

在终端,

cscope -d

给出以下选项

Find this C symbol:
Find this global definition:
Find functions called by this function:
Find functions calling this function:
Find this text string:
Change this text string:
Find this egrep pattern:
Find this file:
Find files #including this file:

但是,在 gvim 中使用我的 cscope 插件,

:cs help 

给出以下选项

find : Query for a pattern            (Usage: find c|d|e|f|g|i|s|t name)
   c: Find functions calling this function
   d: Find functions called by this function
   e: Find this egrep pattern
   f: Find this file
   g: Find this definition
   i: Find files #including this file
   s: Find this C symbol
   t: Find assignments to

“查找分配给”选项仅在第二个中可用。

因此,对于面向行的输出模式,最接近的似乎是“查找此文本字符串:”选项。可以这样做

cscope -d -L -4 <text>
于 2010-10-21T16:55:23.967 回答
0

分配选项是由 RedHat 补丁添加的,它不是原始 cscope 的一部分。似乎他们只修补了 ncurses 界面而没有更新相应的命令行选项。

于 2010-10-26T13:06:32.567 回答