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 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 261 of file ada-valprint.c.
References gdb_printf().
Referenced by ada_printchar(), ada_language::emitchar(), and printstr().
|
static |
Definition at line 305 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 373 of file ada-valprint.c.
References ada_check_typedef(), ada_enum_name(), ada_print_scalar(), type::code(), current_language, discrete_position(), type::field(), fputs_styled(), gdb_printf(), type::is_unsigned(), field::name(), posn(), 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 361 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 525 of file ada-valprint.c.
References type::length(), and printstr().
Referenced by ada_language::printstr().
|
static |
Definition at line 814 of file ada-valprint.c.
References ada_aligned_value_addr(), ada_check_typedef(), ada_enum_name(), value::contents_for_printing(), discrete_position(), type::field(), value_print_options::format, fputs_styled(), gdb_printf(), name, field::name(), posn(), print_longest(), cli_style_option::style(), styled_string(), value::type(), unpack_long(), value_print_scalar_formatted(), and variable_name_style.
Referenced by ada_value_print_inner().
|
static |
Definition at line 910 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(), value::fetch_lazy(), fputs_styled(), gdb_puts(), language_ada, language_def(), value::lazy(), lookup_pointer_type(), metadata_style, cli_style_option::style(), type::target_type(), value::type(), TYPE_CODE_UNDEF, unpack_pointer(), and value_from_pointer().
Referenced by ada_value_print_inner().
|
static |
Definition at line 671 of file ada-valprint.c.
References char_at(), get_print_max_chars(), type::length(), 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 850 of file ada-valprint.c.
References gdb_printf(), language_ada, language_def(), value_print_options::prettyformat, print_field_values(), and print_spaces().
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 1058 of file ada-valprint.c.
References ada_check_typedef(), ada_is_array_descriptor_type(), ada_to_fixed_value(), type::code(), common_val_print(), current_language, gdb_printf(), type::is_unsigned(), type::length(), type::target_type(), value::type(), and type_print().
Referenced by ada_language::value_print().
|
static |
Definition at line 872 of file ada-valprint.c.
References ada_aligned_value_addr(), ada_check_typedef(), ada_is_string_type(), ada_val_print_string(), field::bitsize(), value::contents_for_printing(), value::entirely_optimized_out(), type::field(), value_print_options::format, gdb_printf(), print_optional_low_bound(), value::type(), val_print_optimized_out(), val_print_packed_array_elements(), and value_print_array_elements().
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 968 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(), value::address, type::code(), coerce_ref(), common_val_print(), value::contents_for_printing(), value::copy(), value::deprecated_set_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(), type, and value::type().
Referenced by ada_language::value_print_inner().
|
static |
Definition at line 744 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, builtin_type(), type::code(), common_val_print(), value::contents_for_printing(), extract_typed_address(), value_print_options::format, gdb_printf(), gdb_puts(), language_ada, language_def(), value_print_options::output_format, paddress(), type::target_type(), value::type(), type_print(), unpack_long(), value_cast(), and value_print_scalar_formatted().
Referenced by ada_value_print_inner().
|
static |
Definition at line 716 of file ada-valprint.c.
References ada_check_typedef(), ada_is_tag_type(), ada_tag_name(), type::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 289 of file ada-valprint.c.
References extract_unsigned_integer().
Referenced by ada_val_print_string(), and printstr().
|
static |
Definition at line 570 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(), annotate_field_begin(), annotate_field_end(), annotate_field_name_end(), annotate_field_value(), field::bitsize(), common_val_print(), type::field(), fputs_styled(), gdb_printf(), gdb_puts(), HAVE_CPLUS_STRUCT, field::is_packed(), 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(), value::type(), TYPE_FIELD_IGNORE, value_field(), and ui_file::wrap_here().
Referenced by ada_val_print_struct_union(), print_field_values(), and print_variant_part().
|
static |
Definition at line 46 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 535 of file ada-valprint.c.
References ada_which_variant_applies(), type::field(), print_field_values(), field::type(), value::type(), and value_field().
Referenced by print_field_values().
|
static |
Definition at line 443 of file ada-valprint.c.
References ada_emit_char(), char_at(), gdb_printf(), gdb_puts(), get_print_max_chars(), metadata_style, value_print_options::print_max_chars, 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 111 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(), field::bitsize(), value::bitsize(), check_typedef(), type::code(), common_val_print(), value::contents_eq(), current_language, value::embedded_offset(), type::field(), gdb_printf(), get_discrete_bounds(), type::index_type(), type::length(), 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(), value::type(), and ui_file::wrap_here().
Referenced by ada_value_print_array().