Red Hat ENTERPRISE LINUX 4 - DEBUGGING WITH GDB Manual page 126

Debugging with gdb
Hide thumbs Also See for ENTERPRISE LINUX 4 - DEBUGGING WITH GDB:
Table of Contents

Advertisement

116
.*, - *
Dereferences of pointers to members.
[]
Array indexing.
()
Function parameter list. Same precedence as
::
C++ scope resolution operator. Defined on
::
Doubled colons also represent the gdb scope operator (refer to Section 10.1 Expressions). 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.
14.4.1.2. C and C++constants
gdb allows you to express the constants of C and C++ in the following ways:
Integer constants are a sequence of digits. Octal constants are specified by a leading
and hexadecimal constants by a leading
that the constant should be treated as a
Floating point constants are a sequence of digits, followed by a decimal point, followed by a
sequence of digits, and optionally followed by an exponent. An exponent is of the form:
, where
e[[+]|-]
nnn
A floating-point constant may also end with a letter
treated as being of the
which specifies a
long double
Enumerated constants consist of enumerated identifiers, or their integral equivalents.
Character constants are a single character surrounded by single quotes (
value of the corresponding character (usually its ascii value). Within quotes, the single character
may be represented by a letter or by escape sequences, which are of the form
the octal representation of the character's ordinal value; or of the form
special character--for example,
String constants are a sequence of character constants surrounded by double quotes (
character constant (as described above) may appear. Double quotes within the string must be pre-
ceded by a backslash, so for instance
Pointer constants are an integral value. You can also write pointers to constants using the C operator
.
&
Array constants are comma-separated lists surrounded by braces
three-element array of integers,
&"there", &"fred"}
is defined as
[
]
*(
a
i
, above.
long
is another sequence of digits. The
nnn
(as opposed to the default
float
constant.
for newline.
\n
"a\"b'c"
{{1,2}, {3,4}, {5,6}}
is a three-element array of pointers.
Chapter 14. Using gdb with Different Languages
. Same precedence as
+
)
a
i
.
-
,
struct
union
or
. Constants may also end with a letter
0x
0X
value.
or
, specifying that the constant should be
f
F
double
is a string of five characters.
.
-
, and
types.
class
is optional for positive exponents.
+
) type; or with a letter
), or a number--the ordinal
'
\
nnn
, where
\
x
and
; for example,
{
}
is a three-by-two array, and
(that is, zero),
0
, specifying
l
or
,
l
L
, where
is
nnn
is a predefined
x
). Any valid
"
is a
{1,2,3}
{&"hi",

Advertisement

Table of Contents
loading

Table of Contents