![]() If you don’t want to use Cscope’s GUI, but want to query its database from another application instead (as described below), use the -b option. You can use the -R option for Cscope to scan subdirectories recursively. When you invoke Cscope, it scans source files in the current directory and stores the information it collects in its internal database. Cscope comes with an ncurses-based GUI, but it also supports a command-line interface to communicate with other application that can be used as front ends, including major editors such as Emacs and Vim. Although Cscope was originally intended only for use with C code, it actually works well with languages like C++ and Java. With them, you can save time by doing fast, targeted searches instead of grepping through source files by hand.Ĭscope is a popular utility, and most modern distributions include it. They help you find symbol definitions, determine where specific functions are used, determine which functions are called by other given functions, and search for strings and patterns throughout the code base. Cscope and SilentBob are two tools that can help you analyze unfamiliar source code. You can use tags to browse for definitions, but it’s hard to get an overall picture by just looking through every definition one by one. When you start learning the source code of an unfamiliar project, you don’t have the knowledge of its structure or the meaning of specific functions, classes, and units in the project. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |