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 charname () const
 
void set_name (const char *name)
 
bool is_artificial () const
 
void set_is_artificial (bool is_artificial)
 
unsigned int bitsize () const
 
void set_bitsize (unsigned int bitsize)
 
bool is_packed () const
 
bool is_static () const
 
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 charloc_physname () const
 
void set_loc_physname (const char *physname)
 
dwarf2_locexpr_batonloc_dwarf_block () const
 
void set_loc_dwarf_block (dwarf2_locexpr_baton *dwarf_block)
 

Public Attributes

union field_location m_loc
 
unsigned int m_artificial: 1
 
__extension__ enum field_loc_kind m_loc_kind: 3
 
unsigned int m_bitsize: 28
 
struct typem_type
 
const charm_name
 

Detailed Description

Definition at line 545 of file gdbtypes.h.

Member Function Documentation

◆ bitsize()

unsigned int field::bitsize ( ) const
inline

Definition at line 577 of file gdbtypes.h.

◆ is_artificial()

bool field::is_artificial ( ) const
inline

Definition at line 567 of file gdbtypes.h.

◆ is_packed()

bool field::is_packed ( ) const
inline

Definition at line 587 of file gdbtypes.h.

◆ is_static()

bool field::is_static ( ) const
inline

Definition at line 593 of file gdbtypes.h.

◆ loc_bitpos()

LONGEST field::loc_bitpos ( ) const
inline

Definition at line 611 of file gdbtypes.h.

◆ loc_dwarf_block()

dwarf2_locexpr_baton * field::loc_dwarf_block ( ) const
inline

Definition at line 659 of file gdbtypes.h.

◆ loc_enumval()

LONGEST field::loc_enumval ( ) const
inline

Definition at line 623 of file gdbtypes.h.

◆ loc_kind()

field_loc_kind field::loc_kind ( ) const
inline

Definition at line 606 of file gdbtypes.h.

◆ loc_physaddr()

CORE_ADDR field::loc_physaddr ( ) const
inline

Definition at line 635 of file gdbtypes.h.

◆ loc_physname()

const char * field::loc_physname ( ) const
inline

Definition at line 647 of file gdbtypes.h.

◆ name()

const char * field::name ( ) const
inline

Definition at line 557 of file gdbtypes.h.

◆ set_bitsize()

void field::set_bitsize ( unsigned int bitsize)
inline

Definition at line 582 of file gdbtypes.h.

◆ set_is_artificial()

void field::set_is_artificial ( bool is_artificial)
inline

Definition at line 572 of file gdbtypes.h.

◆ set_loc_bitpos()

void field::set_loc_bitpos ( LONGEST bitpos)
inline

Definition at line 617 of file gdbtypes.h.

◆ set_loc_dwarf_block()

void field::set_loc_dwarf_block ( dwarf2_locexpr_baton * dwarf_block)
inline

Definition at line 665 of file gdbtypes.h.

◆ set_loc_enumval()

void field::set_loc_enumval ( LONGEST enumval)
inline

Definition at line 629 of file gdbtypes.h.

◆ set_loc_physaddr()

void field::set_loc_physaddr ( CORE_ADDR physaddr)
inline

Definition at line 641 of file gdbtypes.h.

◆ set_loc_physname()

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

Definition at line 653 of file gdbtypes.h.

◆ set_name()

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

Definition at line 562 of file gdbtypes.h.

◆ set_type()

void field::set_type ( struct type * type)
inline

Definition at line 552 of file gdbtypes.h.

◆ type()

struct type * field::type ( ) const
inline

Definition at line 547 of file gdbtypes.h.

Member Data Documentation

◆ m_artificial

unsigned int field::m_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 678 of file gdbtypes.h.

◆ m_bitsize

unsigned int field::m_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 690 of file gdbtypes.h.

◆ m_loc

union field_location field::m_loc

Definition at line 671 of file gdbtypes.h.

◆ m_loc_kind

__extension__ enum field_loc_kind field::m_loc_kind

Discriminant for union field_location.

Definition at line 682 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 702 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 696 of file gdbtypes.h.


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