Using cscope and cbrowser221
Use the manual pages of
cscope
to view a complete list of options. Its web site is also a
good reference for updates and new features.
The
cbrowser
is a GUI interface to
cscope
and can be downloaded from its web site,
http://cbrowser.sourceforge.net.
At the time of writing this book, version 0.8 of this utility is available. When you invoke
cbrowser
, it displays its initial window where you can select a
cscope
symbol reference file
and use the same type of queries as are available on
cscope
text window. The
cbrowser
win-
dow is shown in Figure 7-3.
To use a particular
cscope
symbol file, use the “Selected Database” drop-down menu in
the GUI. Click the “Symbols” button to pull down a menu of different options used with
cscope
. The box next to this button is used to type in the symbol for which you want to search.
When you press the “Submit” button after typing in the symbol name,
cbrowser
displays a list
of files where this symbol is used or defined as shown in Figure 7-3. An additional benefit of
using
cbrowser
is that the bottom part of the window also shows the contents of the selected
file. You can use cursor keys to select a different file. You can also edit these files by using
options in the “File” menu. You can use syntax highlighting and other helping tools with
cbrowser
using menus.
Table7-3 Options used with
cscope
OptionDescription
-b
Build only the cross-reference file
-C
Ignore case when searching
-f reffile
Use reffile as reference file instead of default
cscope.out
reference file. This is
useful when you create a global reference file for the entire source code tree.
-R
Recursively search source code tree for input files
Next Page >>
<< Previous Page
Back to the Table of Contents