GDB (xrefs)
|
#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 "gdbcore.h"
#include "demangle.h"
#include "valprint.h"
#include "typeprint.h"
#include "language.h"
#include "target.h"
#include "annotate.h"
#include "p-lang.h"
#include "cp-abi.h"
#include "cp-support.h"
#include "exceptions.h"
Go to the source code of this file.
void _initialize_pascal_valprint | ( | void | ) |
Definition at line 891 of file p-valprint.c.
References _, _initialize_pascal_valprint, add_setshow_boolean_cmd(), class_support, value_print_options::pascal_static_field_print, setprintlist, show_pascal_static_field_print(), showprintlist, and user_print_options.
int pascal_object_is_vtbl_member | ( | struct type * | type | ) |
Definition at line 496 of file p-valprint.c.
References pascal_object_is_vtbl_ptr_type(), TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_PTR, TYPE_CODE_STRUCT, and TYPE_TARGET_TYPE.
Referenced by pascal_val_print().
int pascal_object_is_vtbl_ptr_type | ( | struct type * | type | ) |
Definition at line 484 of file p-valprint.c.
References pascal_vtbl_ptr_name, and type_name_no_tag().
Referenced by pascal_object_is_vtbl_member(), and pascal_val_print().
static void pascal_object_print_static_field | ( | struct value * | val, |
struct ui_file * | stream, | ||
int | recurse, | ||
const struct value_print_options * | options | ||
) | [static] |
Definition at line 839 of file p-valprint.c.
References CHECK_TYPEDEF, common_val_print(), current_language, value_print_options::deref_ref, dont_print_statmem_obstack, fputs_filtered(), pascal_object_print_value_fields(), TYPE_CODE, TYPE_CODE_STRUCT, value_address(), value_contents_for_printing(), value_embedded_offset(), and value_type().
Referenced by pascal_object_print_value_fields().
static void pascal_object_print_value | ( | 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 | ||
) | [static] |
Definition at line 704 of file p-valprint.c.
References baseclass_offset(), BASETYPE_VIA_VIRTUAL, check_typedef(), do_cleanups(), dont_print_vb_obstack, gdb_exception::error, fprintf_filtered(), fputs_filtered(), make_cleanup(), NOT_AVAILABLE_ERROR, offset, pascal_object_print_value_fields(), value_print_options::prettyformat, print_spaces_filtered(), gdb_exception::reason, RETURN_MASK_ERROR, target_read_memory(), TRY_CATCH, TYPE_BASECLASS, TYPE_LENGTH, TYPE_N_BASECLASSES, type_name_no_tag(), val_print_invalid_address(), val_print_unavailable(), xfree(), and xmalloc().
Referenced by pascal_object_print_value_fields().
void pascal_object_print_value_fields | ( | 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 | ||
) |
Definition at line 528 of file p-valprint.c.
References _, annotate_field_begin(), annotate_field_end(), annotate_field_name_end(), annotate_field_value(), CHECK_TYPEDEF, common_val_print(), current_language, value_print_options::deref_ref, dont_print_statmem_obstack, field_is_static(), fprintf_filtered(), fprintf_symbol_filtered(), fputs_filtered(), language_cplus, len, n_spaces(), pascal_object_print_static_field(), pascal_object_print_value(), value_print_options::pascal_static_field_print, value_print_options::prettyformat, print_spaces_filtered(), TYPE_FIELD, TYPE_FIELD_BITPOS, TYPE_FIELD_BITSIZE, TYPE_FIELD_IGNORE, TYPE_FIELD_NAME, TYPE_FIELD_PACKED, TYPE_FIELD_TYPE, TYPE_N_BASECLASSES, type_name_no_tag(), TYPE_NFIELDS, val_print(), val_print_optimized_out(), value_bits_synthetic_pointer(), value_bits_valid(), value_field_bitfield(), and wrap_here().
Referenced by pascal_object_print_static_field(), pascal_object_print_value(), and pascal_val_print().
void pascal_val_print | ( | struct type * | type, |
const gdb_byte * | valaddr, | ||
int | embedded_offset, | ||
CORE_ADDR | address, | ||
struct ui_file * | stream, | ||
int | recurse, | ||
const struct value * | original_value, | ||
const struct value_print_options * | options | ||
) |
Definition at line 59 of file p-valprint.c.
References _, value_print_options::addressprint, gdbarch::byte_order, check_typedef(), CHECK_TYPEDEF, common_val_print(), current_language, demangle, error(), extract_unsigned_integer(), value_print_options::format, fprintf_filtered(), fputs_filtered(), gdb_flush(), gdbarch_byte_order(), generic_val_print(), get_array_bounds(), get_discrete_bounds(), get_type_arch(), is_pascal_string_type(), LA_PRINT_STRING, len, LONGEST, lookup_minimal_symbol_by_pc(), lookup_symbol(), bound_minimal_symbol::minsym, paddress(), pascal_object_is_vtbl_member(), pascal_object_is_vtbl_ptr_type(), pascal_object_print_value_fields(), value_print_options::prettyformat, value_print_options::prettyformat_arrays, print_address_demangle(), value_print_options::print_max, print_spaces_filtered(), print_type_scalar(), print_unpacked_pointer(), read_memory(), value_print_options::stop_print_at_null, SYMBOL_LINKAGE_NAME, value_print_options::symbol_print, SYMBOL_PRINT_NAME, SYMBOL_TYPE, SYMBOL_VALUE_ADDRESS, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_BOOL, TYPE_CODE_CHAR, TYPE_CODE_ENUM, TYPE_CODE_ERROR, TYPE_CODE_FLAGS, TYPE_CODE_FLT, TYPE_CODE_FUNC, TYPE_CODE_INT, TYPE_CODE_PTR, TYPE_CODE_RANGE, TYPE_CODE_REF, TYPE_CODE_SET, TYPE_CODE_STRUCT, TYPE_CODE_UNDEF, TYPE_CODE_UNION, TYPE_CODE_VOID, TYPE_FIELD_BITPOS, TYPE_FIELD_TYPE, TYPE_HIGH_BOUND, TYPE_INDEX_TYPE, TYPE_LENGTH, TYPE_STUB, TYPE_TARGET_TYPE, ULONGEST, value_print_options::unionprint, unpack_pointer(), val_print_array_elements(), val_print_scalar_formatted(), val_print_string(), value_at(), value_bit_index(), VAR_DOMAIN, VTBL_FNADDR_OFFSET, value_print_options::vtblprint, xfree(), and xmalloc().
void pascal_value_print | ( | struct value * | val, |
struct ui_file * | stream, | ||
const struct value_print_options * | options | ||
) |
Definition at line 417 of file p-valprint.c.
References common_val_print(), current_language, value_print_options::deref_ref, fprintf_filtered(), TYPE_CODE, TYPE_CODE_PTR, TYPE_CODE_REF, TYPE_NAME, type_print(), TYPE_TARGET_TYPE, and value_type().
static void show_pascal_static_field_print | ( | struct ui_file * | file, |
int | from_tty, | ||
struct cmd_list_element * | c, | ||
const char * | value | ||
) | [static] |
Definition at line 455 of file p-valprint.c.
References _, and fprintf_filtered().
Referenced by _initialize_pascal_valprint().
Referenced by _initialize_pascal_valprint(), and initialize_all_files().
struct obstack dont_print_statmem_obstack [static] |
Definition at line 463 of file p-valprint.c.
Referenced by pascal_object_print_static_field(), and pascal_object_print_value_fields().
struct obstack dont_print_vb_obstack [static] |
Definition at line 462 of file p-valprint.c.
Referenced by pascal_object_print_value().
struct generic_val_print_decorations p_decorations [static] |
{ "", " + ", " * I", "true", "false", "void" }
Definition at line 45 of file p-valprint.c.
const char pascal_vtbl_ptr_name[] |
{'_', '_', 'v', 't', 'b', 'l', '_', 'p', 't', 'r', '_', 't', 'y', 'p', 'e', 0}
Definition at line 477 of file p-valprint.c.
Referenced by pascal_object_is_vtbl_ptr_type().