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

#include "gdbtypes.h"

Public Member Functions

struct typetype () const
 
void set_type (struct type *type)
 
const char * name () const
 
void set_name (const char *name)
 
field_loc_kind loc_kind () const
 
LONGEST loc_bitpos () const
 
void set_loc_bitpos (LONGEST bitpos)
 
LONGEST loc_enumval () const
 
void set_loc_enumval (LONGEST enumval)
 
CORE_ADDR loc_physaddr () const
 
void set_loc_physaddr (CORE_ADDR physaddr)
 
const char * loc_physname () const
 
void set_loc_physname (const char *physname)
 
dwarf2_locexpr_baton * loc_dwarf_block () const
 
void set_loc_dwarf_block (dwarf2_locexpr_baton *dwarf_block)
 

Public Attributes

union field_location m_loc
 
unsigned int artificial: 1
 
__extension__ enum field_loc_kind m_loc_kind: 3
 
unsigned int bitsize: 28
 
struct typem_type
 
const char * m_name
 

Detailed Description

Definition at line 557 of file gdbtypes.h.

Member Function Documentation

◆ loc_bitpos()

LONGEST field::loc_bitpos ( ) const
inline

Definition at line 586 of file gdbtypes.h.

◆ loc_dwarf_block()

dwarf2_locexpr_baton * field::loc_dwarf_block ( ) const
inline

Definition at line 634 of file gdbtypes.h.

◆ loc_enumval()

LONGEST field::loc_enumval ( ) const
inline

Definition at line 598 of file gdbtypes.h.

◆ loc_kind()

field_loc_kind field::loc_kind ( ) const
inline

Definition at line 581 of file gdbtypes.h.

◆ loc_physaddr()

CORE_ADDR field::loc_physaddr ( ) const
inline

Definition at line 610 of file gdbtypes.h.

◆ loc_physname()

const char * field::loc_physname ( ) const
inline

Definition at line 622 of file gdbtypes.h.

◆ name()

const char * field::name ( ) const
inline

Definition at line 569 of file gdbtypes.h.

◆ set_loc_bitpos()

void field::set_loc_bitpos ( LONGEST  bitpos)
inline

Definition at line 592 of file gdbtypes.h.

◆ set_loc_dwarf_block()

void field::set_loc_dwarf_block ( dwarf2_locexpr_baton *  dwarf_block)
inline

Definition at line 640 of file gdbtypes.h.

◆ set_loc_enumval()

void field::set_loc_enumval ( LONGEST  enumval)
inline

Definition at line 604 of file gdbtypes.h.

◆ set_loc_physaddr()

void field::set_loc_physaddr ( CORE_ADDR  physaddr)
inline

Definition at line 616 of file gdbtypes.h.

◆ set_loc_physname()

void field::set_loc_physname ( const char *  physname)
inline

Definition at line 628 of file gdbtypes.h.

◆ set_name()

void field::set_name ( const char *  name)
inline

Definition at line 574 of file gdbtypes.h.

◆ set_type()

void field::set_type ( struct type type)
inline

Definition at line 564 of file gdbtypes.h.

◆ type()

struct type * field::type ( ) const
inline

Definition at line 559 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 653 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 665 of file gdbtypes.h.

◆ m_loc

union field_location field::m_loc

Definition at line 646 of file gdbtypes.h.

◆ m_loc_kind

__extension__ enum field_loc_kind field::m_loc_kind

Discriminant for union field_location.

Definition at line 657 of file gdbtypes.h.

◆ m_name

const char* field::m_name

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

Definition at line 677 of file gdbtypes.h.

◆ m_type

struct type* field::m_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 671 of file gdbtypes.h.


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