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.
The location at which the CLI begins displaying information. In most cases, specify this location as a line number or as a string that contains a file name, function name, and line number, each separated by
# characters; for example:
file#func#line. (For more information, see “
Qualifying Symbol Names” in Chapter 12 of the
TotalView User Guide.) The CLI creates defaults if you omit parts of this specification.
If you enter a different file, it is used for future display. This means that if you want to display information relative to the current thread’s execution point, use the
–e option to
dlist.
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.
The PC for the current stack frame is at the indicated line and this is a buried frame; this frame has called another function so that this frame is not the active frame.
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, starting with line 10 of the file that corresponds to the current list location. Because this uses an explicit value, the CLI ignores the previous command. The list location is changed to line 30.
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.