Dbx 1024 User's Guide Page 30

  • Download
  • Add to my manuals
  • Print
  • Page
    / 158
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 29
16
Chapter 3: Examining Source Files
the current source file to whatever file contains the source for the procedure
(see “Examining the Stack” on page 46 for more information on activation
levels).
If you enter the file command without any arguments, dbx prints the current
source file:
(dbx) file
procedure.c
You can also change the current source file by typing:
(dbx) func procedure
You can use the tag command to search the tag file for procedure:
(dbx) tag procedure
The tag command finds C preprocessor macros if they have arguments
(func procedure cannot). For more information about the tag file, seectags(1).
Listing Source Code
Thelist command displays lines of source code. The dbx variable $listwindow
defines the number of lines dbx lists by default. The list command uses the
active frame and line of the current source file unless overridden by a file
command. Any execution of the program overrides the file command by
establishing a new current source file.
The syntax for the list command is:
list Lists $listwindow lines beginning at the current line (or list
the line of the current pc if the current line is unknown or
not set).
list exp Lists $listwindow lines starting with the line number given
by the expression exp. The expression can be any valid
expression that evaluates to an integer value as described in
“Using Expressions” on page 33.
list exp1:exp2 Lists exp2 lines, beginning at line exp1.
list exp1,exp2 Lists all source between line exp1 and line exp2 inclusive.
Page view 29
1 2 ... 25 26 27 28 29 30 31 32 33 34 35 ... 157 158

Comments to this Manuals

No comments