GDB (xrefs)
Loading...
Searching...
No Matches
Functions | Variables
cp-valprint.c File Reference
#include "defs.h"
#include "gdbsupport/gdb_obstack.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "expression.h"
#include "value.h"
#include "command.h"
#include "gdbcmd.h"
#include "demangle.h"
#include "annotate.h"
#include "c-lang.h"
#include "target.h"
#include "cp-abi.h"
#include "valprint.h"
#include "cp-support.h"
#include "language.h"
#include "extension.h"
#include "typeprint.h"
#include "gdbsupport/byte-vector.h"
#include "gdbarch.h"
#include "cli/cli-style.h"
#include "gdbsupport/selftest.h"
#include "selftest-arch.h"

Go to the source code of this file.

Functions

static void cp_print_static_field (struct type *, struct value *, struct ui_file *, int, const struct value_print_options *)
 
static void cp_print_value (struct value *, struct ui_file *, int, const struct value_print_options *, struct type **)
 
int cp_is_vtbl_ptr_type (struct type *type)
 
int cp_is_vtbl_member (struct type *type)
 
void cp_print_value_fields (struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options, struct type **dont_print_vb, int dont_print_statmem)
 
static void cp_print_value_fields_pp (struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options, struct type **dont_print_vb, int dont_print_statmem)
 
static void cp_find_class_member (struct type **self_p, int *fieldno, LONGEST offset)
 
void cp_print_class_member (const gdb_byte *valaddr, struct type *type, struct ui_file *stream, const char *prefix)
 
void _initialize_cp_valprint ()
 

Variables

static struct obstack dont_print_vb_obstack
 
static struct obstack dont_print_statmem_obstack
 
static struct obstack dont_print_stat_array_obstack
 
const char vtbl_ptr_name [] = "__vtbl_ptr_type"
 

Function Documentation

◆ _initialize_cp_valprint()

void _initialize_cp_valprint ( )

Definition at line 801 of file cp-valprint.c.

Referenced by initialize_all_files().

◆ cp_find_class_member()

static void cp_find_class_member ( struct type ** self_p,
int * fieldno,
LONGEST offset )
static

◆ cp_is_vtbl_member()

int cp_is_vtbl_member ( struct type * type)

Definition at line 75 of file cp-valprint.c.

References type::code(), cp_is_vtbl_ptr_type(), and type::target_type().

Referenced by print_unpacked_pointer().

◆ cp_is_vtbl_ptr_type()

int cp_is_vtbl_ptr_type ( struct type * type)

◆ cp_print_class_member()

void cp_print_class_member ( const gdb_byte * valaddr,
struct type * type,
struct ui_file * stream,
const char * prefix )

◆ cp_print_static_field()

static void cp_print_static_field ( struct type * type,
struct value * val,
struct ui_file * stream,
int recurse,
const struct value_print_options * options )
static

◆ cp_print_value()

static void cp_print_value ( struct value * val,
struct ui_file * stream,
int recurse,
const struct value_print_options * options,
struct type ** dont_print_vb )
static

◆ cp_print_value_fields()

void cp_print_value_fields ( struct value * val,
struct ui_file * stream,
int recurse,
const struct value_print_options * options,
struct type ** dont_print_vb,
int dont_print_statmem )

◆ cp_print_value_fields_pp()

static void cp_print_value_fields_pp ( struct value * val,
struct ui_file * stream,
int recurse,
const struct value_print_options * options,
struct type ** dont_print_vb,
int dont_print_statmem )
static

Variable Documentation

◆ dont_print_stat_array_obstack

struct obstack dont_print_stat_array_obstack
static

Definition at line 46 of file cp-valprint.c.

Referenced by cp_print_static_field(), and cp_print_value_fields().

◆ dont_print_statmem_obstack

struct obstack dont_print_statmem_obstack
static

Definition at line 45 of file cp-valprint.c.

Referenced by cp_print_static_field(), and cp_print_value_fields().

◆ dont_print_vb_obstack

struct obstack dont_print_vb_obstack
static

Definition at line 44 of file cp-valprint.c.

Referenced by cp_print_value().

◆ vtbl_ptr_name

const char vtbl_ptr_name[] = "__vtbl_ptr_type"

Definition at line 58 of file cp-valprint.c.

Referenced by cp_is_vtbl_ptr_type(), and define_symbol().