Dbx 1024 User's Guide Page 51

  • Download
  • Add to my manuals
  • Print
  • Page
    / 158
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 50
Printing Expressions
37
the dbx variable $hexints to a nonzero value. If you set both $octints and
$hexints to nonzero values, $hexints takes precedence.
String Constants
Most dbx expressions cannot include string constants. The print and printf
commands are two of the dbx commands that accept string constants as
arguments. You can also use the set command to assign a string value to a
dbx variable.
Otherwise, string constants are useful only as arguments to functions that
you call interactively. See “Using Interactive Function Calls” on page 53 for
information on interactive function calls.
You can use either the double-quote character (") or the single-quote
character () to quote strings in dbx.
In general, dbx recognizes the following escape sequences in quoted strings
(following the standard C language usage):
\\ \n \r \f \b \t \’ \" \a
Printing Expressions
dbx provides the following commands for printing values of expressions:
print [exp1 [, exp2, ...] ]
Prints the value(s) of the specified expression(s).
printd [exp1 [, exp2, ... ] ]
Prints the value(s) of the specified expression(s) in decimal.
(pd is an alias for printd. See “Creating and Removing dbx
Variables” on page 19 for more information about dbx
aliases.)
printo [exp1 [, exp2, ... ] ]
Prints the value(s) of the specified expression(s) in octal. (po
is an alias for printo.)
printx [exp1 [, exp2, ... ] ]
Prints the value(s) of the specified expression(s) in
hexadecimal. (px is an alias for printx.)
Page view 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 157 158

Comments to this Manuals

No comments