[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference smurf::buildhelp

Title:USG buildhelp questions/answers
Moderator:SMURF::FILTER
Created:Mon Apr 26 1993
Last Modified:Mon Jan 20 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2763
Total number of notes:5802

1778.0. "How to setup for cscope?" by AOSG::FILTER (Automatic Posting Software - mail to flume::puck) Wed Aug 30 1995 11:31

Date Of Receipt: 	30-AUG-1995 10:15:16.97
From: 	SMURF::WASTED::tmark "TIM MARK USG  30-Aug-1995 1011"
To: 	buildhelp@DEC:.zko.wasted
CC: 	
Subj: 	How to setup for cscope?

Hi.

Can somebody tell me how to run cscope using the nightly build and cscope
indexes?  Is there a web page or something I could look at?

Thanks,

Tim

T.RTitleUserPersonal
Name
DateLines
1778.1Re: How to setup for cscope?AOSG::FILTERAutomatic Posting Software - mail to flume::puckWed Aug 30 1995 12:23103
Date Of Receipt: 	30-AUG-1995 10:51:43.18
From: 	SMURF::QUARRY::"[email protected]" "30-Aug-1995 1047"
To: 	[email protected]
CC: 	[email protected], [email protected]
Subj: 	Re: How to setup for cscope?

Well, the mechanism is all in place, but was still in Beta Test mode as it 
hadn't been officially announced yet. Feel free to join the ranks of testers. 
We'll probably announce it generally later next week.

In a workon to a sandbox backed by any active nightly tree, there is a new 
tool to access the databases called bcscope. Invoked without any arguments it 
will return the following usage message:


Usage:  bcscope [-kernel | -libs | -cmds] [ -sb ]

There are three separate cscope databases, one each for kernel files,
libraries and commands. You may access them separately. 

By default bcscope references the backingtree for your sandbox, passing the 
-sb flag will still use the same database, but select files from your sandbox
to view. This requires a populated sandbox.

Within the tool, online help is available by typing ?

----------------
When invoked with an argument, cscope looks like this:

Cscope version 13.3                                    Press the ? key for help





Find this C symbol:
Find this definition:
Find functions called by this function:
Find functions calling this function:
Find assignments to:
Change this grep pattern:
Find this egrep pattern:
Find this file:
Find files #including this file:


__________________________


and the internal commands are:

Press the TAB key repeatedly to move to the desired input field, type the
pattern to search for, and then press the RETURN key.  For the first 4 and
last 2 input fields, the pattern can be a regcmp(3X) regular expression.
If the search is successful, you can use these command characters:

1-9     Edit the file containing the displayed line.
space   Display next lines.
+       Display next lines.
-       Display previous lines.
^E      Edit all lines.
>       Write all lines to a file.
>>      Append all lines to a file.
<       Read lines from a file.
^       Filter all lines through a shell command.
|       Pipe all lines to a shell command.

At any time you can use these command characters:

^P      Move to the previous input field.
^A      Search again with the last pattern typed.
^B      Recall previous input field and search pattern.
^F      Recall next input field and search pattern.
^C      Toggle ignore/use letter case when searching.
^R      Rebuild the symbol database.
!       Start an interactive shell (type ^D to return to cscope).
^L      Redraw the screen.
?       Display this list of commands.
^D      Exit cscope.



Let me know if you find any problems.



				-Grant


| Hi.
| 
| Can somebody tell me how to run cscope using the nightly build and cscope
| indexes?  Is there a web page or something I could look at?
| 
| Thanks,
| 
| Tim


				-Grant