【发布时间】:2012-12-05 09:46:43
【问题描述】:
当我使用 cscope 搜索 C 符号或全局定义时,它会显示文件名和行号。我想查看完整的文件路径,以便我可以跳转到我的拱形特定文件。例如,在基于 Linux 代码库构建的 cscope 上搜索 __switch_to 的全局定义时,我得到:
Global definition: __switch_to
File Line
0 process.c 297 struct task_struct *__switch_to(struct task_struct *prev,
1 switch_to.h 44 #define __switch_to(prev,next,last) do { \
2 process.c 202 struct task_struct *__switch_to(struct task_struct *old,
3 process.c 400 struct task_struct *__switch_to(struct task_struct *prev,
4 process_32.c 211 __switch_to(struct task_struct *prev, struct task_struct *next)
5 process.c 80 void *__switch_to(struct task_struct *from, struct task_struct *to)
6 process_32.c 248 __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
7 process_64.c 272 __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
现在,每个arch 的文件process.c 都不同。如何让cscope显示完整的文件路径?
【问题讨论】:
标签: linux search ide ctags cscope