System Debug Reference Manual (32650-90888)
Chapter 5 189
System Debug Command Specifications Fx-LOG
LEV
Parameters
number
The stack level number at which the environment should be set.
interrupt_level The interrupt level number at which the environment should be set. If this
parameter is omitted, the current interrupt level is assumed.
This parameter is valid only for NM.
Examples
%cmdebug > tr
PROG % 0.1421 PROCESSSTUDENT+14 (mITroc CCG) SEG'
* 0) PROG % 0.2004 PROCESSSTUDENT+377 (mITroc CCG) SEG'
1) PROG % 0.253 OB'+253 (mITroc CCG) SEG'
2) SYS % 25.0 ?TERMINATE (MItroc CCG) CMSWITCH''
%cmdebug > dr cmpc
CMPC=PROG %0.1421
%cmdebug > lev 2
First use TR to list the stack trace in order to decide which level is desired. The current
value of CMPC is then displayed. Next the stack level is set to level 2.
%cmdebug > tr
PROG % 0.1421 PROCESSSTUDENT+14 (mITroc CCG) SEG'
0) PROG % 0.2004 PROCESSSTUDENT+377 (mITroc CCG) SEG'
1) PROG % 0.253 OB'+253 (mITroc CCG) SEG'
* 2) SYS % 25.0 ?TERMINATE (MItroc CCG) CMSWITCH''
%cmdebug > dr cmpc
CMPC=PROG %0.253
The above stack trace reveals that the level has been changed to stack level two (note the
asterisk). The current value of CMPC is also displayed and confirms that the registers
have been correctly updated as well.
$nmdebug > tr,ism
PC=a.006777fc trap_handler
* 0) SP=40221338 RP=a.002a1fec conditional+$ac
1) SP=40221338 RP=a.000a5040 hpe_interrupt_marker_stub
--- Interrupt Marker
2) SP=402211e8 RP=25d.00015134 small_divisor+$8
--- End Interrupt Marker Frame ---
PC=25d.00015134 small_divisor+$8
0) SP=402211e8 RP=25d.00015d38 average+$b0
1) SP=402211e8 RP=25d.00015c74 ?average+$8
export stub: 25c.00005d98 processstudent+$74
2) SP=40221180 RP=25c.00006b1c PROGRAM+$300
3) SP=40221100 RP=25c.00000000
(end of NM stack)
Show a native mode stack trace that contains an interrupt marker.
$nmdebug > lev 1,1
$nmdebug > tr,ism
PC=25d.00015134 small_divisor+$8