GDB (xrefs)
Functions | Variables
/home/stan/gdb/src/gdb/p-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 "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.

Functions

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)
void pascal_value_print (struct value *val, struct ui_file *stream, const struct value_print_options *options)
static void show_pascal_static_field_print (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static void pascal_object_print_static_field (struct value *, struct ui_file *, int, const struct value_print_options *)
static void pascal_object_print_value (struct type *, const gdb_byte *, int, CORE_ADDR, struct ui_file *, int, const struct value *, const struct value_print_options *, struct type **)
int pascal_object_is_vtbl_ptr_type (struct type *type)
int pascal_object_is_vtbl_member (struct type *type)
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)
void _initialize_pascal_valprint (void)

Variables

static struct
generic_val_print_decorations 
p_decorations
static struct obstack dont_print_vb_obstack
static struct obstack dont_print_statmem_obstack
const char pascal_vtbl_ptr_name []
initialize_file_ftype _initialize_pascal_valprint

Function Documentation

void _initialize_pascal_valprint ( void  )

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]
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]
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 
)
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 
)
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().


Variable Documentation

struct obstack dont_print_statmem_obstack [static]
struct obstack dont_print_vb_obstack [static]

Definition at line 462 of file p-valprint.c.

Referenced by pascal_object_print_value().

Initial value:
{
  "",
  " + ",
  " * I",
  "true",
  "false",
  "void"
}

Definition at line 45 of file p-valprint.c.

Initial value:
{'_', '_', '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().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines