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-58
M Command
•
The LMAP command is not available when the process in Debug is one that does
not allow page faults.
Examples
243,01,00282-lmap sl.7,24137 ! an address in SL.07
EMTEXT + %17226 (SL.07)
243,01,00282-lmap n 0x7a0e50be ! same location as a 32-bit address
EMTEXT + %17226 (SL.07)
243,01,00282-lmap n 0x7A6CDBAC ! an address in accelerated code
EMSTEXT + %17226 (acc SL.07)
243,01,00071-lmap n 0x700015ac ! an address in a native program
PROGRAM + 0x5EC (UCr)
242,01,00040-lmap n 0x76068130 ! an address in a native SRL
printf (SRL ZCRTLSRL)
M Command
The M command has these functions:
•
To modify the contents of a process’s variable
•
To modify the contents of one of a process’s registers, or to modify the space
identifier of the current code segment
Each function is defined by a unique syntax. Each function and its syntax is described
on the following pages.
Modify Variables
The M command can modify the contents of a process’s variables. The modify-variable
form of the M command is:
address
is the address of the first variable to be modified. For more information, see
Address Syntax on page 3-12. The only address modes allowed while in
nonprivileged mode are L, S, Q, and N. All address modes are allowed for a
process while in privileged mode.
new-value
is a 16-bit word expression representing the new contents of the modified
variables. A series of more than one new-value separated by commas modifies
consecutive ascending memory locations. A 16-bit word is used for new-value
M address [ , new-value ] ...