Inspect Manual
High-Level Inspect Commands
Inspect Manual—429164-006
6-211
SOURCE SYSTEM
4. This example illustrates backward searching.
5. This example illustrates the use of FILE as the file-locator to search for source 
from an arbitrary file.
6. This example shows using the SOURCE SEARCH command with SCOPE as the 
file-locator.
7. This example illustrates using the SOURCE SEARCH command with LOCATION 
as the file-locator.
SOURCE SYSTEM
The SOURCE SYSTEM command directs Inspect to retrieve source files from a 
another system when the object file has moved but the source has not. SOURCE 
SYSTEM is a synonym for the SELECT SOURCE SYSTEM command.
-PROGRAM-SOURCE SEARCH 'owner_id' #34/#20
#30 val2 = proc2(val1, owner_id);
-PROGRAM-
#29 owner_id = (int) val3 >> 16;
-PROGRAM-
#20 int owner_id = 0;
-PROGRAM-SOURCE SEARCH 'owner_id' #34/F
#30 val2 = proc2(val1, owner_id);
-PROGRAM-
#29 owner_id = (int) val3 >> 16;
-PROGRAM-
#20 int owner_id = 0;
-PROGRAM-SOURCE SEARCH 'readupdate' F/L FILE $system.system.extdecs
#4684 ?SECTION READUPDATE
-PROGRAM-TRACE
Num Lang Location
 0 C #proc2.1, #proc2.#61
 1 C #main.6, #main.#30
 2 C #_MAIN.3, #_MAIN.#64.001
-PROGRAM-SOURCE SEARCH 'owner_id' 1/7 SCOPE 1
#20 int owner_id = 0;
-PROGRAM-SOURCE
 #57
 #58 int proc2 (x,y)
 #59 int x;
 #60 long y;
 *1 #61 {
 2 #62 x = x + (int) y;
 3 #63 return (int) x;
 #64 }
 ** Inspect warning 126 ** End-of-file on: \SYS.$DATA.CSUBV.SOURCE
-PROGRAM-SOURCE SEARCH 'owner_id' 1/7 SCOPE 0
 ** Inspect warning 203 ** String not found
-PROGRAM-SOURCE SEARCH 'owner_id' F/L LOCATION #main
#20 int owner_id = 0;
SOURCE SYSTEM [\system ]










