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 Command Overview
Debug Manual—421921-003
3-10
Expression Syntax
The other prefixes affect the interpretation of number as follows:
register
represents the contents of one of the processor registers for that process; see
Register Syntax on page 3-7.
K [ X | D ] address
is a value that allows memory-based variables in its calculation.
op
is one of these arithmetic operators:
These operators have the same precedence. The order of execution is left to right.
To control order, you can use parentheses.
Considerations
•
Debug evaluates a particular expression at the time you enter the command
containing that expression.
•
A register’s value is the contents of that register at the time you enter the
command that references it.
•
Extended addressing and N addresses use 32-bit addresses.
•
A 32-bit address can be entered as a value that cannot be represented in 16 bits or
high-word.low-word. The 32-bit value is preferred to the high-word.low-
word form.
% represents an octal number; octal is the default numeric base
except for the DN command and N address mode.
# represents a decimal number.
%H |0X represents a hexadecimal number.
K gets the contents of the specified address.
X loads a 16-bit word from the specified address with sign extension.
D loads a 32-bit word from the specified address.
address is the specified 16-bit address. For the format, see Address Syntax
on page 3-12.
* Unsigned multiply
/ Unsigned divide
<< Left shift (unsigned 32-bit shift)
>> Right shift (unsigned 32-bit shift)