GDB (API)
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_public:1
 
unsigned int is_abstract:1
 
unsigned int is_static:1
 
unsigned int is_final:1
 
unsigned int is_synchronized:1
 
unsigned int is_native:1
 
unsigned int is_artificial:1
 
unsigned int is_stub:1
 
unsigned int is_constructor: 1
 
unsigned int dummy:3
 
unsigned int voffset:16
 

Detailed Description

Definition at line 836 of file gdbtypes.h.

Member Data Documentation

unsigned int fn_field::dummy

Unused.

Definition at line 888 of file gdbtypes.h.

struct type* fn_field::fcontext

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

Definition at line 861 of file gdbtypes.h.

unsigned int fn_field::is_abstract

Definition at line 870 of file gdbtypes.h.

unsigned int fn_field::is_artificial

Definition at line 875 of file gdbtypes.h.

unsigned int fn_field::is_const

Definition at line 865 of file gdbtypes.h.

unsigned int fn_field::is_constructor

True if this function is a constructor, false otherwise.

Definition at line 884 of file gdbtypes.h.

unsigned int fn_field::is_final

Definition at line 872 of file gdbtypes.h.

unsigned int fn_field::is_native

Definition at line 874 of file gdbtypes.h.

unsigned int fn_field::is_private

Definition at line 867 of file gdbtypes.h.

unsigned int fn_field::is_protected

Definition at line 868 of file gdbtypes.h.

unsigned int fn_field::is_public

Definition at line 869 of file gdbtypes.h.

unsigned int fn_field::is_static

Definition at line 871 of file gdbtypes.h.

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

unsigned int fn_field::is_synchronized

Definition at line 873 of file gdbtypes.h.

unsigned int fn_field::is_volatile

Definition at line 866 of file gdbtypes.h.

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

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

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


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