Native Inspect Manual (H06.13+, J06.03+)
Added process (3,591).
Switching process (3,591) to eInspect from DMON
Process (3,591) created using DEBUG option.
(eInspect 3,591):
Listing the Source
The following example shows an attempt to display the source code using the list command:
(eInspect 3,591):list
\PIPPIN.$D0117.NITEST.GARTCC: No such file or directory.
(eInspect 3,591):dir $data3.nitest
Source directories searched: $data3.nitest:$cdir:$cwd
(eInspect 3,591):list
69 char *new_ptr = "In print_and_break\n";
70 int z = 7;
71 printf ("About to execute 'break 0x247'\n");
72 DEBUG();
73 }
74 void main(void)
75 {
75.1 char local_buf[80];
76 char *local_ptr1, *local_ptr2;
77 int local_q;
The output from the preceding example demonstrates the following:
• The source file could not be found at the location where it was compiled because the object
file was moved to another system.
• Because the source file name did not change, the dir command is used to instruct Native
Inspect to search the subvolume that contains a copy of the file.
Tracing the Stack
The following example shows a stack trace using the bt command:
(eInspect 3,591):bt
#0 main () at \PIPPIN.$D0117.NITEST.GARTCC:78
#1 0x700034d0:0 in _MAIN () at \SPEEDY.$RLSE.T8432H01.CPLMAINC:68
The output from the preceding example shows the entry for frame #0, identifying the current location
where the program is suspended.
Controlling Execution
The following example shows execution control, using the next, b, and c commands:
(eInspect 3,591):next
78.1 strcpy( local_buf, "Hello world" );
(eInspect 3,591):next
78.2 local_ptr2 = local_buf;
(eInspect 3,591):b 79
Breakpoint 2 at 0x700012d0:1: file \PIPPIN.$D0117.NITEST.GARTCC, line 79.
(eInspect 3,591):c
Continuing.
Breakpoint 2, main () at \PIPPIN.$D0117.NITEST.GARTCC:79
79 local_q = 0;
The output from the preceding example shows the following:
• The next command steps execution over function, procedure, and program unit calls.
• You can set a breakpoint on any source line number.
38 Using Native Inspect










