GDB (API)
Loading...
Searching...
No Matches
Public Attributes | List of all members
variant_part Struct Reference

#include "gdbtypes.h"

Inheritance diagram for variant_part:

Public Attributes

int discriminant_index
 
bool is_unsigned
 
gdb::array_view< variantvariants
 

Detailed Description

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.

Member Data Documentation

◆ discriminant_index

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.

◆ is_unsigned

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.

◆ variants

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.


The documentation for this struct was generated from the following file: