cscope

ctags best practicies

I'm working on +1M LOC C/C++ project on Solaris (remote, via VNC or SSH). I have a daily updated copy of source code on my local machine too (Windows, just for browsing code). I use VIM and ctags combo (on both Solaris and Windows) but I'm not happy with results / speed. What settings for ctags would you recommend? There are a lot of op...

non-gui emacs with cscope

So, i'm running emacs over a crappy ssh connection and I have it set up to use cscope. I can not use X because of this...hence I'm running emacs inside putty. However, when I search for something with cscope and it opens up the other buffer, I can not follow the links where cscope tells me which file and line number the item is on. When ...

OSX: Environment variables pointing to application bundles?

I want cscope to open files in MacVim instead of vim, so I'm trying to have the path to MacVim as the Value of the EDITOR environment variable which is used by cscope: $ export EDITOR=/Applications/MacVim.app/Contents/MacOS/MacVim If I'm now trying to edit a file from within ctags, it won't work and throws this error message: $ MacVim...

How to setup cscope with aquamacs on MacOS?

Can you please tell me how can I setup cscope with aquamacs on MacOS? I have followed a link from Google saying how to build a cscope database for my source code. But how can I invoke cscope with aquamacs? Thank you. ...

Arrow keys does not work in cscope in Terminal on Macos

Hi, I am running cscope in Terminal on Macos by using 'cscope -d'. But the arrow keys (UP/DOWN arrow) do not work, as i need to navigate from 1 query to another. Can you please tell me how can I fix that? Thank you. ...

cscope or ctags why choose one over the other?

I primarily use vim / gvim as an editor and am looking at using a combination of lxr ( the Linux Cross Reference ) and either cscope or ctags for exploring the kernel source. However I haven't ever used either cscope or ctags and would like to hear why one might choose one over the other taking into consideration my use of vim as a prim...

Wrapping a quoted function in emacs-lisp

I use the cscope emacs extension (and find it quite useful). Unfortunately, it's default behaviour of only searching the current directory and below is insufficient for me, so I use the cscope-set-initial-directory to the directory of my choice. Unfortunately this has become insufficient for me as well because I have multiple different...

How to tell cscope not to dereference symbolic links?

How do I tell cscope to ignore symbolic links when it is recursively traversing a directory to index source code files? I do something like this: find . \( -name "*".hh -or -name "*".h -or -name "*".hxx -or -name "*".H -or -name "*".C -or -name "*".cxx -or -name "*".c -or -name "*".cc \) -type f -print > cscope.files cscope -qb Ther...

How can I solve this cscope problem?

I always use vim+cscope to check sysmbol definition, and I find cscope always take declaration like: struct sk_buff; as a defintiion, which make vim always show a long list files to choose, always drive me crazy. Indeed, I only want the definition: struct sk_buff { ... }; Seems ctags can resolve this problem, but can cscope handl...

How to make Emacs always open .c files in the left windows while .h in the right?

I always open three windows when writing C code like this: | | 2 1 |_____ | | 3 | Window 1 is used for code writing, window 2 is used for cscope, and window 3 is used for header file quick reference. When I press in cscope window to show source, I want Emacs to display .c files always in wi...

Cscope egrep speedup

I use cscope in vim to search for stuff in a large codebase. I find the "cs f e" option too slow. Anyway tips speed it up. I build my cscope database using cscope -bq ...

scope vs ctags in terms of features

I am a big fan of ctags Hence I am wondering if I have cscope, will I benefit more there two programs. Seems like the latter has the same features as ctags, namely, facilitating the finding of symbols. What are the features scope offers that can further increase my productivity with VIM? Thanks ...

cscope regular expression question

egrep "->tx(" *.c works fine on command line but not from within "cscope -d" why ? ...

cscope menu without recreating the database ?

I usually create the cscope database with the command, cscope -bqRv But at times, I just want to access the cscope menu usually got by running, cscope -R This needlessly recreates the cscope database, something, I don't always need. Is there anyway to get to the cscope menu without recreating the database ? ...

Single user mode in mac

I want to use the mac in single user mode. I want to use ctags and cscope in that mode. Could anyone help me with the setups required for this. Thank you. All i know is how to go to the single user mode so please tell me in a simple and easy to understand method. My mac is version 10.6(snow leopard) ...

Can anyone tell me where to get Vim 7.2 with cscope support ?

I wanted to use cscope enabled vim - unfortuantely , the binaries at work are not compiled with cscope support , and when I tried building from src , I'm getting a lot of errors due to proper dev packages not being installed. So , does anyone have a link where I can a precompiled binary with cscope support ? Btw , I'm using linux. ...

Generate Call-Tree from cscope database

I want to generate Full and Partially Call Trees from cscope database of c and c++ projects in Linux. The project is rather large, so it can be not easy to work with the full call tree of project, so I want to limit call tree generation with grep-like filter of function names. And also I want to be able to build "called by" and "called...

Cscope problem - Search results invisible

Hi, I am facing a weird problem. While browsing the C code of a project, the "Find this text string:" output results in a positive match, but the text is invisible [only the search results are invisible and not the menu]. The cursor moves up and down the list of results. Some of the lines are visible sometimes as you can see in the scre...

What cscope reference card do you use?

What is the standard/best reference card for cscope shortcuts/usage that I can print for quick reference? ...

Does cscope has search history or search query stack feature?

I usually dig in the c source code with cscope from method to method more than 4-5 level and I have to step between the methods back and forth. How can I see the search history in cscope so I don't have to remember the previous method name. or it will be better if it's a stack. ...