linux – 如何在搜索过程中使cscope显示完整的文件路径
发布时间:2020-05-23 08:38:51 所属栏目:Linux 来源:互联网
导读:当我使用cscope搜索C符号或全局定义时,它会显示文件名和行号.我想看到完整的文件路径,以便我可以跳转到我的arch特定文件.例如,在 Linux代码库上的cscope build上搜索__switch_to的全局定义时,我得到: Global definition: __switch_to File Line0 process.c 2
|
当我使用cscope搜索C符号或全局定义时,它会显示文件名和行号.我想看到完整的文件路径,以便我可以跳转到我的arch特定文件.例如,在 Linux代码库上的cscope build上搜索__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显示完整的文件路径? 解决方法使用args -pn运行cscope
使用cscope -p4运行并搜索__switch_to的全局定义 Global definition: __switch_to
File Line
0 arch/arm64/kernel/process.c 297 struct task_struct *__switch_to(struct task_struct *prev,1 ia64/include/asm/switch_to.h 44 #define __switch_to(prev,last) do {
2 arch/openrisc/kernel/process.c 202 struct task_struct *__switch_to(struct task_struct *old,3 arch/powerpc/kernel/process.c 400 struct task_struct *__switch_to(struct task_struct *prev,4 arch/sh/kernel/process_32.c 211 __switch_to(struct task_struct *prev,struct task_struct *next)
5 arch/um/kernel/process.c 80 void *__switch_to(struct task_struct *from,struct task_struct *to)
6 arch/x86/kernel/process_32.c 248 __switch_to(struct task_struct *prev_p,struct task_struct *next_p)
7 arch/x86/kernel/process_64.c 272 __switch_to(struct task_struct *prev_p,struct task_struct *next_p) (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- linux – 如何在VMWare ESXi中调整Fedora来宾VM的磁盘大小
- linux – 将应用程序/ HTTP服务安装到“/ srv”?
- 尝试通过SSH连接时“debug1:read_passphrase:无法打开/ d
- linux – 如何在向tar添加文件时指定任意前导路径?
- 在Linux上从ARM转换为* .hex到* .bin
- linux – 为什么root用户默认名为root?
- linux – 什么时候调用sem_unlink()?
- Linux Debian在init脚本中启动时运行命令
- 在linux上,我应该如何根据/ proc / mem中的信息计算可用内存
- osx – rsync在传输过程中无限期地突然挂起
