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-59
Modify Register Contents
unless an N-mode address is used, in which case a 32-bit word is used for new-
value.
If you omit new-value, Debug prompts for a 16-bit word expression to represent
the new contents of the variable. The prompt is of the form:
address
is the address of the word to be modified.
current-value
is the current value of the indicated variable.
You can enter one value at the prompt. If you enter a value, Debug prompts for a
value for the next consecutive location. If you enter a blank, current-value is
unchanged and Debug prompts for a value for the next location. If you enter
nothing, current-value is unchanged and Debug returns to its command-
input mode.
Considerations
When N addressing mode is used, the current-value displayed and the new-
value received are 32-bit numbers; the default base is hexadecimal.
Examples
106,01,00012-m L-3I,1,2,3
248,01,00023-M N 0X80020000, 0, 0, 0, 0 ! Change four 32-bit
! values to 0.
For more examples that use the M command, see Appendix F, Sample Debug
Sessions.
Modify Register Contents
The M command can modify the contents of one of a process’s registers. The modify-
register form of the M command is:
register
represents one of the registers for that process; see Register Syntax on page 3-7.
address: current-value <-
M register [ , new-value ]