The dfocus command changes the set of processes, threads, and groups upon which a command acts. This command can change the focus for all commands that follow, or just the command that immediately follows.
The dfocus command always expects a P/T value as its first argument. This value can be either a single arena specifier or a list of arena specifiers. The default focus is
d1.<, which selects the first user thread. The
d (for default) indicates that each CLI command is free to use its own default width.
If you enter an optional command, the focus is set temporarily, and the CLI executes the
command in the new focus. After the
command executes, the CLI restores focus to its original value. The
command argument can be a single command or a list.
If you use a command argument, the
dfocus command returns the result of this command’s execution. If you do not enter use a
command argument, the
dfocus command returns the focus as a string value.
Sets and then resets command focus. A focus command that includes a dot and omits the process value uses the current process. Thus, this sequence of commands changes the focus to
process 3, thread 5 (
d3.5).
Steps the current group. Although the thread of interest (TOI) is determined by the current focus, this command acts on the entire group that contains that thread.
Executes a backtrace (dwhere) on all the threads in process 2, steps thread 3 in process 2 (without running any other threads in the process), and continues the process.
Changes the current set to include all threads in all processes. After you execute this command, your prompt changes to
a1.<. This command alters CLI behavior so that actions that previously operated on a thread now apply to all threads in all processes.