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

#include "gdbtypes.h"

Public Attributes

const charphysname
 
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 1536 of file gdbtypes.h.

Member Data Documentation

◆ defaulted

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

Definition at line 1587 of file gdbtypes.h.

◆ dummy

unsigned int fn_field::dummy

Unused.

Definition at line 1591 of file gdbtypes.h.

◆ fcontext

struct type* fn_field::fcontext

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

Definition at line 1561 of file gdbtypes.h.

◆ is_artificial

unsigned int fn_field::is_artificial

Definition at line 1569 of file gdbtypes.h.

◆ is_const

unsigned int fn_field::is_const

Definition at line 1565 of file gdbtypes.h.

◆ is_constructor

unsigned int fn_field::is_constructor

True if this function is a constructor, false otherwise.

Definition at line 1578 of file gdbtypes.h.

◆ is_deleted

unsigned int fn_field::is_deleted

True if this function is deleted, false otherwise.

Definition at line 1582 of file gdbtypes.h.

◆ is_private

unsigned int fn_field::is_private

Definition at line 1567 of file gdbtypes.h.

◆ is_protected

unsigned int fn_field::is_protected

Definition at line 1568 of file gdbtypes.h.

◆ 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 1574 of file gdbtypes.h.

◆ is_volatile

unsigned int fn_field::is_volatile

Definition at line 1566 of file gdbtypes.h.

◆ 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 1548 of file gdbtypes.h.

◆ 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 1556 of file gdbtypes.h.

◆ 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 1596 of file gdbtypes.h.


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