GDB (API)
|
#include "gdbtypes.h"
Public Attributes | |
struct type * | pointer_type |
struct type * | reference_type |
struct type * | rvalue_reference_type |
struct type * | chain |
unsigned | align_log2: TYPE_ALIGN_BITS |
unsigned | m_instance_flags: 9 |
ULONGEST | m_length |
struct main_type * | main_type |
A `‘struct type’' describes a particular instance of a type, with some particular qualification.
Definition at line 950 of file gdbtypes.h.
void type::add_dyn_prop | ( | dynamic_prop_node_kind | kind, |
dynamic_prop | prop ) |
Given a dynamic property PROP of a given KIND, add this dynamic property to this type.
This function assumes that this type is objfile-owned.
gdbarch * type::arch | ( | ) | const |
|
inline |
Definition at line 1390 of file gdbtypes.h.
Return the bit offset for this integer type. Only valid for integer (TYPE_SPECIFIC_INT) types.
Definition at line 1424 of file gdbtypes.h.
Return the logical (bit) size for this integer type. Only valid for integer (TYPE_SPECIFIC_INT) types.
Definition at line 1416 of file gdbtypes.h.
|
inline |
Return true if this is an integer type whose logical (bit) size differs from its storage size; false otherwise. Always return false for non-integer (i.e., non-TYPE_SPECIFIC_INT) types.
Definition at line 1408 of file gdbtypes.h.
|
inline |
Definition at line 1090 of file gdbtypes.h.
|
inline |
Definition at line 1065 of file gdbtypes.h.
|
inline |
Definition at line 956 of file gdbtypes.h.
dynamic_prop * type::dyn_prop | ( | dynamic_prop_node_kind | kind | ) | const |
Return the dynamic property of the requested KIND from this type's list of dynamic properties.
|
inline |
Definition at line 1250 of file gdbtypes.h.
Definition at line 1012 of file gdbtypes.h.
Definition at line 1006 of file gdbtypes.h.
|
inline |
Assuming that THIS is a TYPE_CODE_FIXED_POINT, return a reference to this type's fixed_point_info.
Definition at line 1306 of file gdbtypes.h.
Assuming that THIS is a TYPE_CODE_FIXED_POINT, return its scaling factor.
Assuming that THIS is a TYPE_CODE_FIXED_POINT, return its base type.
In other words, this returns the type after having peeled all intermediate type layers (such as TYPE_CODE_RANGE, for instance). The TYPE_CODE of the type returned is guaranteed to be a TYPE_CODE_FIXED_POINT.
|
inline |
Definition at line 1114 of file gdbtypes.h.
|
inline |
Definition at line 1172 of file gdbtypes.h.
|
inline |
Definition at line 1032 of file gdbtypes.h.
|
inline |
Definition at line 1053 of file gdbtypes.h.
bool type::is_array_like | ( | ) |
|
inline |
Definition at line 1267 of file gdbtypes.h.
|
inline |
Definition at line 1236 of file gdbtypes.h.
|
inline |
Definition at line 1281 of file gdbtypes.h.
|
inline |
Definition at line 1216 of file gdbtypes.h.
|
inline |
Definition at line 1293 of file gdbtypes.h.
|
inline |
Definition at line 1353 of file gdbtypes.h.
|
inline |
Definition at line 1431 of file gdbtypes.h.
|
inline |
Definition at line 1159 of file gdbtypes.h.
bool type::is_string_like | ( | ) |
|
inline |
Definition at line 1128 of file gdbtypes.h.
|
inline |
Definition at line 1100 of file gdbtypes.h.
|
inline |
Definition at line 1186 of file gdbtypes.h.
Definition at line 1446 of file gdbtypes.h.
|
inline |
Definition at line 983 of file gdbtypes.h.
Definition at line 968 of file gdbtypes.h.
Definition at line 994 of file gdbtypes.h.
|
inline |
Definition at line 1379 of file gdbtypes.h.
void type::remove_dyn_prop | ( | dynamic_prop_node_kind | kind | ) |
Remove dynamic property of kind KIND from this type, if it exists.
|
inline |
Definition at line 1083 of file gdbtypes.h.
Definition at line 962 of file gdbtypes.h.
Definition at line 1255 of file gdbtypes.h.
Definition at line 1019 of file gdbtypes.h.
|
inline |
Assuming that THIS is a TYPE_CODE_FIXED_POINT, set this type's fixed_point_info to INFO.
Definition at line 1317 of file gdbtypes.h.
Definition at line 1119 of file gdbtypes.h.
Definition at line 1177 of file gdbtypes.h.
Definition at line 1047 of file gdbtypes.h.
|
inline |
Definition at line 1059 of file gdbtypes.h.
Definition at line 1272 of file gdbtypes.h.
Definition at line 1241 of file gdbtypes.h.
Definition at line 1286 of file gdbtypes.h.
Definition at line 1221 of file gdbtypes.h.
Definition at line 1298 of file gdbtypes.h.
Definition at line 1164 of file gdbtypes.h.
Definition at line 1133 of file gdbtypes.h.
Definition at line 1105 of file gdbtypes.h.
Definition at line 1191 of file gdbtypes.h.
Definition at line 988 of file gdbtypes.h.
Definition at line 974 of file gdbtypes.h.
Definition at line 1000 of file gdbtypes.h.
|
inline |
Definition at line 1368 of file gdbtypes.h.
|
inline |
Definition at line 1359 of file gdbtypes.h.
Definition at line 1206 of file gdbtypes.h.
Definition at line 1149 of file gdbtypes.h.
Definition at line 1042 of file gdbtypes.h.
|
inline |
Definition at line 1201 of file gdbtypes.h.
|
inline |
Definition at line 1144 of file gdbtypes.h.
Definition at line 1037 of file gdbtypes.h.
unsigned type::align_log2 |
The alignment for this type. Zero means that the alignment was not specified in the debug info. Note that this is stored in a funny way: as the log base 2 (plus 1) of the alignment; so a value of 1 means the alignment is 1, and a value of 9 means the alignment is 256.
Definition at line 1479 of file gdbtypes.h.
Variant chain. This points to a type that differs from this one only in qualifiers and length. Currently, the possible qualifiers are const, volatile, code-space, data-space, and address class. The length may differ only when one of the address class flags are set. The variants are linked in a circular ring and share MAIN_TYPE.
Definition at line 1471 of file gdbtypes.h.
unsigned type::m_instance_flags |
Flags specific to this instance of the type, indicating where on the ring we are.
For TYPE_CODE_TYPEDEF the flags of the typedef type should be binary or-ed with the target type, with a special case for address class and space class. For example if this typedef does not specify any new qualifiers, TYPE_INSTANCE_FLAGS is 0 and the instance flags are completely inherited from the target type. No qualifiers can be cleared by the typedef. See also check_typedef.
Definition at line 1491 of file gdbtypes.h.
ULONGEST type::m_length |
Length of storage for a value of this type. The value is the expression in host bytes of what sizeof(type) would return. This size includes padding. For example, an i386 extended-precision floating point value really only occupies ten bytes, but most ABI's declare its size to be 12 bytes, to preserve alignment. A ‘struct type’ representing such a floating-point type would have a ‘length’ value of 12, even though the last two bytes are unused.
Since this field is expressed in host bytes, its value is appropriate to pass to memcpy and such (it is assumed that GDB itself always runs on an 8-bits addressable architecture). However, when using it for target address arithmetic (e.g. adding it to a target address), the type_length_units function should be used in order to get the length expressed in target addressable memory units.
Definition at line 1509 of file gdbtypes.h.
Core type, shared by a group of qualified types.
Definition at line 1513 of file gdbtypes.h.
Type that is a pointer to this type. NULL if no such pointer-to type is known yet. The debugger may add the address of such a type if it has to construct one later.
Definition at line 1454 of file gdbtypes.h.
C++: also need a reference type.
Definition at line 1458 of file gdbtypes.h.
A C++ rvalue reference type added in C++11.
Definition at line 1462 of file gdbtypes.h.