Generate Call-Tree from cscope database

osgx picture osgx · Feb 1, 2010 · Viewed 9.8k times · Source

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 from" sub-trees from any point.

So tool must be interactive and easy to patch.

PS: I want use cscope database, because it is already used in project and generating of it is rather fast. I use vim editor and have X windows system.

There is cbrowser program on sourceforge, but its call-tree (callgraph) functionality is broken.

Answer

user406948 picture user406948 · Jul 30, 2010

if you want to do it using vim here is a way:

http://www.vim.org/scripts/script.php?script_id=2368