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
Sample Debug Sessions
Debug Manual—421921-003
F-11
TNS Program Example
Clearing Breakpoints with *
The following example demonstrates clearing breakpoints using * with the C command.
First, we use the B command to view all the breakpoints we have set in the
EXAMPLE_MAIN procedure. We then clear the breakpoints using the C * command
and show that they are gone.
Trace Command
In the following example, we use the EXAMPLE_FILL_ARRAY procedure to illustrate
the use of the trace (T) command, and the use of the N option with the T command.
We first set breakpoints at the beginning and near the end of the procedure and
resume to the first breakpoint. After reaching the breakpoint, we use the T and TN
commands to trace the stack and show the names.
050,03,00013-B
ADDR: UC.%00,%000005 INS: %002035 SEG: %020737
INS: ADDS +035
ADDR: UC.%00,%000103 INS: %125003 SEG: %020737
INS: EXIT 03
ADDR: UC.%00,%000232 INS: %040401 SEG: %020737
INS: LOAD L+001
ADDR: UC.%00,%000255 INS: %040401 SEG: %020737
INS: LOAD L+001
050,03,00013-C *
050,03,00013-B
050,03,00013-B %104
ADDR: UC.%00,%000104 INS: %002002 SEG: %020737
INS: ADDS +002
050,03,00013-b %104+%73
ADDR: UC.%00,%000177 INS: %125004 SEG: %020737
INS: EXIT 04
050,03,00013-r
DEBUG P=%000104, E=%000207, UC.%00-BREAKPOINT-
050,03,00011-t
%000104 E=%000200 L=%000023 ENV: T UC.%00
%000021:%000310 E=%000200 L=%000015 ENV: T UC.%00
050,03,00013-tn
%000104 E=%000200 L=%000023 EXAMPLE_FILL_ARRAY + %000000
000021: %000310 E=%000200 L=%000015 EXAMPLE_MAIN + %000077