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-18
Display Breakpoints
The displays for condition, trace, and command-string are described separately
later in this section.
Example
This is an example, in TNS breakpoint format, of what is displayed by Debug in
response to the B command:
050,03,00013-B UC.0,%5
ADDR: UC.%00,%000005 INS: %002035 SEG: %020737
INS: ADDS +035
This is an example of a display for a breakpoint on a TNS instruction in a program that
was accelerated and, therefore, has RISC instructions. Debug sets a breakpoint in the
RISC instruction that corresponds to the TNS instruction.
050,03,00032-b
@ ADDR: UC.%00,%000005 INS: %002035 SEG: %020737
INS: ADDS +035
050,03,00032-b *
@ ADDR: UC.%00,%000005 INS: %002035 SEG: %020737
INS: ADDS +035
^--N: 0x7042001C INS: 0x27BD004E
INS: ADDIU sp,sp,78
This is an example of the display for a breakpoint in native format:
050,03,00266-B 0x70000390 + (#3 * #4)
N: 0x7000039C INS: 0x00002025
INS: OR a0,$0,$0
pin-num is the PIN number, available only on privileged mode.
mnemonic-
instr
is the mnemonic decode of the instr binary value.
^-- indicates that the displayed output is RISC corresponding to a
previous TNS breakpoint. This is shown only with the B*
command.
N indicates that the breakpoint is in RISC code.
addr-32 is the 32-bit address in RISC code where the breakpoint is set.
instr-32 is the RISC instruction at the address addr-32, which was
replaced by the RISC instruction BREAK.
mnemonic-
nstr-32
is the mnemonic RISC decode of the instr-32 binary value.