Inspect Manual
Using Inspect With TNS/R Native Programs
Inspect Manual—429164-006
17-12
TRACE REGISTERS
 TRACE REGISTERS
The TRACE REGISTERS command displays TNS/R frames. For TNS/R frames, 
Inspect displays the PC register in the normal Inspect form as a scope name and 
offset. Inspect also displays the virtual frame pointer (VFP) for that frame.
Debugging at the TNS/R Native Machine Level
Inspect provides some functionality for examining the TNS/R machine state when 
debugging native programs. For more information about debugging at the TNS/R 
native machine level, see Section 15, Using Inspect on a TNS/R System, and the 
Debug Manual.
-PROG-SOURCE ICODE
 #3.1       
 #4 int global_1; 
 #4.1 long global_2;      
 #4.2       
1 *#5 main()     
 #6  {     
 #7 int a; 
 #8 short b;    
 #9
 #5 00000000 BREAK INSPECT OCT 
 #5 00000004 SW ra,20(sp)
 #10 a = 13406544;
 #10 00000008 LUI t6,0xCC  
 #10  0000000C ORI  t6,t6,0x9150   
 #10 00000010 SW t6,28(sp)
 #11        
 #12 printf("Hello World\n");   
 #12 00000014 LUI a0,0x800
 #12 00000018 ADDIU a0,a0,0  
 #12  0000001C JAL 0x760E0940   
 #12 00000020 NOP
 #13 if (errno)
 #13 00000024  LUI t7,0x5800  
 #13 00000028 LW t7,72(t7)    
 #13 0000002C NOP  
   #13         00000030  BEQ   t7,$0,0x700003D0                           
 #13 00000034 NOP
 #13.1 b = 88;
 #13.1 00000038 LI t8,88    
 #13.1 000003C SH t8,26(sp)
 #14 }
 #14  00000040 OR v0,$0,$0   
 #14 00000044 BEQ $0,$0,0x700003DC 
 #14 00000048 NOP  
 #14 0000004C LW ra,20(sp) 
 #14 00000048 NOP
 #14 0000004C LW ra,20(sp)    
 #14 00000050 NOP 
 #14  00000054 JR ra    
 #14 00000058 ADDIU sp,sp,32










