ChinaUnix.net
相关文章推荐:

cscope 关闭折叠

目前就只能用这个鸟东西了,kscope搞不出来。。。。。 首先在目录下建立cscope索引文件 find -name '*.c' > cscope.file cscope -Rbkq 这个命令会生成三个文件:cscope.out, cscope.in.out, cscope.po.out。 其中cscope.out是基本的符号索引,后两个文件是使用"-q"选项生成的,可以加快cscope的索引速度。 上面所用到的命令参数,含义如下: -R: 在生成索引文件时,搜索子目录树中的代码 -b: 只生成索引文件,不进入cscop...

by iSUNnet - Linux文档专区 - 2009-10-02 15:55:49 阅读(775) 回复(0)

相关讨论

This is my first works, i want to configure cscope in my box, and use it to browse source code. you can follow the below steps if have the some idea with me. step 1: because i have installed cscope in my box, so if you haven't , please first google and then down it. step 2: cd to the source code directory, then execute below command: find $(pwd) -name "*.[ch]" >cs...

by jazeltq - Linux文档专区 - 2009-06-04 11:26:22 阅读(966) 回复(0)

内核源码中有自带的make TAGS, make tags, and make cscope,这样生成以后用cscope可以很方便的浏览源码, 可是怎么用在浏览其他源码方面亚,谢谢!

by jazeltq - 内核源码 - 2009-06-04 17:12:03 阅读(1291) 回复(8)

使用vim + cscope/ctags,就可以实现SourceInsight的功能,以后可以不再用盗版SouceInsight读代码了。 按 照vim里cscope的参考手册(在vim中执行":help cscope"命令),把cscope功能加到.vimrc里后(需要你的vim在编译时选择了"--enable-cscope"选项,否则你需要重新 编译vim),配置就算完成了。然后用下面的命令生成代码的符号索引文件: cscope -Rbkq 这个命令会生成三个文件:cscope.out, cscope.in.out, cscope.po.out。 其...

by shappen - Linux文档专区 - 2007-11-22 17:00:53 阅读(765) 回复(0)

本帖最后由 yshihyu 于 2011-11-13 00:35 编辑 请问一下如果代码变动是不是只能重新再执行cscope & ctags 因为有时候边trace code ,也要边修改代码, 有什么办法让他更改代码后,再自动重新cscope & ctags分析 像 source insight 修改代码后能再自动分析出来 谢谢

by yshihyu - C/C++ - 2011-11-14 09:28:55 阅读(2060) 回复(3)

首先 vim --version | grep cscope,看看vim是否支持cscope,如果不支持需要重新安装vim。最简单的是在./configure 后加上-enable-cscope,当然可以在Makefile文件(./src/Makefile)中修改(把原来的注释去掉),这是最根本的: 1. vim的准备 首先 vim --version | grep cscope,看看vim是否支持cscope,如果不支持需要重新安装vim。最简单的是在./configure 后加上-enable-cscope,当然可以在...

by xinly_chen - Linux文档专区 - 2009-08-12 10:53:50 阅读(1088) 回复(0)

1. http://docs.sun.com/source/806-3567/cscope.html Chapter 9 cscope: Interactively Examining a C Program 2. http://people.upsdn.net/tutorials/vim/if_cscop.html http://vimcdoc.sourceforge.net/doc/if_cscop.html#cscope-intro *if_cscop.txt* For Vim version 6.4. 最近更新:2006年2月 VIM REFERENCE MANUAL by Andy Kahn 译者:lang2 http://vimcdoc.sf.net ...

by zqy2000zqy - Linux文档专区 - 2006-07-07 15:57:35 阅读(1101) 回复(0)

我刚开始用emacs+cscope,现在有个小问题: 一个.c文件里用到了一个libc中定义的结构,我想看该结构的定义,如果在这个.c文件中#include该结构所在的头文件,cscope就能自动跳到那个结构定义处,挺好。但是如果我不知道该结构定义在哪个头文件里怎么办?能否指定一些database directory让cscope自动去那里找?

by hlh771 - C/C++ - 2004-09-18 15:33:43 阅读(757) 回复(0)

在安装vim和cscope的情况下,在读C代码时,使用ctrl + ]自动跳转,查找函数定义或者变量定义处时,跳转成功,请教如何返回刚才正在阅读的代码。

by 4059056 - Linux环境编程 - 2014-03-19 13:08:30 阅读(758) 回复(3)

vimrc中配置如下,每次用快捷键时总提示E560: Usage: cs[cope] find c|d|e|f|g|i|s|t name ,请问哪里配置有误啊 nmap s :cs find s=expand("") nmap g :cs find g=expand("") nmap c :cs find c=expand("") nmap t :cs find t=expand("") nmap e :cs find e=expand("") nmap f :cs fin...

by ymc4444 - C/C++ - 2013-12-02 08:55:07 阅读(1089) 回复(0)

不知道发在这里是不是合适的地方,如有不妥,还请说明,呵呵 是这样的,是用tmux在远程服务器上工作,vim看代码,但是有时ctrl+] 会输出很多条,比如100条, 现在的问题是,怎样才能在tmux的search mode中对这些输出进行搜索。 在gnu screen中,你按空格,把所有的项目都列出来后,可以在search mode中对所有的条目进行搜索的,但是tmux中好像只能搜索显示出来的那一部分, 请问有人知道怎么解决吗? 谢谢。

by alexandnpu - C/C++ - 2013-11-01 11:54:35 阅读(2380) 回复(5)