Questions tagged [cscope]

Cscope is a code searching application originally written for searching C code bases. Cscope is useful for searching many other code bases as well: C++, Java, Python, etc.

Cscope home page

266 questions
0
votes
0 answers

Cscope output window shows only one line

I installed Cscope thru Vundle, and I didn't do any configuration. my problem is After searching with sccope find, I got only one line output window at the bottom, and automatiically move the first matching. (1 of 2): <> int…
Sungguk Lim
  • 6,109
  • 7
  • 43
  • 63
0
votes
0 answers

What is the difference between cscope.out & ctags file

I am aware of the difference between the two tools, cscope & ctags & when to use which one of them. What I am trying to ask is about their database file. By default, cscope creates cscope.out as its database file, whereas ctags creates tags in the…
anishsane
  • 20,270
  • 5
  • 40
  • 73
0
votes
1 answer

cscope and ctag cannot find a function definition which is located in class declaration

I use vim + ctag + cscope when I browse C++ source code. When I want to look up a definition of any function cscope and/or ctag produce a list of cadidates which seem to be the one. But when I try this for a function which is defined in a class…
Jumogehn
  • 1,102
  • 3
  • 11
  • 29
0
votes
1 answer

How to return to the previous codes after using the cscope to, like, find a definition of a function in Emacs?

How to return to the previous position after using the cscope to, like, find a definition of a function in Emacs? Since I wanna continue reading the following codes after I get to know the definitions of some functions.
injoy
  • 3,993
  • 10
  • 40
  • 69
0
votes
0 answers

cscope-like tool to find lvalue/rvalue instances

I am looking for something that will parse a body of C code and, like cscope, let me search for symbols. In particular, I want to be able to get a list that says something like "in these places, foobar is used as an lvalue, and in these places,…
leif
  • 1,987
  • 4
  • 19
  • 22
0
votes
1 answer

use cscope as semanticdb database back end in emacs

everone, I use cscope as semanticdb back end in emacs, it hints me that "Version of CScope is 15.5. Need at least 16.0",but the newest version of CScope is 15.7a, what's the problem?
cofol1986
  • 25
  • 1
  • 6
0
votes
1 answer

cscope for Java and Cpp and C

I did this for cscope to add Java capability find ./ -name *.java > cscope.files Yet when I do this and suppose I want to look for a symbol , I get all references to this symbol in java only. I also want it to display the references in the C…
-1
votes
1 answer

Vim c++ indexing that differentiates between symbols with same names

I've been trying out vim with exuberant tags and cscope but when listing the usages of a variable it also lists variables with the same name that aren't really the symbol I'm looking at. For example if I want to jump to the declaration or other…
Jorge
  • 9
  • 2
-1
votes
1 answer

Why is autoload cscope.out enabled only after opening vim for the second time

What I want to do is to create a new cscope database based on different file types every time I open vim, and then automatically load cscope.out I edit my .vimrc, based on this article: how to auto load cscope.out in vim But it only autoloads…
theabc50111
  • 421
  • 7
  • 16
-1
votes
1 answer

Cannot use cscope key-binding on Emacs due to syntactic analysis

I have a problem with using cscope on Emacs. When I pressed "C-c C-s {g,s,..}" to use cscope, the key binding is blocked by syntactic analysis from CC mode. The message printed out like(When I press C-c C-s) : Syntactic analysis: ((topmost-intro…
chaoxifer
  • 103
  • 1
  • 1
  • 7
-1
votes
1 answer

Insert a printf inside each function call with vim

I am debugging C code for embedded systems (backtrace is no option) and I have this repetitive task which consists in putting a printf for each function call to find the real caller of my function in a specific time of code execution. I am using…
HobbitOfShire
  • 2,144
  • 5
  • 24
  • 41
1 2 3
17
18