(ReplayEngine only) Steps to the previous source line, moving into subroutines that called the current function. This option can be abbreviated to
–b.
The dstep command executes source lines; that is, it advances the program by steps (source lines). If a statement in a source line invokes a subfunction, the
dstep command steps into the function.
The optional num-steps argument defines the number of
dstep operations to perform. If you do not specify
num-steps, the default is 1.
The dstep command iterates over the arenas in the focus set by doing a thread-level, process-level, or group-level step in each arena, depending on the width of the arena. The default width is
process (
p).
If the width is process, the
dstep command affects the entire process that contains the thread being stepped. Thus, although the CLI is only stepping one thread, all other threads in the same process also resume executing. In contrast, the
dfocus t dstep command steps only the thread of interest (TOI).
The action taken on each term in the focus list depends on whether its width is thread, process, or group, and on the group specified in the current focus. (If you do not explicitly specify a group, the default is the control group.)
TotalView examines that group and identifies each process having a thread stopped at the same location as the
TOI. TotalView selects one matching thread from each matching process. TotalView then runs all processes in the group and waits until the
TOI arrives at its goal location; each selected thread also arrives there.
The behavior is similar to process width behavior except that all processes in the program control group run, rather than just the process of interest (POI). Regardless of which threads are in the group of interest, TotalView only waits for threads that are in the same share group as the
TOI. This is because it is not useful to run threads executing in different images to the same goal.
TotalView allows the entire process to run, and execution continues until the
TOI arrives at its goal location. TotalView plants a temporary breakpoint at the goal location while this command executes. If another thread reaches this goal breakpoint first, your program continues to execute until the
TOI reaches the goal.
TotalView runs all threads in the process that are in that group to the same goal as the
TOI. If a thread arrives at the goal that is not in the group of interest, this thread also stops there. The group of interest specifies the set of threads for which TotalView waits. This means that the command does not complete until all threads in the group of interest are at the goal.
Only the TOI is allowed to run. (This is not supported on all systems.)
Executes the next source line, stepping into any procedure call it encounters. Although the CLI only steps the current thread, other threads in the process run.
Steps thread 2 in process 1 by one source line. This also resumes execution of all threads in process 1; they halt as soon as thread 2 in process 1 executes its statement.