GDB (xrefs)
Loading...
Searching...
No Matches
Functions | Variables
ada-typeprint.c File Reference
#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
 

Function Documentation

◆ ada_print_type()

void ada_print_type ( struct type * type0,
const char * varstring,
struct ui_file * stream,
int show,
int level,
const struct type_print_options * flags )

◆ ada_print_typedef()

void ada_print_typedef ( struct type * type,
struct symbol * new_symbol,
struct ui_file * stream )

◆ decoded_type_name()

static char * decoded_type_name ( struct type * type)
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().

◆ print_array_type()

static void print_array_type ( struct type * type,
struct ui_file * stream,
int show,
int level,
const struct type_print_options * flags )
static

◆ print_choices() [1/2]

static void print_choices ( struct type * discr_type,
const variant & variant,
struct ui_file * stream,
int level )
static

◆ print_choices() [2/2]

static int print_choices ( struct type * type,
int field_num,
struct ui_file * stream,
struct type * val_type )
static

◆ print_dynamic_range_bound()

static void print_dynamic_range_bound ( struct type * type,
const char * name,
int name_len,
const char * suffix,
struct ui_file * stream )
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().

◆ print_enum_type()

static void print_enum_type ( struct type * type,
struct ui_file * stream )
static

◆ print_func_type()

static void print_func_type ( struct type * type,
struct ui_file * stream,
const char * name,
const struct type_print_options * flags )
static

◆ print_range()

static void print_range ( struct type * type,
struct ui_file * stream,
int bounds_preferred_p )
static

◆ print_range_bound()

static void print_range_bound ( struct type * type,
const char * bounds,
int * n,
struct ui_file * stream )
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().

◆ print_range_type()

static void print_range_type ( struct type * raw_type,
struct ui_file * stream,
int bounds_preferred_p )
static

◆ print_record_field_types()

static int print_record_field_types ( struct type * type,
struct type * outer_type,
struct ui_file * stream,
int show,
int level,
const struct type_print_options * flags )
static

◆ print_record_field_types_dynamic()

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

◆ print_record_type()

static void print_record_type ( struct type * type0,
struct ui_file * stream,
int show,
int level,
const struct type_print_options * flags )
static

◆ print_selected_record_field_types()

static int print_selected_record_field_types ( struct type * type,
struct type * outer_type,
int fld0,
int fld1,
struct ui_file * stream,
int show,
int level,
const struct type_print_options * flags )
static

◆ print_unchecked_union_type()

static void print_unchecked_union_type ( struct type * type,
struct ui_file * stream,
int show,
int level,
const struct type_print_options * flags )
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().

◆ print_variant_clauses() [1/2]

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

◆ print_variant_clauses() [2/2]

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

◆ print_variant_part() [1/2]

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

◆ print_variant_part() [2/2]

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

◆ type_is_full_subrange_of_target_type()

static int type_is_full_subrange_of_target_type ( struct type * type)
static

Variable Documentation

◆ name_buffer

char* name_buffer
static

Definition at line 41 of file ada-typeprint.c.

Referenced by decoded_type_name().

◆ name_buffer_len

int name_buffer_len
static

Definition at line 42 of file ada-typeprint.c.

Referenced by decoded_type_name().