Changing the P/T Using the dfocus Command
You can change the focus on which a command acts using the dfocus command. If the CLI executes the
dfocus command without a subcommand, 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:
dfocus p2
After TotalView executes this command, all commands that follow focus on process 2.
If you begin a command with dfocus, TotalView changes the target only for the subcommand that follows. After the subcommand 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:
dfocus g2
dstep
dstep
In contrast, if the current focus is process 1, thread 1, the following commands step group 2 and then step process 1, thread 1:
dfocus g2 dstep
dstep
Some commands operate only 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.