Debug Tutorial: How to Control Execution

Command syntax:
cont [ context ]
run [ prog_args ] [ < input_file ] [ > output_file ]
wait [ context ]
next [ context ] [ count ]
nexti [ context ] [ count ]
step [ context ] [ count ]
stepi [ context ] [ count ]

Program execution is controlled by first setting breakpoints and/or watchpoints and then running the application until one of them is encountered. Alternatively, execution can be stepped along one source line (or one instruction) at a time.


Examples:

(all) > cont;wait
Hello has started on 0
Hello has started on 1
Hello has started on 2
Hello has started on 3
Hello has started on 4
Hello has started on 5
        Context             State      Reason    Location     Procedure
  ====================== ============ ========= ========== ====================
>*(all)                  Breakpoint   C Bp1     Line 22    main()
(all) > step(0)
        Context             State      Reason    Location     Procedure
  ====================== ============ ========= ========== ====================
>*(0)                    Stepped                Line 5     one()
(all) > next(2,3)
        Context             State      Reason    Location     Procedure
  ====================== ============ ========= ========== ====================
>*(2,3)                  Stepped                Line 24    main()
(all) > run;wait
/cougar/bin/yod: Received SIGINT (2)
 *** initializing Debug for parallel application...
Hello has started on 0
Hello has started on 1
Hello has started on 2
Hello has started on 3
Hello has started on 4
Hello has started on 5
        Context             State      Reason    Location     Procedure
  ====================== ============ ========= ========== ====================
>*(all)                  Breakpoint   C Bp1     Line 22    main()

Intel Tutorial Notes Previous -- Next
Acknowledgement and Disclaimer