从cscope的数据库中生成调用树 [英] Generate Call-Tree from cscope database
问题描述
我要生成完全和部分在Linux的C和C ++项目cscope的数据库调用树。
I want to generate Full and Partially Call Trees from cscope database of c and c++ projects in Linux.
该项目是相当大的,因此它可以是不易与项目的全部调用树工作,所以我想限制调用树代与函数名类似grep的过滤器。
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:
我想使用cscope数据库,因为它是在项目已经用完了,它发生是相当快的。我使用vim编辑器,并有X窗口系统。
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.
有是在SourceForge上cbrowser程序,但它的调用树(调用图)的功能被打破了。
There is cbrowser program on sourceforge, but its call-tree (callgraph) functionality is broken.
推荐答案
如果你想这样做使用vim在这里是一种方式:
if you want to do it using vim here is a way:
http://www.vim.org/scripts/script.php? SCRIPT_ID = 2368
这篇关于从cscope的数据库中生成调用树的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!