The `c
' symbol descriptor indicates that this stab represents a
constant. This symbol descriptor is an exception to the general rule
that symbol descriptors are followed by type information. Instead, it
is followed by `=
' and one of the following:
b value
c value
e type-information , value
int
, but it does not
do anything violent, and future debuggers could be extended to accept
integers of any size (whether unsigned or not). This constant type is
usually documented as being only for enumeration constants, but GDB has
never imposed that restriction; I don't know about other debuggers.
i value
int
); to specify
the type explicitly, use `e
' instead.
r value
INF
'
(optionally preceded by a sign) for infinity, `QNAN
' for a quiet
NaN (not-a-number), or `SNAN
' for a signalling NaN. If it is a
normal number the format is that accepted by the C library function
atof
.
s string
'
'
(in which case `'
' characters within the string are represented as
`\'
' or `"
' (in which case `"
' characters within the
string are represented as `\"
').
S type-information , elements , bits , pattern
The boolean, character, string, and set constants are not supported by GDB 4.9, but it ignores them. GDB 4.8 and earlier gave an error message and refused to read symbols from the file containing the constants.
The above information is followed by `;
'.
Packaging copyright © 1988-2000 OAR Corporation
Context copyright by each document's author. See Free Software Foundation for information.