Inspect Manual
Using Inspect With Accelerated Programs on TNS/R
Systems
Inspect Manual—429164-006
16-21
STEP
Example
The following example illustrates use of the SOURCE command to determine your
program’s current location and identify points that are register-exact or memory-exact
points.
STEP
The STEP command allows you to STEP statements and verbs in accelerated
programs, but not instructions. If you attempt to STEP instructions in an accelerated
program, Inspect issues the following error message:
Usage Considerations for Accelerated Programs
Stepping the execution of an accelerated program is subject to the following
considerations:
The STEP command always leaves an accelerated program at a memory-exact
point. (Note that register-exact points are a subset of memory-exact points.)
When the current program location is not a memory-exact point, entering a STEP
or STEP IN command advances the program to the next memory-exact point. In
some instances, this could be in the middle of a source statement. If you have
been advanced to the next memory-exact point Inspect will issue the following
warning message:
A multi-statement or multi-verb step command does not always produce the same
results as issuing an equivalent number of single statement/verb commands.
If one or more statements at the end of the step range have been deleted, stepping
continues to the next memory-exact point. However, a multi-statement or multi-
verb step is not affected by deleted statements that are contained within the step
range.
Transitions between TNS and accelerated code execution do not affect stepping.
-PTALIN-SOURCE FOR 10*#75.1 i := 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 );
@#84 CALL PROC2( 1, 2D, sptr ); #84.1
** Inspect error 353 ** Current location is accelerated; stepping
instructions is not allowed.
** Inspect warning 391 ** Current location is not a memory-exact
point; execution will be stepped to the next memory-exact point