Native Inspect Manual (H06.03+)

Table Of Contents
Syntax of Native Inspect Commands
Native Inspect Manual528122-003
3-44
list command
list command
Lists source code starting at the current execution location or the most recently listed
location. Native Inspect reads source from EDIT file (file code 101) and unstructured
files (file code 180).
By default, Native Inspect displays 10 lines before and after the current location.
However, the number of displayed lines might differ for EDIT files that contain fractional
line numbers.
Aliases: l
start-linespec
is the location at which the source code display is to begin. If you omit start-
linespec, Native Inspect lists source lines relative to the current program location
or the last listed source location.
end-linespec
is the location at which the source code display is to end. If you omit end-
linespec, Native Inspect lists 10 lines by default.
Locating Source Files
If the list command cannot locate the source file you want, an error message is
displayed that contains the compile-time location recorded in the object file:
If the base file name is unchanged (the name of the current file is the same as the
compile-time name), use the dir command to specify the subvolume that contains
the file.
Otherwise, use the map-source-name command to map the compile-time file name
to the current name. You can copy and paste the path name displayed in the error
message as the left-hand argument to the map command.
For examples of locating source files, see Determining the Compilation-Time Source
Name (If Necessary) on page 2-5 and Configuring a Search Path for Your Source Files
(If Necessary) on page 2-5.
list [ start-linespec ][, end-linespec ]
Note. For NonStop OS EDIT files that contain fractional line numbers (such as 12.1) the range
of lines listed might be more or less than that implied by the line range specification.