Native Inspect Manual (H06.13+, J06.03+)
You can change this default behavior by entering a set command (environment) with the
continue-to-main option set to off. You should include this command in the EINSCSTM file
(located in your default logon directory) so that it is executed during Native Inspect initialization.
If set continue-to-main off is specified, you must set a breakpoint at main() to stop
execution and examine the state of your program at that point, as in the following example:
(eInspect 0,330): b main
C:\mywin\home\myfiles\test\nitest.c, line 40.
(eInspect 0,330): c
Continuing.
Breakpoint 1 main () at C:\mywin\home\myfiles\test\nitest.c:40
40 void main (void) {
(eInspect 0,330): bt
#0 main () at C:\mywin\home\myfiles\test\nitest.c:40
#1 0x70000e60:0 in_MAIN 90 at \SPEEDY.$DATA06.T8432H01.CPLMAINC:68000
(eInspect 0,330):
Specifying set continue-to-main off is useful for debugging global constructors in a C++
program.
Sample Native Inspect Session (C++ Program)
The sample session described in this section demonstrates the tasks listed in Table 9.
Table 9 Sample Native Inspect C++ Program Session – User Tasks
Native Inspect CommandTask
dirSet search path for source files
listList source
breakSet a code breakpoint
tbreak
btTrace stack frames
nextAdvance execution
nexti
step
stepi
printDisplay a variable
setModify a variable
killEnd program and session
xDisplay memory in internal representation
Launching a C++ Program Under Native Inspect Control
The following example shows how to launch Native Inspect using the RUND command:
$DATA3 NITEST 30>rund nitest
TNS/E eInspect gdb Debugger [T1237 - 20-Dec-2011 16:43]
Copyright 2008 Free Software Foundation, Inc.
Copyright 2003-2012 Hewlett-Packard Development Company, L.P.
Native Inspect (based on GDB) is covered by the GNU General Public License.
Type "show copying" for conditions for changing and/or distributing copies.
Type "show warranty" for warranty/support information.
Working directory \PELICAN.$SYSTEM.STARTUP.
(Symbols read in for program loadfile \PELICAN.$DATA3.NITEST.NITEST.
Sample Native Inspect Session (C++ Program) 37










