Debug Manual
Table Of Contents
- What’s New in This Manual
- About This Manual
- 1 Introduction
- Execution Modes on TNS/R Systems
- What User Access Is Required for Debugging
- How to Make a Process Enter Debug
- How to Select Debug as the Debugger
- Why a Process Enters Debug
- How to Determine Process State on a Trap or Signal
- Ending a Debug Session
- What Appears in the Debug Header Message
- How to Use Debug
- How Debug Breakpoints Work
- 2 Using Debug on TNS/R Processors
- 3 Debug Command Overview
- 4 Debug Commands
- Command Summary
- A Command
- AMAP Command
- B Command
- BASE Command
- BM Command
- C Command
- CM Command
- D Command
- DJ Command
- DN Command
- EX[IT] Command
- F[ILES] Command
- FC Command
- FN Command
- FNL Command
- FREEZE Command
- HALT Command
- H[ELP] Command
- I Command
- IH Command (TNS/R Native and OSS Processes)
- INSPECT Command
- LMAP Command
- M Command
- MH Command (TNS/R Native and OSS Processes)
- P[AUSE] Command
- PMAP Command (Accelerated Programs)
- PRV Command
- R Command
- S[TOP] Command
- T Command
- V Command
- VQ Command
- VQA Command
- = Command
- ? Command
- A Error Messages
- B ASCII Character Set
- C Command Syntax Summary
- Register Syntax
- Expression Syntax
- Address Syntax
- A Command
- AMAP Command
- B Command
- BASE Command
- BM Command
- C Command
- CM Command
- D Command
- DJ Command
- DN Command
- EX[IT] Command
- F[ILES] Command
- FC Command
- FN Command
- FNL Command
- FREEZE Command
- HALT Command
- H[ELP] Command
- I Command
- IH Command
- INSPECT Command
- LMAP Command
- M Command
- MH Command
- Output-Device Syntax
- P[AUSE] Command
- PMAP Command
- PRV Command
- R Command
- S[TOP] Command
- T Command
- V Command
- VQ Command
- VQA Command
- = Command
- ? Command
- D Session Boundaries
- E Correspondence Between Debug and Inspect Commands
- F Sample Debug Sessions
- Glossary
- Index

Debug Commands
Debug Manual—421921-003
4-39
Display Register Contents
Example Specific to Debugging in Native Mode
EXECUTION MODE = NATIVE
050,03,00267-d *
$PC: 0x70000568 $HI: 0x00000D38 $LO: 0x221FC20C
$00: $00: 0x00000000 $AT: 0x00000001 $V0: 0x00000000 $V1: 0x00000000
$04: $A0: 0x00080030 $A1: 0x4FFFFEBB $A2: 0x00000000 $A3: 0x00000000
$08: $T0: 0x00000067 $T1: 0x00000007 $T2: 0x00000001 $T3: 0x00000007
$12: $T4: 0x4FFFFEBB $T5: 0x00004003 $T6: 0xFFFFFFFF $T7: 0x80C27F00
$16: $S0: 0x00000000 $S1: 0xFFFFFFFF $S2: 0xFFFFFFFF $S3: 0xFFFFFFFF
$20: $S4: 0xFFFFFFFF $S5: 0xFFFFFFFF $S6: 0xFFFFFFFF $S7: 0xFFFFFFFF
$24: $T8: 0x00000000 $T9: 0xC40014EC $K0: 0xA713A713 $K1: 0xA713A713
$28: $GP: 0x08007FF0 $SP: 0x4FFFFE68 $S8: 0xFFFFFFFF $RA: 0x7000066C
050,03,00267-d $GP
*REG*: 0x08007FF0
050,03,00267-d $pc
*REG*: 0x70000568
If a program has executed IEEE floating-point instructions, the D or D * command can
be used to display the floating-point registers as this example shows:
050,03,00269-d *
EXECUTION MODE = NATIVE
$PC: 0x70001A0C $HI: 0x00000000 $LO: 0x00000000
$00: $00: 0x00000000 $AT: 0x70000018 $V0: 0x00000005 $V1: 0x00000000
$04: $A0: 0x00000000 $A1: 0x01000000 $A2: 0x4FFFFEBC $A3: 0x08006063
$08: $T0: 0xFEFFFFFF $T1: 0x47E00000 $T2: 0x0000000E $T3: 0x40000000
$12: $T4: 0x47F00000 $T5: 0x40000000 $T6: 0x00000000 $T7: 0x47F00000
$16: $S0: 0x4FFFFEBC $S1: 0x00000080 $S2: 0x4FFFFEBC $S3: 0xFFFFFFFF
$20: $S4: 0xFFFFFFFF $S5: 0xFFFFFFFF $S6: 0xFFFFFFFF $S7: 0xFFFFFFFF
$24: $T8: 0x7F800000 $T9: 0x70001864 $K0: 0xA702A702 $K1: 0xA702A702
$28: $GP: 0x08008180 $SP: 0x4FFFFE58 $S8: 0xFFFFFFFF $RA: 0x70001A08
$FCR31: 0x00005014
FS=0 C=0 CAUSE=OI FLAGS=OI Round Mode=0=RN
$F01.$F00: 0x40000000.00000000 $F03.$F02 0x40000000.00000000
$F05.$F04: 0x47E00000.00000000 $F07.$F06 0x40000000.00000000
$F09.$F08: 0x47F00000.00000000 $F11.$F10 0x40000000.00000000
$F13.$F12: 0x40280000.00000000 $F15.$F14 0xFFFFFFFF.FFFFFFFF
$F17.$F16: 0x47F00000.00000000 $F19.$F18 0x7FF00000.7F800000
$F21.$F20: 0xFFFFFFFF.FFFFFFFF $F23.$F22 0xFFFFFFFF.FFFFFFFF
$F25.$F24: 0xFFFFFFFF.FFFFFFFF $F27.$F26 0xFFFFFFFF.FFFFFFFF
$F29.$F28: 0xFFFFFFFF.FFFFFFFF $F31.$F30 0xFFFFFFFF.FFFFFFFF