GDB (xrefs)

Public Attributes | List of all members
field Struct Reference

`#include "gdbtypes.h"`

## Public Attributes
union field_location | loc
unsigned int | artificial: 1
__extension__ enum field_loc_kind | loc_kind: 3
unsigned int | bitsize: 28
struct type * | type
const char * | name

## Detailed Description

Definition at line 517 of file gdbtypes.h.

## Member Data Documentation

## ◆ artificial

unsigned int field::artificial

For a function or member type, this is 1 if the argument is marked artificial. Artificial arguments should not be shown to the user. For TYPE_CODE_RANGE it is set if the specific bound is not defined.

Definition at line 526 of file gdbtypes.h.

## ◆ bitsize

unsigned int field::bitsize

Size of this field, in bits, or zero if not packed. If non-zero in an array type, indicates the element size in bits (used only in Ada at the moment). For an unpacked field, the field's type's length says how many bytes the field occupies.

Definition at line 538 of file gdbtypes.h.

Referenced by parse_symbol().

## ◆ loc

union field_location field::loc

Definition at line 519 of file gdbtypes.h.

## ◆ loc_kind

__extension__ enum field_loc_kind field::loc_kind

Discriminant for union field_location.

Definition at line 530 of file gdbtypes.h.

## ◆ name

const char* field::name

Name of field, value or argument. NULL for range bounds, array domains, and member function arguments.

Definition at line 550 of file gdbtypes.h.

Referenced by coff_read_struct_type(), dwarf2_add_field(), parse_symbol(), read_baseclasses(), read_cpp_abbrev(), read_one_struct_field(), and yyparse().

## ◆ type

struct type* field::type

In a struct or union type, type of this field.

- In a function or member type, type of this argument.
- In an array type, the domain-type of the array.

Definition at line 544 of file gdbtypes.h.

Referenced by check_stub_method(), cp_type_print_method_args(), dwarf2_add_field(), read_baseclasses(), read_cpp_abbrev(), and read_one_struct_field().

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

- /tmp/gdb-8.1/gdb/gdbtypes.h