Debug Manual

Table Of Contents
Sample Debug Sessions
Debug Manual421921-003
F-52
Privileged Commands
We can display information in PIN 265's _GLOBAL data as follows:
As we saw in the examples above, the program is currently using selectable segment
2. We can use various Debug commands to see the contents of the selectable
segments:
Code Breakpoints
We can use commands such as M or FNL on the program we have vectored to. We
can also place code breakpoints. The following shows the code before and after the
breakpoint is placed near the beginning of the EXAMPLE_FILL_ARRAY procedure.
050,03,00010-?
BASE SEGMENTS: SYSTEM DATA = %000001
SYSTEM CODE = %000005
SYSTEM LIB = %020400
V PIN = 411 (#265)
USE SEGMENT ID = %000002
BASE STANDARD IN
BASE STANDARD OUT
TERM \M5.$ZTN00.#PTYX5AA
PRV = ON
050,03,00010-DN 0x08000002, %h14/4 :D
08000002: #00256 #00000 #00003 #00265 #00000 #00000 #00011 #43155
08000012: #00000 #00050
050,03,00010-vq 1
050,03,00010-D Q 0, 1,b:d
%000000: 001 000
050,03,00010-vq 2
050,03,00010-D Q 0, 1,b:d
%000000: 002 000
050,03,00010-vq #17
050,03,00010-D Q 0, 1,b:d
%000000: 000 000
050,03,00010-i %h70000464, 10
70000464: ADDIU sp,sp,-128 SW ra,60(sp) SW a0,128(sp)
70000470: SW s1,56(sp) SW s0,52(sp) LUI a0,0x8000
7000047C: LH a1,130(sp) SW $0,44(sp)
70000484: JAL 0x7F805228 NOP OR s0,v0,$0
70000490: SH s0,124(sp) LH t6,124(sp) NOP
7000049C: BEQ t6,$0,0x700004B4 NOP
050,03,00010-b %h70000478
N: 0x70000478 INS: 0x3C048000 PIN: #00265
INS: LUI a0,0x8000
050,03,00010-i %h70000464, 10
70000464: ADDIU sp,sp,-128 SW ra,60(sp) SW a0,128(sp)
70000470: SW s1,56(sp) SW s0,52(sp) BREAK INSPECT RISC
7000047C: LH a1,130(sp) SW $0,44(sp)
70000484: JAL 0x7F805228 NOP OR s0,v0,$0
70000490: SH s0,124(sp) LH t6,124(sp) NOP
7000049C: BEQ t6,$0,0x700004B4 NOP