Download NightView User`s Guide - Version 7.5

Transcript
Command-Line Interface
step
6
Execute one line, stepping into procedures.
step [/one | /all] [repeat]
Abbreviation: s
repeat
The repeat argument specifies the number of lines to single step. The default
is one line.
/one
This option causes only the current thread to resume execution. It has no
effect on any other threads. When applied to a CUDA context, multiple
threads will execute, possibly including all CUDA code. See “set-run-mode”
on page 6-129 and “CUDA Debugging” on page 3-45. If both this option and
/all are omitted, the current run mode controls which threads execute (see
“set-run-mode” on page 6-129). This option is redundant for single-threaded
processes.
/all
This option causes all threads in the process to resume execution. If both this
option and /one are omitted, the current run mode controls which threads
execute (see “set-run-mode” on page 6-129). This option is redundant for single-threaded processes.
It is worth noting that the /all option does not imply that all threads will
single step. All threads will execute while the current thread steps and then all
threads will be stopped when the step operation completes. The other threads
may execute many source lines or only a few instructions.
step causes the processes specified by the qualifier to continue execution until they
have crossed a source line boundary. With a repeat count, this happens repeat times.
step follows execution into called procedures. That is, if the current line is a procedure
call, and you step, then the process will execute until it is in that new procedure and
then stop. If you want to step over the procedure, use next. See “next” on page 6-134.
If a step command causes execution to enter or leave a called procedure, then the output
includes the equivalent of a frame 0 command to show this. See “frame” on page
6-145.
This command completes only when all of the processes specified by the qualifier have
completed the single step or stopped for some other reason (like receiving a signal). See
“Signals” on page 3-16 for a discussion of the interactions between single-stepping and
signals.
step is interpreted relative to the current frame. See “Current Frame” on page 3-27. That
is, any lower frames are automatically finished before stepping.
There are also commands to single step individual instructions. See “stepi” on page 6-136
6-133