Displays this number of lines rather than the default number. (The default is the value of the MAX_LIST variable.) If
num-lines is negative, the CLI displays lines before the current location, and additional
dlist commands show preceding lines in the file rather than following lines.
Sets the display location to include the current execution point of the thread of interest (TOI). If you use
dup and
ddown commands to select a buried stack frame, this location includes the PC (program counter) for that stack frame.
The dlist command displays source code lines relative to a source code location, called the
list location. The CLI prints this information; it is not returned. If you do not specify
source-loc or
-e, the command continues where the previous list command stopped. To display the thread’s execution point, use the
dlist -e command.
The first time you use the dlist command after you focus on a different thread—or after the focus thread runs and stops again—the location changes to include the current execution point of the new focus thread.
Tabs in the source file are expanded as blanks in the output. The TAB_WIDTH variable controls the tab stop width, which defaults to 8. If
TAB_WIDTH is set to
-1, no tab processing is performed, and the CLI displays tabs using their ASCII value.
If the source-loc argument is not fully qualified, the CLI looks for it in the directories named in the CLI
EXECUTABLE_PATH variable.
The following examples assume that the MAX_LIST variables equals 20, which is its initial value.
Displays 20 lines in procedure do_it. Changes the list location to be the 20th line of the procedure.
Displays 20 lines in the do_it routine associated with process 2. If the current source file is named
foo, you can also specify this as
dlist foo#do_it, naming the executable for process 2.