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
3
votes
3 answers

Does cscope support history list recording?

I use < C-\ >C to get the callers of one function, then I can press one number to jump to one caller. But if I want to jump to another caller, I had to press < C-T> to jump back, and press < C-\ >C again to get the caller list. Does cscope support…
river
  • 694
  • 6
  • 22
3
votes
4 answers

Tool to list callers of a function in C?

Background: In a particular project there are about couple of thousand functions in more than hundred files. The functions are divided to reside in two banks of code memory - fast_mem and slow_mem. But now, since the fast_mem area is limited, its…
Shrinidhi
  • 670
  • 1
  • 8
  • 18
3
votes
3 answers

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.
yinglcs
  • 2,891
  • 6
  • 26
  • 20
3
votes
1 answer

cscope : go back in results window.

How can i go back in the cscope results window. Pressing space takes me to the next page of results ,but what is the key to previous page of results?
Sethu
  • 556
  • 1
  • 7
  • 18
3
votes
3 answers

ctags: prevent jump to first result for ctrl + ]

I wanted to prevent jumping to the first result without user intervention upon ctrl +] (or left click) in vim. In effect, when I click (ctrl +]) on an identifier, it should list all the occurance (like tag search) and should jump to the selection…
bsr
  • 57,282
  • 86
  • 216
  • 316
3
votes
2 answers

Forcing gvim to open all files in the same window (using gvim with cscope)

I was wondering if anyone knew of way of making gvim to default to the behavior of opening all files opened by gvim into the same gvim instance. I know there are parameters that could be sent to it by command line to force this, but I was wondering…
chamakits
  • 1,865
  • 1
  • 17
  • 26
3
votes
1 answer

Code browsing: How to find out which function a function pointer is pointing to?

I'm having a huge C code base to browse and understand. I'm doing it using cscope on vim. But I'm almost clueless when it comes to function pointers as to where they are pointing to. Is there a easy way to find out what callbacks are registered? Can…
3
votes
1 answer

Update cscope db and ctags for just modified files in large projects

Say I have around 100000 *.c *.h files in a c project. I am listing it into a cscope.files using find command and then creating the cscope.out and tags files from them as below. 1. find `pwd` -type f \( -name "*.c" -o -name "*.h" \) >…
ypp
  • 141
  • 10
3
votes
6 answers

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…
robarson
  • 433
  • 4
  • 12
3
votes
1 answer

How can I run cscope to search source code in an arbitrary location only and write the cross-reference files in another arbitrary location?

This is how my source code directory looks like. learner@centos:~/lab$ tree . +-- cscope.out +-- src ¦   +-- bar ¦   ¦   +-- bar.c ¦   ¦   +-- baz ¦   ¦   +-- baz.c ¦   +-- foo.c ¦   +-- qux ¦   +-- qux.c +-- work I want to create…
Lone Learner
  • 18,088
  • 20
  • 102
  • 200
3
votes
3 answers

Usage of cscope & ctags in FreeBSD

I tend to use cscope and ctags on Linux. I just run ctags -R and cscope -R in my source directory to start browsing the source code. Looks like it is different in FreeBSD. Anybody please post the steps to acheive the same in FreeBSD. I am able to…
3
votes
1 answer

vim using "cscope find s" command and open result in new tab instead of window

I use cscope command :cs find s someFunction and i see the long list with this function appearance, I find that I'm interested in list and open it, vim opens a file in a new window, I want to open file in a new tab. I found several similar…
Ivan Ivanovich
  • 880
  • 1
  • 6
  • 15
3
votes
2 answers

How to use cscope in Visual Studio?

I am working with Visual Studio (2008 edition) for the first time. Used to programming in a Unix environment, I have become quite used to cscope and vim. For my current project, I really need cscope. I was wondering if there is any way I could use…
rahulthewall
  • 765
  • 1
  • 13
  • 34
3
votes
1 answer

Can't use CTRL- with Cscope plugin in gvim (windows)

Configuration Windows 7 Service Pack 1 (64-bit) VIM 7.4 (2013 Aug 10), 32-Bit GUI version cscope_macros.vim plugin from www.vim.org, version 2.0.0 The problem The plugin maps several cscope find functions to open in horizontal or vertical splits…
Simon Peverett
  • 4,128
  • 3
  • 32
  • 37
3
votes
2 answers

cscope: -c or -T mismatch between command line and old symbol database

I'm trying to create tags for *.c, *.x and *.h files. These are the following commands which I executed. find -name *.c -o -name *.x -o -name *.h > cscope.files cscope -bkqc cscope.files Till here everything is ok. But…
Adarsh
  • 883
  • 7
  • 18