Native Inspect Manual (H06.04+)

Using Native Inspect
Native Inspect Manual528122-005
2-9
Advance Execution to main()
Advance Execution to main()
Notes
When a C/C++ program is started under Native Inspect control, Native Inspect
gains control of the program before static initializations and constructors are
executed. You must set a breakpoint on main to obtain control of the program at
the user-defined main function.
List Source
Trace the Stack
Notes
The entry for frame #0 identifies the current location where the program is
suspended.
(eInspect 3,591):b main
Breakpoint 1 at 0x70001200:0: file \PIPPIN.$D0117.NITEST.GARTCC, line 78.
(eInspect 3,591):c
Continuing.
Breakpoint 1, main () at \PIPPIN.$D0117.NITEST.GARTCC:78
78 local_ptr1 = "From main";
Current language: auto; currently c++
(eInspect 3,591):list
74 void main(void)
75 {
75.1 char local_buf[80];
76 char *local_ptr1, *local_ptr2;
77 int local_q;
78 local_ptr1 = "From main";
78.1 strcpy( local_buf, "Hello world" );
78.2 local_ptr2 = local_buf;
79 local_q = 0;
80 call1(local_ptr1,local_q);
(eInspect 3,591):bt
#0 main () at \PIPPIN.$D0117.NITEST.GARTCC:78
#1 0x700034d0:0 in _MAIN () at \SPEEDY.$RLSE.T8432H01.CPLMAINC:68