|Debugging with GDB|
For the purposes of C and C++, the following definitions hold:
intwith any of its storage-class specifiers;
enum; and, for C++,
long double(if supported by the target platform).
The following operators are supported. They are listed here in order of increasing precedence:
=b, and translated to a
=a op b. op
=have the same precedence. The operator op is any one of the operators
:c can be thought of as: if a then b else c. The argument a should be of an integral type.
For debugging C++, gdb implements a use of ‘&’ beyond what is
allowed in the C++ language itself: you can use ‘&(&ref)’
to examine the address
where a C++ reference variable (declared with ‘&ref’) is
]is defined as
). Same precedence as
If an operator is redefined in the user code, gdb usually attempts to invoke the redefined version instead of using the operator's predefined meaning.