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-62
MH Command (TNS/R Native and OSS Processes)
Examples
147,01,00029-MR0
*REG*: %000031 <- 0
147,01,00033- M SP
SPACEID: UL.2 <- UC.00
147,01,00033- M SP,UC ! Defaults to UC.00
248,01,00033-M $V0, -1 ! Set register $V0 to -1.
248,02,00022-M $T0 ! Change register $T0 to the value
0x70452312.
*REG*: 0x00000EF0 <- 0x70452312
MH Command (TNS/R Native and OSS
Processes)
The MH command can modify signal handling by specifying a new signal handler or
signal action for a specified signal. The form of the MH command is:
signal-name
specifies the signal for which signal handling is to be modified. The TNS/R native
signals are:
{ SIGSEGV | SIGILL | SIGFPE | SIGABRT }
{ SIGSTK | SIGLIMIT | SIGMEMMGR | SIGNOMEM }
{ SIGMEMERR | SIGTIMEOUT }
Additional signals are supported by Open System Services. For more information,
see Considerations
on page 4-62.
sigaction
specifies one of the system-supplied signal actions:
{ SIG_DFL | SIG_ABORT | SIG_DEBUG | SIG_IGN }
32-bit-address
is the RISC address of a user-supplied signal handler.
Considerations
•
Because only TNS/R native and OSS processes can have signal handlers, the MH
command is allowed only on such processes. For more information on signals,
refer to the description of the SIGACTION_INIT_ procedure in the Guardian
Procedure Calls Reference Manual.
MH signal-name , { sigaction | 32-bit-address }