奇怪的 cscope 命令行限制

发布于 2024-09-28 04:17:30 字数 150 浏览 6 评论 0原文

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

谢谢。

Cscope has eleven search input fields in interactive mode. But when I try to use it in line-oriented output mode and specify Find all symbol assignments: field using -10 switch it does not work. Any ideas?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

太阳男子 2024-10-05 04:17:30

我也看到了一些小小的奇怪之处。

在终端中,

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>

I also see some little strange-ness.

In terminal,

cscope -d

gives the following options

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:

But, using my cscope plugin in gvim,

:cs help 

gives the following options

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

The "Find assignments to" option is available only in the second.

So, for line-oriented output mode, the closest seems to be the "Find this text string:" option. That can be done as

cscope -d -L -4 <text>
那小子欠揍 2024-10-05 04:17:30

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

The assignment option was added by RedHat patch, it is not part of the original cscope. Seems like they patched only ncurses interface without updating the corresponding command line options.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文