GDB (xrefs)
|
#include "defs.h"
#include "bfd.h"
#include "gdbtypes.h"
#include "value.h"
#include "c-lang.h"
#include "cli/cli-style.h"
#include "typeprint.h"
#include "target-float.h"
#include "ada-lang.h"
#include <ctype.h>
Go to the source code of this file.
Functions | |
static int | print_selected_record_field_types (struct type *, struct type *, int, int, struct ui_file *, int, int, const struct type_print_options *) |
static int | print_record_field_types (struct type *, struct type *, struct ui_file *, int, int, const struct type_print_options *) |
static char * | decoded_type_name (struct type *type) |
static int | type_is_full_subrange_of_target_type (struct type *type) |
static void | print_range (struct type *type, struct ui_file *stream, int bounds_preferred_p) |
static void | print_range_bound (struct type *type, const char *bounds, int *n, struct ui_file *stream) |
static void | print_dynamic_range_bound (struct type *type, const char *name, int name_len, const char *suffix, struct ui_file *stream) |
static void | print_range_type (struct type *raw_type, struct ui_file *stream, int bounds_preferred_p) |
static void | print_enum_type (struct type *type, struct ui_file *stream) |
static void | print_array_type (struct type *type, struct ui_file *stream, int show, int level, const struct type_print_options *flags) |
static int | print_choices (struct type *type, int field_num, struct ui_file *stream, struct type *val_type) |
static void | print_variant_clauses (struct type *var_type, struct type *discr_type, struct type *outer_type, struct ui_file *stream, int show, int level, const struct type_print_options *flags) |
static void | print_variant_clauses (struct type *type, int field_num, struct type *outer_type, struct ui_file *stream, int show, int level, const struct type_print_options *flags) |
static void | print_variant_part (struct type *type, int field_num, struct type *outer_type, struct ui_file *stream, int show, int level, const struct type_print_options *flags) |
static void | print_record_field_types_dynamic (const gdb::array_view< variant_part > &parts, int from, int to, struct type *type, struct ui_file *stream, int show, int level, const struct type_print_options *flags) |
static void | print_choices (struct type *discr_type, const variant &variant, struct ui_file *stream, int level) |
static int | print_variant_part (const variant_part &part, struct type *type, struct ui_file *stream, int show, int level, const struct type_print_options *flags) |
static void | print_record_type (struct type *type0, struct ui_file *stream, int show, int level, const struct type_print_options *flags) |
static void | print_unchecked_union_type (struct type *type, struct ui_file *stream, int show, int level, const struct type_print_options *flags) |
static void | print_func_type (struct type *type, struct ui_file *stream, const char *name, const struct type_print_options *flags) |
void | ada_print_type (struct type *type0, const char *varstring, struct ui_file *stream, int show, int level, const struct type_print_options *flags) |
void | ada_print_typedef (struct type *type, struct symbol *new_symbol, struct ui_file *stream) |
Variables | |
static char * | name_buffer |
static int | name_buffer_len |
void ada_print_type | ( | struct type * | type0, |
const char * | varstring, | ||
struct ui_file * | stream, | ||
int | show, | ||
int | level, | ||
const struct type_print_options * | flags ) |
Definition at line 940 of file ada-typeprint.c.
References ada_aligned_type(), ada_check_typedef(), ada_get_base_type(), ada_is_aligner_type(), ada_is_array_descriptor_type(), ada_is_constrained_packed_array_type(), ada_is_modular_type(), ada_is_range_type_name(), ada_modulus(), ada_name_prefix_len(), ada_print_type(), ada_type_name(), c_print_type(), type::code(), decoded_type_name(), flags, fprintf_styled(), gdb_printf(), is_fixed_point_type(), language_ada, type::length(), metadata_style, name, print_array_type(), print_enum_type(), print_func_type(), print_range(), print_range_type(), print_record_type(), print_type_fixed_point(), print_unchecked_union_type(), cli_style_option::style(), and type::target_type().
Referenced by ada_print_symbol_signature(), ada_print_type(), ada_print_typedef(), print_array_type(), print_func_type(), print_selected_record_field_types(), ada_language::print_type(), and user_select_syms().
Definition at line 1083 of file ada-typeprint.c.
References ada_check_typedef(), ada_print_type(), and type_print_raw_options.
Referenced by ada_language::print_typedef().
|
static |
Definition at line 48 of file ada-typeprint.c.
References ada_type_name(), name_buffer, name_buffer_len, and xrealloc().
Referenced by ada_print_type(), and print_record_type().
|
static |
Definition at line 348 of file ada-typeprint.c.
References ada_array_arity(), ada_array_element_type(), ada_coerce_to_simple_array_type(), ada_find_parallel_type(), ada_fixup_array_indexes_type(), ada_is_constrained_packed_array_type(), ada_is_simple_array_type(), ada_print_type(), field::bitsize(), type::code(), type::field(), flags, fprintf_styled(), gdb_printf(), type::index_type(), is_dynamic_type(), metadata_style, type::name(), type::num_fields(), print_range(), print_range_type(), cli_style_option::style(), type::target_type(), field::type(), and ui_file::wrap_here().
Referenced by ada_print_type().
|
static |
Definition at line 664 of file ada-typeprint.c.
References ada_print_scalar(), variant::discriminants, gdb_printf(), and variant::is_default().
|
static |
Definition at line 444 of file ada-typeprint.c.
References ada_print_scalar(), ada_scan_number(), type::field(), gdb_printf(), L, name, and field::name().
Referenced by print_variant_clauses(), and print_variant_part().
|
static |
Definition at line 240 of file ada-typeprint.c.
References ada_print_scalar(), B, gdb_printf(), get_int_var_value(), and name.
Referenced by print_range_type().
Definition at line 313 of file ada-typeprint.c.
References ada_enum_name(), type::field(), fputs_styled(), gdb_printf(), field::loc_enumval(), field::name(), type::num_fields(), QUIT, cli_style_option::style(), variable_name_style, and ui_file::wrap_here().
Referenced by ada_print_type().
|
static |
Definition at line 882 of file ada-typeprint.c.
References ada_print_type(), type::code(), type::field(), flags, fputs_styled(), function_name_style, gdb_printf(), gdb_puts(), name, type::num_fields(), cli_style_option::style(), type::target_type(), field::type(), and ui_file::wrap_here().
Referenced by ada_print_type().
|
static |
Definition at line 129 of file ada-typeprint.c.
References ada_discrete_type_high_bound(), ada_discrete_type_low_bound(), ada_name_prefix_len(), ada_print_scalar(), type::code(), gdb_printf(), type::name(), type::target_type(), and type_is_full_subrange_of_target_type().
Referenced by ada_print_type(), print_array_type(), and print_range_type().
|
static |
Definition at line 193 of file ada-typeprint.c.
References ada_print_scalar(), ada_scan_number(), B, type::bounds(), type::code(), and gdb_printf().
Referenced by print_range_type().
|
static |
Definition at line 262 of file ada-typeprint.c.
References type::code(), gdb_printf(), name, type::name(), print_dynamic_range_bound(), print_range(), print_range_bound(), and type::target_type().
Referenced by ada_print_type(), and print_array_type().
|
static |
Definition at line 772 of file ada-typeprint.c.
References type::dyn_prop(), DYN_PROP_VARIANT_PARTS, flags, dynamic_prop::kind(), type::num_fields(), dynamic_prop::original_type(), print_record_field_types_dynamic(), print_selected_record_field_types(), PROP_TYPE, PROP_VARIANT_PARTS, and dynamic_prop::variant_parts().
Referenced by print_record_type(), print_selected_record_field_types(), and print_variant_clauses().
|
static |
Definition at line 741 of file ada-typeprint.c.
References flags, print_selected_record_field_types(), and print_variant_part().
Referenced by print_record_field_types(), and print_variant_part().
|
static |
Definition at line 802 of file ada-typeprint.c.
References ada_find_parallel_type(), ada_is_tagged_type(), ada_parent_type(), ada_type_name(), decoded_type_name(), flags, gdb_printf(), print_record_field_types(), and type.
Referenced by ada_print_type().
|
static |
Definition at line 614 of file ada-typeprint.c.
References ada_is_ignored_field(), ada_is_parent_field(), ada_is_variant_part(), ada_is_wrapper_field(), ada_print_type(), type::field(), flags, gdb_printf(), type::is_stub(), field::name(), print_record_field_types(), print_variant_part(), QUIT, and field::type().
Referenced by print_record_field_types(), print_record_field_types_dynamic(), and print_variant_clauses().
|
static |
Definition at line 857 of file ada-typeprint.c.
References flags, gdb_printf(), type::num_fields(), and print_variant_clauses().
Referenced by ada_print_type().
|
static |
Definition at line 554 of file ada-typeprint.c.
References ada_find_parallel_type(), ada_variant_discrim_type(), type::code(), type::field(), flags, print_variant_clauses(), type::target_type(), and field::type().
|
static |
Definition at line 523 of file ada-typeprint.c.
References type::field(), flags, gdb_printf(), type::num_fields(), print_choices(), print_record_field_types(), print_selected_record_field_types(), and field::type().
Referenced by print_unchecked_union_type(), print_variant_clauses(), and print_variant_part().
|
static |
Definition at line 696 of file ada-typeprint.c.
References variant_part::discriminant_index, type::field(), variant::first_field, flags, gdb_printf(), variant::last_field, name, field::name(), variant::parts, print_choices(), print_record_field_types_dynamic(), field::type(), and variant_part::variants.
|
static |
Definition at line 589 of file ada-typeprint.c.
References ada_variant_discrim_name(), type::field(), flags, gdb_printf(), print_variant_clauses(), and field::type().
Referenced by print_record_field_types_dynamic(), and print_selected_record_field_types().
|
static |
Definition at line 100 of file ada-typeprint.c.
References ada_discrete_type_high_bound(), ada_discrete_type_low_bound(), type::code(), is_dynamic_type(), and type::target_type().
Referenced by print_range().
|
static |
Definition at line 41 of file ada-typeprint.c.
Referenced by decoded_type_name().
|
static |
Definition at line 42 of file ada-typeprint.c.
Referenced by decoded_type_name().