All TotalView commands operate on a set of processes and threads. This set is called a
Process/Thread (P/T) set. The right-hand text box in windows that contain P/T set controls lets you construct these sets. In the CLI, you specify a P/T set as an argument to a command such as
dfocus. If you’re using the GUI, TotalView creates this list for you based on which Process Window has focus.
Unlike a serial debugger in which each command clearly applies to the only executing thread, TotalView can control and monitor many threads with their PCs at many different locations. The P/T set indicates the groups, processes, and threads that are the target of the CLI command. No limitation exists on the number of groups, processes, and threads in a set.
If you do not explicitly specify a P/T set in the CLI, TotalView defines a target set for you. (In the GUI, the default set is determined by the current Process Window.) This set is displayed as the default CLI prompt. (For information on this prompt, see
“About the CLI Prompt”.)
You can change the focus on which a command acts by using the dfocus command. If the CLI executes the
dfocus command as a unique command, it changes the default P/T set. For example, if the default focus is process 1, the following command changes the default focus to process 2:
If you begin a command with dfocus, TotalView changes the target only for the command that follows. After the command executes, TotalView restores the
former default. The following example shows both of these ways to use the
dfocus command. Assume that the current focus is process 1, thread 1. The following commands change the default focus to group 2 and then step the threads in this group twice:
Some commands only operate at the process level; that is, you cannot apply them to a single thread (or group of threads) in the process, but must apply them to all or to none.