cscope

http://sourceforge.net/p/cscope/bugs/247/

buffer read only? cx cq

Here is a simple patch which re-enables cscope to work with symlinks. Really you were already 99% of the way there to a fix.

IMHO, this should be a command line option (-l) to enable including symlinks. There are many projects which use symlinks and it‘s perfectly valid in many cases. It‘s been messing me up for years trying to use the Cavium SDKs.

Here‘s the patch (this is against 15.8)

--- dir.c.orig 2010-06-28 19:16:50.000000000 -0300
+++ dir.c 2012-08-30 21:56:44.047742152 -0300
@@ -652,7 +652,7 @@ accessible_file(char *file)
struct stat stats;

if (lstat(file, &stats) == 0
- && S_ISREG(stats.st_mode)) {
+ && (S_ISREG(stats.st_mode) || S_ISLNK(stats.st_mode))) {
return YES;
}
}

时间: 2024-08-07 00:17:47

cscope的相关文章

Linux cscope命令

一.简介         Cscope 是一款开源免费的 C/C++浏览工具,自带一个基于文本的用户界面,通过cscope可以很方便地找到某个函数或变量的定义位置.被调用的位置等信息.Cscope对 C /C++支持较好,也可以自己定制来支持Java和Perl.Python等脚本语言.Vim和gvim都提供了cscope接口,通过适当的配置,可以在Unix/Linux下实现变量.函数.文件等之间跳转,就像Windows下的Source Insight一样灵活易用.   二.安装 1)yum安装

MAC OSX 下安装Cscope

续前文,搞定CTAGS之后,需要被搞定的是cscope,依旧是上网拖一把,具体过程如下 #1 下载cscope最新版本 http://cscope.sourceforge.net/#downloads #2 解压缩 tar xvf cscope-15.8b.tar #3 修订cscope的源文件 vim src/constants.h 在111行后添加 //#undef TERMINFO #define TERMINFO 1 #4  安装 ./configure && make all &

vim插件cscope工具的编译、安装与使用

1. 下载:http://download.chinaunix.net/download.php?id=3536&ResourceID=1900 2. 编译 # ./configure #make make 失败了: [email protected]:~/.vim/cscope-15.5# make make  all-recursive make[1]: Entering directory '/root/.vim/cscope-15.5' Making all in doc make[2]

使用 vim + ctags + cscope + taglist 阅读源码

转自:http://my.oschina.net/u/554995/blog/59927 最近,准备跟学长一起往 linux kernel 的门里瞧瞧里面的世界,虽然我们知道门就在那,但我们还得找到合适的角度才会看得更舒服,对吧^_^ . 阅读源码的工具有很多,而且如今的集成开发环境(IDE)也很强大,但对于经常使用vim编辑器的程序员来说,对vim的强大绝对是“不抛弃,不放弃”的,况且我们只要安装一些插件配合vim的工作一样能达到IDE的效果,好了,废话少说.浏览了很多有关的网页资源后,发现有

VIM+ctags+cscope用法

使用vim + cscope/ctags,就能够实现Source Insight的功能,可以很方便地查看分析源代码. 关键词: vim, cscope, ctags, tags 1. 查看vim是否支持cscope $ vim --version | grep cscope 2. 编译支持cscope的VIM(--enable-cscope) # USE="bash-completion cscope nls perl python -acl -gpm -minimal -ruby -vim-p

Cscope安装与配置

1. 介绍 Cscope是类似于ctags一样的工具,但可认为他是ctags的增强版. 2. 安装 sudo apt-get install cscope 通过源码安装,参照http://blog.csdn.net/hpwzd/article/details/7405401 3. 配置 在源码所在目录下,执行cscope -Rbkq 会生成三个文件:cscope.out/csope.in.out/cscope.po.out 在Vimrc中添加如下一段话,其中/usr/bin/cscope为可执行

sublime text2+Ctags+Cscope替代Source Insight

说明:以Windows系统下查看C++代码为例.因为Source Insight(以下简称SI)是收费软件,且界面丑陋,所以考虑其替代方案,发现Sublime Text3(以下简称ST3) + Ctags + Cscope 可以取得很好的效果.使用ST3基本可以实现全键盘操作,同时它又没有学习Vim的陡峭曲线. 安装方法: 1. 安装Package Control for ST3 2. 安装Ctags插件 (1) 通过 Preference -> Package Control -> Inst

ubuntu cscope

add the following text to .vimrc or .gvimrc: if has("cscope")    set csprg=/usr/bin/cscope    set csto=0    set cst    set nocsverb    " add any database in current directory    if filereadable("cscope.out")        cs add cscope.o

Vim 中使用cscope

使用cscope碰到的问题 1. E568: duplicate cscope database not added 根据提示,cscope数据库重复添加了,我使用的是vim7.2版本,而这个版本在已经支持cscope,并在它的配置文件中开启了cscope功能 $ vi /etc/vimrc 32 if has("cscope") && filereadable("/usr/bin/cscope") 33    set csprg=/usr/bin/