GDB (xrefs)
Functions | Variables
/home/stan/gdb/src/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 "gdb_string.h"
#include "c-lang.h"
#include "target.h"
#include "cp-abi.h"
#include "valprint.h"
#include "cp-support.h"
#include "language.h"
#include "python/python.h"
#include "exceptions.h"
#include "typeprint.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)
void _initialize_cp_valprint (void)
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 *, const gdb_byte *, int, CORE_ADDR, struct ui_file *, int, const 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, const gdb_byte *valaddr, int offset, CORE_ADDR address, struct ui_file *stream, int recurse, const 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, int offset, CORE_ADDR address, struct ui_file *stream, int recurse, const 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 **domain_p, int *fieldno, LONGEST offset)
void cp_print_class_member (const gdb_byte *valaddr, struct type *type, struct ui_file *stream, char *prefix)

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

void _initialize_cp_valprint ( void  )
static void cp_find_class_member ( struct type **  domain_p,
int fieldno,
LONGEST  offset 
) [static]
int cp_is_vtbl_member ( struct type type)
int cp_is_vtbl_ptr_type ( struct type type)

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

References type_name_no_tag(), and vtbl_ptr_name.

Referenced by c_val_print(), and cp_is_vtbl_member().

void cp_print_class_member ( const gdb_byte valaddr,
struct type type,
struct ui_file stream,
char *  prefix 
)
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]
static void cp_print_value ( struct type type,
struct type real_type,
const gdb_byte valaddr,
int  offset,
CORE_ADDR  address,
struct ui_file stream,
int  recurse,
const struct value val,
const struct value_print_options options,
struct type **  dont_print_vb 
) [static]
void cp_print_value_fields ( struct type type,
struct type real_type,
const gdb_byte valaddr,
int  offset,
CORE_ADDR  address,
struct ui_file stream,
int  recurse,
const 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,
int  offset,
CORE_ADDR  address,
struct ui_file stream,
int  recurse,
const struct value val,
const struct value_print_options options,
struct type **  dont_print_vb,
int  dont_print_statmem 
)
static void show_objectprint ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
) [static]

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

References _, and fprintf_filtered().

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 64 of file cp-valprint.c.

References _, and fprintf_filtered().

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

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

References _, and fprintf_filtered().


Variable Documentation

struct obstack dont_print_stat_array_obstack [static]

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

Referenced by cp_print_static_field(), and cp_print_value_fields().

struct obstack dont_print_statmem_obstack [static]

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

Referenced by cp_print_static_field(), and cp_print_value_fields().

struct obstack dont_print_vb_obstack [static]

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

Referenced by cp_print_value().

const char vtbl_ptr_name[] = "__vtbl_ptr_type"

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

Referenced by cp_is_vtbl_ptr_type(), and define_symbol().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines