GDB (xrefs)
|
#include "gdbtypes.h"
Public Attributes | |
int | discriminant_index |
bool | is_unsigned |
gdb::array_view< variant > | variants |
A variant part. Each variant part has an optional discriminant and holds an array of variants. This struct corresponds to DW_TAG_variant_part in DWARF.
Definition at line 255 of file gdbtypes.h.
int variant_part::discriminant_index |
The index of the discriminant field in the outer type. This is an index into the type's array of fields. If this is -1, there is no discriminant, and only the default variant can be considered to be selected.
Definition at line 261 of file gdbtypes.h.
Referenced by alloc_rust_variant(), compute_variant_fields_inner(), create_one_variant_part(), and print_variant_part().
bool variant_part::is_unsigned |
True if this discriminant is unsigned; false if signed. This comes from the type of the discriminant.
Definition at line 265 of file gdbtypes.h.
Referenced by alloc_rust_variant(), compute_variant_fields_inner(), and create_one_variant_part().
gdb::array_view<variant> variant_part::variants |
The variants that are controlled by this variant part. Note that these will always be sorted by field number.
Definition at line 269 of file gdbtypes.h.
Referenced by alloc_rust_variant(), compute_variant_fields_inner(), create_one_variant_part(), and print_variant_part().