GDB (xrefs)
Functions | Variables
/tmp/gdb-7.10/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"

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 **self_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
 
EXPORTED_CONST char vtbl_ptr_name [] = "__vtbl_ptr_type"
 

Function Documentation

void _initialize_cp_valprint ( void  )
static void cp_find_class_member ( struct type **  self_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 97 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 52 of file cp-valprint.c.

References _, and fprintf_filtered().

Referenced by _initialize_cp_valprint().

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

References _, and fprintf_filtered().

Referenced by _initialize_cp_valprint().

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

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

References _, and fprintf_filtered().

Referenced by _initialize_cp_valprint().

Variable Documentation

struct obstack dont_print_stat_array_obstack
static
struct obstack dont_print_statmem_obstack
static
struct obstack dont_print_vb_obstack
static

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

Referenced by _initialize_cp_valprint(), and cp_print_value().

EXPORTED_CONST char vtbl_ptr_name[] = "__vtbl_ptr_type"

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

Referenced by cp_is_vtbl_ptr_type(), and define_symbol().