Inspect Manual

High-Level Inspect Commands
Inspect Manual429164-006
6-222
Examples
value, or if an entry is shown as a block name and offset with no source line
location, no symbols were available in that procedure; for example:
3. A TRACE command with both REGISTERS and ARGUMENTS requested (in
either order) lists the heading line first; then for each scope unit with a symbol table
it lists:
The symbolic information about the called routine.
The argument values (limited to 35 characters), as if requested in a DISPLAY
command.
The next example shows a COBOL program UPSHIFT calling a COBOL program
TAILOR to shift lowercase letters to uppercase. The three arguments are IN-
ARRAY, MAX-I, and OUT-ARRAY. Each of the two arrays is 25 characters long.
4. This example shows how call history entries for subprocedures differ from entries
for procedures. The following TRACE command shows that the procedure MAIN
called the subprocedure SPROC1, which called the subprocedure SPROC2.
SPROC2 then called the procedure PROC1, which called the subprocedure
SPROC3. SPROC3 is the currently executing subprocedure in PROC1:
Note that the subprocedures do not have a scope number. Also, note that the
subprocedure names are prefixed with a period rather than a pound sign.
5. This example shows TRACE and TRACE ARGUMENTS within a Pascal private
procedure. The SOURCE command shows the procedure specification. The first
-PRG-TRACE
Num Lang Location
0 CBL #ATTEMPTDISPLAY.#1.4(QUEENSCS)
1 #APPLY + %17
2 CBL #QUEENSCO.#57(QUEENSCS)
-COBOBJ-TRACE REGISTERS ARGUMENTS
Num Lang Location (Registers) (Arguments)
0 CBL #TAILOR.#462(UTLIB) (L=%1014,RP=7,CCG,K,UC.0)
IN-ARRAY =
A[1] = "delREY "
MAX-I = 15, OUT-ARRAY =
B[1] = "DELREY "
1 CBL #UPSHIFT.#320(UPSHIFT) (L=%756,RP=7,CCG,K,UC.0)
-TALOBJ-TRACE
Num Lang Location
TAL .SPROC3: #PROC1.#150(SOURCE)
0 TAL #PROC1.#200(SOURCE)
TAL .SPROC2: #MAIN.#50(SOURCE)
TAL .SPROC1: #MAIN.#40(SOURCE)
1 TAL #MAIN.#80(SOURCE)