Dbx 1024 User's Guide Page 48

  • Download
  • Add to my manuals
  • Print
  • Page
    / 158
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 47
34
Chapter 5: Examining and Changing Data
language precedence. You can also use parentheses to explicitly determine
the order of evaluation.
Table 5-1 lists the operators provided by dbx.
The# operator takes the line number specified by the expression that follows
it and returns the address of that source line. If you precede the # operator
with a filename enclosed in quotation marks, the # operator returns the
address of the line number in the file you specify. If you precede the #
operator with the name of a procedure, dbx identifies the source file that
contains the procedure and returns the address of the line number in that
file.
For example, to print the address of line 27 in the current source file, enter:
(dbx) print #27
Table 5-1 dbx Language Independent Operators
Operator Description
not Unary operator returning false if the operand is true
or Binary logical operator returning true if either operand is
nonzero
xor Binary operator returning the exclusive-OR of its operands
/ Binary division operator (you can also use “//” for division)
div Binary operator that coerces its operands to integers before
dividing
mod Binary operator returning op1 modulo op2. This is equivalent
to the C “%” operator
#exp Unary operator returning the address of source line specified
by exp
"file"#exp Unary operator returning the address of source line specified
by exp in the file specified by file
proc #exp Unary operator returning the address of source line specified
by exp in the file containing the procedure proc
Page view 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 157 158

Comments to this Manuals

No comments