GDB (API)

Public Attributes | List of all members
fn_field Struct Reference

`#include "gdbtypes.h"`

## Public Attributes
const char * | physname
struct type * | type
struct type * | fcontext
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 | dummy:9
unsigned int | voffset:16

## Detailed Description

Definition at line 832 of file gdbtypes.h.

## Member Data Documentation

## ◆ dummy

unsigned int fn_field::dummy

Unused.

Definition at line 878 of file gdbtypes.h.

## ◆ fcontext

struct type* fn_field::fcontext

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

Definition at line 857 of file gdbtypes.h.

## ◆ is_artificial

unsigned int fn_field::is_artificial

Definition at line 865 of file gdbtypes.h.

## ◆ is_const

unsigned int fn_field::is_const

Definition at line 861 of file gdbtypes.h.

## ◆ is_constructor

unsigned int fn_field::is_constructor

True if this function is a constructor, false otherwise.

Definition at line 874 of file gdbtypes.h.

## ◆ is_private

unsigned int fn_field::is_private

Definition at line 863 of file gdbtypes.h.

## ◆ is_protected

unsigned int fn_field::is_protected

Definition at line 864 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 870 of file gdbtypes.h.

## ◆ is_volatile

unsigned int fn_field::is_volatile

Definition at line 862 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 844 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 852 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 883 of file gdbtypes.h.

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

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