Inspect Manual
High-Level Inspect Commands
Inspect Manual—429164-006
6-202
Examples
Examples
1. When the LOCATION FORMAT is set to STATEMENTS, the SOURCE command
does not list statement numbers for statements deleted by TNS optimizations. In
this example, the statement number 15 is not listed because it was deleted by
optimizations.
2. For an accelerated program on TNS/R systems, when the LOCATION FORMAT is
set to LINES, the SOURCE command uses a dash (-) to annotate lines deleted by
accelerator optimizations. In this example, the line number 80 has a dash because
it was deleted by optimizations.
3. This example illustrates that when a breakpoint at STOP or ABEND is recognized,
Inspect shows the current location at the call statement. The annotation character,
“*”, denotes the current location. In this example, assume a breakpoint at ABEND
has been hit and the user typed “SOURCE.”
SOURCE ASSIGN
The SOURCE ASSIGN command redefines the location of source files and sets or
displays source assignments from the source-assignment list for the current Inspect
session. The SOURCE ASSIGN command is a synonym for the ADD SOURCE
ASSIGN and LIST SOURCE ASSIGN commands. For more information, see ADD
SOURCE ASSIGN and LIST SOURCE ASSIGN commands.
When a program is compiled, the fully qualified names of the source files that compose
it are recorded as part of the symbol information. Inspect uses this information to
12 z := x;
13 z := y;
14 GOTO bar;
GOTO foo;
16 z := 1;
@#76 a :=1;
#77 CALL s1;
@#78 CALL s2 ( a, a, a );
@#79 CALL s3;
-#80 b :=a;
#81
#82 CALL PROC1 (1, 2D, sptr );
100 IF j = 17
200 THEN
300 BEGIN
500 IF e <> s OR j <> e
600 THEN
*700 CALL ABEND;
800 END
900 ELSE
910 BEGIN
920 J := 17;