Chapter 10: Expressions and Symbols in Debugger Commands
Expression Elements
Most debugger commands require simple C expressions that evaluate to a
scalar value. Simple C expressions are the same as standard algebraic
expressions. These expressions evaluate to a single scalar value. Expressions
consist of the following elements:
•
operators
•
constants
•
program symbols
•
debugger symbols
•
built-in symbols
•
macros
•
keywords
•
registers
•
addresses
•
address ranges
•
line numbers
Debugger commands allow any legal C expression. The following paragraphs
describe elements of C expressions used in debugger commands.
Operators
The debugger supports most standard C language operators and special
debugger operators.
C Operators
C operators include arithmetic operators, relational operators, assignment
operators, and structure, union, and array operators. The following table lists
these operators in order of precedence (first line of the table is the highest
precedence).
Expression Elements
417