Debug Manual

Table Of Contents
Debug Commands
Debug Manual421921-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 }