GDB (xrefs)
|
#include "defs.h"
#include <ctype.h>
#include "gdbtypes.h"
#include "expression.h"
#include "value.h"
#include "valprint.h"
#include "language.h"
#include "annotate.h"
#include "ada-lang.h"
#include "target-float.h"
#include "cli/cli-style.h"
#include "gdbarch.h"
Go to the source code of this file.
Functions | |
static int | print_field_values (struct value *, struct value *, struct ui_file *, int, const struct value_print_options *, int, const struct language_defn *) |
static void | adjust_type_signedness (struct type *type) |
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, struct ui_file *stream, int recurse, const struct value_print_options *options) |
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 | 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) |
static int | print_variant_part (struct value *value, int field_num, struct value *outer_value, struct ui_file *stream, int recurse, const struct value_print_options *options, int comma_needed, const struct language_defn *language) |
static void | ada_val_print_string (struct type *type, const gdb_byte *valaddr, int offset_aligned, struct ui_file *stream, int recurse, const struct value_print_options *options) |
static void | ada_value_print_ptr (struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options) |
static void | ada_value_print_num (struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options) |
static void | ada_val_print_enum (struct value *value, struct ui_file *stream, int recurse, const struct value_print_options *options) |
static void | ada_val_print_struct_union (struct value *value, struct ui_file *stream, int recurse, const struct value_print_options *options) |
static void | ada_value_print_array (struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options) |
static void | ada_val_print_ref (struct type *type, const gdb_byte *valaddr, int offset, int offset_aligned, CORE_ADDR address, struct ui_file *stream, int recurse, struct value *original_value, const struct value_print_options *options) |
void | ada_value_print_inner (struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options) |
void | ada_value_print (struct value *val0, struct ui_file *stream, const struct value_print_options *options) |
Definition at line 262 of file ada-valprint.c.
References gdb_printf().
Referenced by ada_printchar(), ada_language::emitchar(), and printstr().
|
static |
Definition at line 306 of file ada-valprint.c.
References gdb_printf(), gdb_puts(), print_floating(), and string_file::release().
Referenced by ada_value_print_inner().
Definition at line 374 of file ada-valprint.c.
References ada_check_typedef(), ada_enum_name(), ada_print_scalar(), type::code(), current_language, type::field(), fputs_styled(), gdb_printf(), type::is_unsigned(), field::loc_enumval(), field::name(), type::num_fields(), print_longest(), language_defn::printchar(), cli_style_option::style(), type::target_type(), TYPE_CODE_UNDEF, and variable_name_style.
Referenced by ada_print_scalar(), ada_varobj_scalar_image(), print_choices(), print_choices(), print_dynamic_range_bound(), print_optional_low_bound(), print_range(), and print_range_bound().
Definition at line 362 of file ada-valprint.c.
References ada_emit_char(), gdb_puts(), and type::length().
Referenced by ada_value_print_num(), and ada_language::printchar().
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 537 of file ada-valprint.c.
References type::length(), and printstr().
Referenced by ada_language::printstr().
|
static |
Definition at line 826 of file ada-valprint.c.
References ada_aligned_value_addr(), ada_check_typedef(), ada_enum_name(), type::field(), value_print_options::format, fputs_styled(), gdb_printf(), field::loc_enumval(), name, field::name(), type::num_fields(), print_longest(), QUIT, cli_style_option::style(), styled_string(), unpack_long(), value_contents_for_printing(), value_print_scalar_formatted(), value_type(), and variable_name_style.
Referenced by ada_value_print_inner().
|
static |
Definition at line 937 of file ada-valprint.c.
References ada_is_tagged_type(), ada_tag_value_at_base_address(), ada_value_ind(), check_typedef(), type::code(), coerce_ref_if_computed(), common_val_print(), fputs_styled(), gdb_puts(), language_ada, language_def(), lookup_pointer_type(), metadata_style, cli_style_option::style(), type::target_type(), TYPE_CODE_UNDEF, unpack_pointer(), value_fetch_lazy(), value_from_pointer(), value_lazy(), and value_type().
Referenced by ada_value_print_inner().
|
static |
Definition at line 684 of file ada-valprint.c.
References char_at(), type::length(), value_print_options::print_max, printstr(), value_print_options::stop_print_at_null, type::target_type(), and type_byte_order().
Referenced by ada_value_print_array().
|
static |
Definition at line 871 of file ada-valprint.c.
References ada_is_bogus_array_descriptor(), gdb_printf(), language_ada, language_def(), value_print_options::prettyformat, print_field_values(), print_spaces(), and value_type().
Referenced by ada_value_print_inner().
void ada_value_print | ( | struct value * | val0, |
struct ui_file * | stream, | ||
const struct value_print_options * | options | ||
) |
Definition at line 1085 of file ada-valprint.c.
References ada_check_typedef(), ada_is_array_descriptor_type(), ada_is_bogus_array_descriptor(), ada_to_fixed_value(), type::code(), common_val_print(), current_language, gdb_printf(), type::is_unsigned(), type::length(), type::target_type(), type_print(), and value_type().
Referenced by ada_language::value_print().
|
static |
Definition at line 899 of file ada-valprint.c.
References ada_aligned_value_addr(), ada_check_typedef(), ada_is_string_type(), ada_val_print_string(), value_print_options::format, gdb_printf(), print_optional_low_bound(), TYPE_FIELD_BITSIZE, val_print_optimized_out(), val_print_packed_array_elements(), value_contents_for_printing(), value_entirely_optimized_out(), value_print_array_elements(), and value_type().
Referenced by ada_value_print_inner().
void ada_value_print_inner | ( | struct value * | val, |
struct ui_file * | stream, | ||
int | recurse, | ||
const struct value_print_options * | options | ||
) |
Definition at line 995 of file ada-valprint.c.
References ada_check_typedef(), ada_get_decoded_value(), ada_is_array_descriptor_type(), ada_is_constrained_packed_array_type(), ada_print_floating(), ada_to_fixed_value(), ada_val_print_enum(), ada_val_print_ref(), ada_val_print_struct_union(), ada_value_print_array(), ada_value_print_num(), ada_value_print_ptr(), type::code(), coerce_ref(), common_val_print(), deprecated_set_value_type(), type::fixed_point_type_base_type(), value_print_options::format, gdb_printf(), is_fixed_point_type(), language_c, language_def(), type::length(), resolve_dynamic_type(), value_address(), value_contents_for_printing(), value_copy(), and value_type().
Referenced by ada_language::value_print_inner().
|
static |
Definition at line 756 of file ada-valprint.c.
References ada_check_typedef(), ada_is_character_type(), ada_is_system_address_type(), ada_printchar(), type::arch(), builtin_type::builtin_data_ptr, type::code(), common_val_print(), extract_typed_address(), value_print_options::format, gdb_printf(), gdb_puts(), language_ada, language_def(), value_print_options::output_format, paddress(), type::target_type(), type_print(), unpack_long(), value_cast(), value_contents_for_printing(), value_print_scalar_formatted(), and value_type().
Referenced by ada_value_print_inner().
|
static |
Definition at line 728 of file ada-valprint.c.
References ada_check_typedef(), ada_is_tag_type(), ada_tag_name(), code, common_val_print(), value_print_options::format, gdb_printf(), gdb_puts(), language_c, language_def(), type::length(), name, type::target_type(), and value_type().
Referenced by ada_value_print_inner().
|
static |
Definition at line 42 of file ada-valprint.c.
References type::bounds(), type::code(), dynamic_prop::const_val(), range_bounds::low, and type::set_is_unsigned().
Referenced by print_field_values().
|
static |
Definition at line 290 of file ada-valprint.c.
References extract_unsigned_integer().
Referenced by ada_val_print_string(), and printstr().
|
static |
Definition at line 582 of file ada-valprint.c.
References ada_is_ignored_field(), ada_is_variant_part(), ada_is_wrapper_field(), ada_name_prefix_len(), ada_value_primitive_field(), ada_value_primitive_packed_val(), adjust_type_signedness(), annotate_field_begin(), annotate_field_end(), annotate_field_name_end(), annotate_field_value(), common_val_print(), type::field(), fputs_styled(), gdb_printf(), gdb_puts(), HAVE_CPLUS_STRUCT, field::loc_bitpos(), metadata_style, field::name(), type::num_fields(), value_print_options::prettyformat, print_field_values(), print_spaces(), print_variant_part(), cli_style_option::style(), field::type(), TYPE_FIELD_BITSIZE, TYPE_FIELD_IGNORE, TYPE_FIELD_PACKED, value_field(), value_type(), and ui_file::wrap_here().
Referenced by ada_val_print_struct_union(), print_field_values(), and print_variant_part().
|
static |
Definition at line 55 of file ada-valprint.c.
References ada_print_scalar(), type::code(), type::field(), gdb_printf(), get_array_bounds(), type::index_type(), field::loc_enumval(), value_print_options::print_array_indexes, type::target_type(), and TYPE_CODE_UNDEF.
Referenced by ada_value_print_array().
|
static |
Definition at line 547 of file ada-valprint.c.
References ada_which_variant_applies(), type::field(), print_field_values(), field::type(), value_field(), and value_type().
Referenced by print_field_values().
|
static |
Definition at line 456 of file ada-valprint.c.
References ada_emit_char(), char_at(), gdb_printf(), gdb_puts(), metadata_style, value_print_options::print_max, ui_file_style::ptr(), QUIT, value_print_options::repeat_count_threshold, cli_style_option::style(), and type_byte_order().
Referenced by ada_printstr(), and ada_val_print_string().
|
static |
Definition at line 120 of file ada-valprint.c.
References ada_value_primitive_packed_val(), annotate_array_section_begin(), annotate_array_section_end(), annotate_elt(), annotate_elt_rep(), annotate_elt_rep_end(), value::bitsize, check_typedef(), type::code(), common_val_print(), current_language, gdb_printf(), get_discrete_bounds(), type::index_type(), maybe_print_array_index(), metadata_style, value::offset, value_print_options::prettyformat_arrays, print_spaces(), ui_file_style::ptr(), value_print_options::repeat_count_threshold, cli_style_option::style(), type::target_type(), TYPE_FIELD_BITSIZE, value_contents_eq(), value_embedded_offset(), value_type(), and ui_file::wrap_here().
Referenced by ada_value_print_array().