User`s guide

36
Chapter 5: Examining and Changing Data
Table 5-4 lists the Fortran 77 language operators recognized by dbx. Note that
dbx does not recognize Fortran logical operators (such as .or. and .TRUE.).
Note: Fortran array subscripting must use “[]” not “()”. For example, if x is
a two-dimension Fortran array, print x(1,2) won’t work; however, print
x[1,2]
will work. If an array is defined as a Fortran array, refer to it with the
standard Fortran subscript ordering.
Constants
You can use both numeric and string constants under dbx.
Note: Expressions cannot contain constants defined by #define declarations
to the C preprocessor.
Numeric Constants
In numeric expressions, you can use any valid integer or floating point
constants. By default, dbx assumes that numeric constants are in decimal.
You can set the default input base to octal by setting the dbx variable $octin
to a nonzero value. You can set the default input base to hexadecimal by
setting the dbx variable $hexin to a nonzero value. If you set both $octin and
$hexin to nonzero values, $hexin takes precedence.
You can override the default input type by prefixing “0x” to indicate a
hexadecimal constant, or “0t” to indicate a decimal constant. For example,
“0t23” is decimal 23 (which equals hexadecimal 0x17), and “0x2A” is
hexadecimal 2A (which equals decimal 42).
By default, dbx prints the value of numeric expressions in decimal. You can
set the default output base to octal by setting the dbx variable $octints to a
nonzero value. You can set the default output base to hexadecimal by setting
Table 5-4 Fortran 77 Operators Recognized by dbx
Type Operators
Unary + -
Binary + - * /