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

#include "gdbtypes.h"

Public Attributes

const char * physname
 
struct typetype
 
struct typefcontext
 
unsigned int is_const:1
 
unsigned int is_volatile:1
 
unsigned int is_private:1
 
unsigned int is_protected:1
 
unsigned int is_artificial:1
 
unsigned int is_stub:1
 
unsigned int is_constructor: 1
 
unsigned int is_deleted: 1
 
__extension__ enum dwarf_defaulted_attribute defaulted: 2
 
unsigned int dummy:6
 
unsigned int voffset:16
 

Detailed Description

Definition at line 1486 of file gdbtypes.h.

Member Data Documentation

◆ defaulted

__extension__ enum dwarf_defaulted_attribute fn_field::defaulted

DW_AT_defaulted attribute for this function. The value is one of the DW_DEFAULTED constants.

Definition at line 1537 of file gdbtypes.h.

Referenced by dwarf2_add_member_fn().

◆ dummy

unsigned int fn_field::dummy

Unused.

Definition at line 1541 of file gdbtypes.h.

◆ fcontext

struct type* fn_field::fcontext

For virtual functions. First baseclass that defines this virtual function.

Definition at line 1511 of file gdbtypes.h.

Referenced by dwarf2_add_member_fn().

◆ is_artificial

unsigned int fn_field::is_artificial

Definition at line 1519 of file gdbtypes.h.

Referenced by dwarf2_add_member_fn().

◆ is_const

unsigned int fn_field::is_const

Definition at line 1515 of file gdbtypes.h.

Referenced by gdb_mangle_name().

◆ is_constructor

unsigned int fn_field::is_constructor

True if this function is a constructor, false otherwise.

Definition at line 1528 of file gdbtypes.h.

Referenced by c_type_print_base_struct_union(), dwarf2_add_member_fn(), and gdb_mangle_name().

◆ is_deleted

unsigned int fn_field::is_deleted

True if this function is deleted, false otherwise.

Definition at line 1532 of file gdbtypes.h.

Referenced by dwarf2_add_member_fn().

◆ is_private

unsigned int fn_field::is_private

Definition at line 1517 of file gdbtypes.h.

Referenced by dwarf2_add_member_fn().

◆ is_protected

unsigned int fn_field::is_protected

Definition at line 1518 of file gdbtypes.h.

Referenced by dwarf2_add_member_fn().

◆ is_stub

unsigned int fn_field::is_stub

A stub method only has some fields valid (but they are enough to reconstruct the rest of the fields).

Definition at line 1524 of file gdbtypes.h.

◆ is_volatile

unsigned int fn_field::is_volatile

Definition at line 1516 of file gdbtypes.h.

Referenced by gdb_mangle_name().

◆ physname

const char* fn_field::physname

If is_stub is clear, this is the mangled name which we can look up to find the address of the method (FIXME: it would be cleaner to have a pointer to the struct symbol here instead).

If is_stub is set, this is the portion of the mangled name which specifies the arguments. For example, "ii", if there are two int arguments, or "" if there are no arguments. See gdb_mangle_name for the conversion from this format to the one used if is_stub is clear.

Definition at line 1498 of file gdbtypes.h.

Referenced by c_type_print_base_struct_union(), dwarf2_add_member_fn(), and gdb_mangle_name().

◆ type

struct type* fn_field::type

The function type for the method.

(This comment used to say "The return value of the method", but that's wrong. The function type is expected here, i.e. something with TYPE_CODE_METHOD, and not the return-value type).

Definition at line 1506 of file gdbtypes.h.

Referenced by dwarf2_add_member_fn(), and find_method_list().

◆ voffset

unsigned int fn_field::voffset

Index into that baseclass's virtual function table, minus 2; else if static: VOFFSET_STATIC; else: 0.

Definition at line 1546 of file gdbtypes.h.

Referenced by compute_vtable_size(), dwarf2_add_member_fn(), and gnuv3_find_method_in().


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