User`s guide

Searching Through Source Code
17
list func Lists $listwindow lines starting at procedure func.
list func,exp Lists all source between func and exp, inclusive.
list func:exp Lists exp lines, beginning at func.
A > symbol prints to the left of the line that is the current line. A * symbol
prints to the left of the line of the current pc location.
For example, to list lines 20–35 of a file, enter:
(dbx) list 20,35
In response to this command, dbx displays lines 20 through 35 and sets the
current line to 36.
To list 15 lines starting with line 75, enter:
(dbx) list 75:15
In response to this command, dbx displays lines 75 through 89 and sets the
current line to 90.
Searching Through Source Code
Use the forward slash (/) and question mark (?) commands to search through
the current file for regular expressions in source code. For a description of
regular expressions, see the ed(1) reference page.
The search commands have the following syntax:
/[reg_exp] Search forward through the current file from the current line
for the regular expression reg_exp. If dbx reaches the end of
the file without finding the regular expression, it wraps
around to the beginning of the file.dbx prints the first source
line containing a match of the search expression.
If you don’t supply a regular expression, dbx searches
forward based on the last regular expression searched.