GDB (xrefs)
Functions | Variables
/tmp/gdb-8.1/gdb/cp-valprint.c File Reference
#include "defs.h"
#include "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 "byte-vector.h"

Go to the source code of this file.

Functions

static void show_vtblprint (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_objectprint (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_static_field_print (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
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 type *, struct type *, LONGEST, CORE_ADDR, struct ui_file *, int, struct value *, 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 type *type, struct type *real_type, LONGEST offset, CORE_ADDR address, struct ui_file *stream, int recurse, struct value *val, const struct value_print_options *options, struct type **dont_print_vb, int dont_print_statmem)
 
void cp_print_value_fields_rtti (struct type *type, const gdb_byte *valaddr, LONGEST offset, CORE_ADDR address, struct ui_file *stream, int recurse, struct value *val, 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 (void)
 

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 ( void  )

◆ 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)

◆ 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 type type,
struct type real_type,
LONGEST  offset,
CORE_ADDR  address,
struct ui_file stream,
int  recurse,
struct value val,
const struct value_print_options options,
struct type **  dont_print_vb 
)
static

◆ cp_print_value_fields()

void cp_print_value_fields ( struct type type,
struct type real_type,
LONGEST  offset,
CORE_ADDR  address,
struct ui_file stream,
int  recurse,
struct value val,
const struct value_print_options options,
struct type **  dont_print_vb,
int  dont_print_statmem 
)

◆ cp_print_value_fields_rtti()

void cp_print_value_fields_rtti ( struct type type,
const gdb_byte valaddr,
LONGEST  offset,
CORE_ADDR  address,
struct ui_file stream,
int  recurse,
struct value val,
const struct value_print_options options,
struct type **  dont_print_vb,
int  dont_print_statmem 
)

◆ show_objectprint()

static void show_objectprint ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

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

References _, and fprintf_filtered().

Referenced by _initialize_cp_valprint().

◆ show_static_field_print()

static void show_static_field_print ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

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

References _, and fprintf_filtered().

Referenced by _initialize_cp_valprint().

◆ show_vtblprint()

static void show_vtblprint ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

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

References _, and fprintf_filtered().

Referenced by _initialize_cp_valprint().

Variable Documentation

◆ dont_print_stat_array_obstack

struct obstack dont_print_stat_array_obstack
static

◆ dont_print_statmem_obstack

struct obstack dont_print_statmem_obstack
static

◆ dont_print_vb_obstack

struct obstack dont_print_vb_obstack
static

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

Referenced by _initialize_cp_valprint(), and cp_print_value().

◆ vtbl_ptr_name

const char vtbl_ptr_name[] = "__vtbl_ptr_type"