GDB (xrefs)
Functions | Variables
/home/stan/gdb/src/gdb/ada-typeprint.c File Reference
#include "defs.h"
#include "gdb_obstack.h"
#include "bfd.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "expression.h"
#include "value.h"
#include "gdbcore.h"
#include "target.h"
#include "command.h"
#include "gdbcmd.h"
#include "language.h"
#include "demangle.h"
#include "c-lang.h"
#include "typeprint.h"
#include "ada-lang.h"
#include <ctype.h>
#include "gdb_string.h"
#include <errno.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 void print_array_type (struct type *, struct ui_file *, int, int, const struct type_print_options *)
static int print_choices (struct type *, int, struct ui_file *, struct type *)
static void print_range (struct type *, struct ui_file *)
static void print_range_bound (struct type *, char *, int *, struct ui_file *)
static void print_dynamic_range_bound (struct type *, const char *, int, const char *, struct ui_file *)
static void print_range_type (struct type *, struct ui_file *)
static char * decoded_type_name (struct type *type)
static void print_enum_type (struct type *type, struct ui_file *stream)
static void print_fixed_point_type (struct type *type, struct ui_file *stream)
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_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

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

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

References ada_type_name(), name_buffer, name_buffer_len, strstr(), and xrealloc().

Referenced by ada_print_type(), and print_record_type().

static void print_array_type ( struct type type,
struct ui_file stream,
int  show,
int  level,
const struct type_print_options flags 
) [static]
static int print_choices ( struct type type,
int  field_num,
struct ui_file stream,
struct type val_type 
) [static]
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 203 of file ada-typeprint.c.

References ada_print_scalar(), B, fprintf_filtered(), get_int_var_value(), GROW_VECT, and LONGEST.

Referenced by print_range_type().

static void print_enum_type ( struct type type,
struct ui_file stream 
) [static]
static void print_fixed_point_type ( struct type type,
struct ui_file stream 
) [static]

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

References ada_delta(), ada_fixed_to_float(), and fprintf_filtered().

Referenced by ada_print_type().

static void print_func_type ( struct type type,
struct ui_file stream,
const char *  name,
const struct type_print_options flags 
) [static]
static void print_range ( struct type type,
struct ui_file stream 
) [static]
static void print_range_bound ( struct type type,
char *  bounds,
int n,
struct ui_file stream 
) [static]
static void print_range_type ( struct type raw_type,
struct ui_file stream 
) [static]
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]
static void print_record_type ( struct type type0,
struct ui_file stream,
int  show,
int  level,
const struct type_print_options flags 
) [static]
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]
static void print_unchecked_union_type ( struct type type,
struct ui_file stream,
int  show,
int  level,
const struct type_print_options flags 
) [static]
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]
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]

Variable Documentation

char* name_buffer [static]

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

Referenced by decoded_type_name().

int name_buffer_len [static]

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

Referenced by decoded_type_name().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines