GDB (xrefs)
Functions
/home/stan/gdb/src/gdb/ada-valprint.c File Reference
#include "defs.h"
#include <ctype.h>
#include "gdb_string.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "expression.h"
#include "value.h"
#include "demangle.h"
#include "valprint.h"
#include "language.h"
#include "annotate.h"
#include "ada-lang.h"
#include "c-lang.h"
#include "infcall.h"
#include "exceptions.h"
#include "objfiles.h"

Go to the source code of this file.

Functions

static void print_record (struct type *, const gdb_byte *, int, struct ui_file *, int, const struct value *, const struct value_print_options *)
static int print_field_values (struct type *, const gdb_byte *, int, struct ui_file *, int, const struct value *, const struct value_print_options *, int, struct type *, int)
static void adjust_type_signedness (struct type *)
static void ada_val_print_1 (struct type *, const gdb_byte *, int, CORE_ADDR, struct ui_file *, int, const struct value *, const struct value_print_options *)
static int print_optional_low_bound (struct ui_file *stream, struct type *type, const struct value_print_options *options)
static void val_print_packed_array_elements (struct type *type, const gdb_byte *valaddr, int offset, int bitoffset, struct ui_file *stream, int recurse, const struct value *val, const struct value_print_options *options)
static struct typeprintable_val_type (struct type *type, const gdb_byte *valaddr)
void ada_emit_char (int c, struct type *type, struct ui_file *stream, int quoter, int type_len)
static int char_at (const gdb_byte *string, int i, int type_len, enum bfd_endian byte_order)
static void ui_memcpy (void *dest, const char *buffer, long len)
static void ada_print_floating (const gdb_byte *valaddr, struct type *type, struct ui_file *stream)
void ada_printchar (int c, struct type *type, struct ui_file *stream)
void ada_print_scalar (struct type *type, LONGEST val, struct ui_file *stream)
static void printstr (struct ui_file *stream, struct type *elttype, const gdb_byte *string, unsigned int length, int force_ellipses, int type_len, const struct value_print_options *options)
void ada_printstr (struct ui_file *stream, struct type *type, const gdb_byte *string, unsigned int length, const char *encoding, int force_ellipses, const struct value_print_options *options)
void ada_val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, const struct value *val, const struct value_print_options *options)
static void ada_val_print_array (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)
static int print_variant_part (struct type *type, int field_num, const gdb_byte *valaddr, int offset, struct ui_file *stream, int recurse, const struct value *val, const struct value_print_options *options, int comma_needed, struct type *outer_type, int outer_offset)
void ada_value_print (struct value *val0, struct ui_file *stream, const struct value_print_options *options)

Function Documentation

void ada_emit_char ( int  c,
struct type type,
struct ui_file stream,
int  quoter,
int  type_len 
)

Definition at line 271 of file ada-valprint.c.

References fprintf_filtered().

Referenced by ada_printchar(), emit_char(), and printstr().

static void ada_print_floating ( const gdb_byte valaddr,
struct type type,
struct ui_file stream 
) [static]
void ada_print_scalar ( struct type type,
LONGEST  val,
struct ui_file stream 
)
void ada_printchar ( int  c,
struct type type,
struct ui_file stream 
)

Definition at line 370 of file ada-valprint.c.

References ada_emit_char(), fputs_filtered(), and TYPE_LENGTH.

Referenced by ada_val_print_1().

void ada_printstr ( struct ui_file stream,
struct type type,
const gdb_byte string,
unsigned int  length,
const char *  encoding,
int  force_ellipses,
const struct value_print_options options 
)

Definition at line 544 of file ada-valprint.c.

References printstr(), and TYPE_LENGTH.

void ada_val_print ( struct type type,
const gdb_byte valaddr,
int  embedded_offset,
CORE_ADDR  address,
struct ui_file stream,
int  recurse,
const struct value val,
const struct value_print_options options 
)

Definition at line 558 of file ada-valprint.c.

References ada_val_print_1(), RETURN_MASK_ALL, and TRY_CATCH.

Referenced by print_field_values().

static void ada_val_print_1 ( struct type type,
const gdb_byte valaddr,
int  offset,
CORE_ADDR  address,
struct ui_file stream,
int  recurse,
const struct value original_value,
const struct value_print_options options 
) [static]

Definition at line 642 of file ada-valprint.c.

