GDB (xrefs)
|
#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" |
void _initialize_cp_valprint | ( | ) |
Definition at line 801 of file cp-valprint.c.
Referenced by initialize_all_files().
|
static |
Definition at line 641 of file cp-valprint.c.
References check_typedef(), cp_find_class_member(), f(), type::field(), type::length(), field::loc_bitpos(), type::num_fields(), QUIT, field::type(), and TYPE_N_BASECLASSES.
Referenced by cp_find_class_member(), and cp_print_class_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().
int cp_is_vtbl_ptr_type | ( | struct type * | type | ) |
Definition at line 64 of file cp-valprint.c.
References type::name(), and vtbl_ptr_name.
Referenced by c_value_print_array(), c_value_print_ptr(), c_value_print_struct(), and cp_is_vtbl_member().
void cp_print_class_member | ( | const gdb_byte * | valaddr, |
struct type * | type, | ||
struct ui_file * | stream, | ||
const char * | prefix ) |
Definition at line 684 of file cp-valprint.c.
References c_type_print_base(), cp_find_class_member(), extract_signed_integer(), type::field(), fputs_styled(), gdb_printf(), gdb_puts(), type::length(), name, field::name(), type::name(), prefix, cli_style_option::style(), type_byte_order(), type_print_raw_options, TYPE_SELF_TYPE, and variable_name_style.
Referenced by generic_value_print_memberptr().
|
static |
Definition at line 560 of file cp-valprint.c.
References value::address, check_typedef(), type::code(), common_val_print(), cp_print_value_fields_pp(), current_language, dont_print_stat_array_obstack, dont_print_statmem_obstack, value::entirely_optimized_out(), fputs_styled(), metadata_style, cli_style_option::style(), type::target_type(), and val_print_optimized_out().
Referenced by cp_print_value_fields().
|
static |
Definition at line 414 of file cp-valprint.c.
References value::address, baseclass_offset(), BASETYPE_VIA_VIRTUAL, check_typedef(), value::contents_for_printing(), cp_print_value_fields_pp(), current_language, dont_print_vb_obstack, value::embedded_offset(), gdb_printf(), gdb_puts(), type::length(), type::name(), value_print_options::prettyformat, value::primitive_field(), print_spaces(), target_read_memory(), value::type(), TYPE_BASECLASS, TYPE_N_BASECLASSES, val_print_check_max_depth(), val_print_invalid_address(), val_print_unavailable(), and value_from_contents_and_address().
Referenced by 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 ) |
Definition at line 123 of file cp-valprint.c.
References annotate_field_begin(), annotate_field_end(), annotate_field_name_end(), annotate_field_value(), type::arch(), value::bits_synthetic_pointer(), field::bitsize(), check_typedef(), common_val_print(), value::contents_for_printing(), cp_print_static_field(), cp_print_value(), current_language, dont_print_stat_array_obstack, dont_print_statmem_obstack, value::embedded_offset(), extract_typed_address(), type::field(), fprintf_styled(), fprintf_symbol(), fputs_styled(), gdb_printf(), gdb_puts(), get_vptr_fieldno(), field::is_packed(), field::is_static(), language_defn::la_language, field::loc_bitpos(), metadata_style, field::name(), type::name(), type::num_fields(), value_print_options::prettyformat, value::primitive_field(), print_function_pointer_address(), print_spaces(), value_print_options::static_field_print, cli_style_option::style(), field::type(), value::type(), TYPE_FIELD_IGNORE, TYPE_N_BASECLASSES, valprint_check_validity(), value_field_bitfield(), value_static_field(), variable_name_style, and ui_file::wrap_here().
Referenced by c_value_print_struct(), cp_print_value_fields_pp(), and m2_language::value_print_inner().
|
static |
Definition at line 388 of file cp-valprint.c.
References apply_ext_lang_val_pretty_printer(), cp_print_value_fields(), current_language, and value_print_options::raw.
Referenced by cp_print_static_field(), and cp_print_value().
|
static |
Definition at line 46 of file cp-valprint.c.
Referenced by cp_print_static_field(), and cp_print_value_fields().
|
static |
Definition at line 45 of file cp-valprint.c.
Referenced by cp_print_static_field(), and cp_print_value_fields().
|
static |
Definition at line 44 of file cp-valprint.c.
Referenced by cp_print_value().
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().