User`s guide

33
Chapter 5
5. Examining and Changing Data
This chapter describes how to examine and change data in your program
while running it under dbx. Topics covered include:
“Using Expressions”
“Printing Expressions”
“Using Data Types and Type Coercion (Casts)”
“Displaying and Changing Program Variables”
“Determining the Scope of Variables”
“Displaying Type Declarations”
“Examining the Stack”
“Using Interactive Function Calls”
“C++ Considerations”
Using Expressions
Many dbx commands accept one or more expressions as arguments.
Expressions can consist of constants, dbx variables, program variables, and
operators. This section discusses operators and constants. “Creating and
Removing dbx Variables” on page 19 describes dbx variables, and
“Displaying and Changing Program Variables” on page 39 describes
program variables.
Operators
In general, dbx recognizes most expression operators from C, Fortran 77, and
Pascal. dbx also provides some of its own operators. Operators follow the C