|
|
The cscope browser builds a cross-reference symbol table for the functions, function calls, macros, and variables in designated source files. It then allows you to query that table about the locations of symbols. cscope presents a menu and asks you to choose the type of search you would like to perform. When cscope has completed this search, it prints a list of the lines on which it has found the item requested. You can then indicate which of these lines you want to examine. After you have requested a subset of the lines, cscope allows you to edit a line or to begin another search.
Throughout a cscope session, you have the option of returning to the menu from the editor to request a new search. There are a variety of single-character commands available for manipulating the menu.
Because the procedure you follow will depend on the task you select, there is no single set of instructions for using cscope. To show how this browser works, a tutorial is provided later in the chapter.