Run a Processes or Thread to a Specified Line
The Run To command in the UI, and the duntil command in the CLI, run the threads that are members of the focus group until execution reaches the goal specified by the selected line in the Source view code. This helps to synchronize processes and threads so you can step them together.
The results of synchronizing processes and threads to a line differ, depending on whether you apply the Run To or duntil command at process width or group width.
At process width:
-
If the thread of interest (TOI) is already at the goal location, TotalView steps the TOI past the line before the process runs. This feature helps to ensure that you can use the Run To command repeatedly in loops.
-
If any other thread in the process is already at the goal, TotalView temporarily holds the thread while other threads in the process run. After all threads in the process reach the goal, TotalView stops the process. This feature helps to ensure that you can synchronize the threads in the process of interest (POI) at a source line.
At group width:
-
TotalView identifies all processes in the control group that already have a thread stopped at the goal. These are the matching processes. TotalView then runs only non-matching processes. Whenever a thread arrives at the goal, TotalView stops its process. The command runs until it stops all processes in the control group. This feature ensures that you can synchronize at least one thread from all processes in preparation for group-stepping them.