References ada_aligned_value_addr(), ada_check_typedef(), ada_coerce_to_simple_array(), ada_coerce_to_simple_array_ptr(), ada_enum_name(), ada_fixed_to_float(), ada_is_array_descriptor_type(), ada_is_bogus_array_descriptor(), ada_is_character_type(), ada_is_constrained_packed_array_type(), ada_is_fixed_point_type(), ada_is_system_address_type(), ada_is_tag_type(), ada_is_tagged_type(), ada_print_floating(), ada_printchar(), ada_tag_name(), ada_tag_value_at_base_address(), ada_val_print_array(), ada_value_ind(), builtin_type::builtin_data_ptr, builtin_type(), c_val_print(), check_typedef(), coerce_ref(), coerce_ref_if_computed(), common_val_print(), current_language, extract_typed_address(), value_print_options::format, fprintf_filtered(), fputs_filtered(), gdb_assert, gdb_flush(), get_type_arch(), len, LONGEST, lookup_pointer_type(), name, value_print_options::output_format, paddress(), print_longest(), print_record(), printable_val_type(), QUIT, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_ENUM, TYPE_CODE_FLT, TYPE_CODE_INT, TYPE_CODE_PTR, TYPE_CODE_RANGE, TYPE_CODE_REF, TYPE_CODE_STRUCT, TYPE_CODE_TYPEDEF, TYPE_CODE_UNDEF, TYPE_CODE_UNION, TYPE_FIELD_ENUMVAL, TYPE_FIELD_NAME, TYPE_LENGTH, TYPE_NFIELDS, type_print(), TYPE_TARGET_TYPE, unpack_long(), unpack_pointer(), val_print(), val_print_scalar_formatted(), val_print_type_code_int(), value_address(), value_cast(), value_contents_for_printing(), value_embedded_offset(), value_free_to_mark(), value_from_contents_and_address(), value_from_pointer(), value_mark(), and value_type().

Referenced by ada_val_print().

static void ada_val_print_array ( 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 
) [static]
void ada_value_print ( struct value val0,
struct ui_file stream,
const struct value_print_options options 
)
static void adjust_type_signedness ( struct type type) [static]

Definition at line 60 of file ada-valprint.c.

References TYPE_CODE, TYPE_CODE_RANGE, TYPE_LOW_BOUND, and TYPE_UNSIGNED.

Referenced by print_field_values().

static int char_at ( const gdb_byte string,
int  i,
int  type_len,
enum bfd_endian  byte_order 
) [static]

Definition at line 295 of file ada-valprint.c.

References extract_unsigned_integer().

Referenced by ada_val_print_array(), and printstr().

static int print_field_values ( struct type type,
const gdb_byte valaddr,
int  offset,
struct ui_file stream,
int  recurse,
const struct value val,
const struct value_print_options options,
int  comma_needed,
struct type outer_type,
int  outer_offset 
) [static]
static int print_optional_low_bound ( struct ui_file stream,
struct type type,
const struct value_print_options options 
) [static]
static void print_record ( struct type type,
const gdb_byte valaddr,
int  offset,
struct ui_file stream,
int  recurse,
const struct value val,
const struct value_print_options options 
) [static]
static int print_variant_part ( struct type type,
int  field_num,
const gdb_byte valaddr,
int  offset,
struct ui_file stream,
int  recurse,
const struct value val,
const struct value_print_options options,
int  comma_needed,
struct type outer_type,
int  outer_offset 
) [static]
static struct type* printable_val_type ( struct type type,
const gdb_byte valaddr 
) [static, read]

Definition at line 261 of file ada-valprint.c.

References ada_aligned_type(), and ada_to_fixed_type().

Referenced by ada_val_print_1().

static void printstr ( struct ui_file stream,
struct type elttype,
const gdb_byte string,
unsigned int  length,
int  force_ellipses,
int  type_len,
const struct value_print_options options 
) [static]
static void ui_memcpy ( void *  dest,
const char *  buffer,
long  len 
) [static]

Definition at line 307 of file ada-valprint.c.

References len, and memcpy().

Referenced by ada_print_floating().

static void val_print_packed_array_elements ( struct type type,
const gdb_byte valaddr,
int  offset,
int  bitoffset,
struct ui_file stream,
int  recurse,
const struct value val,
const struct value_print_options options 
) [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines