GDB (xrefs)
Functions
/tmp/gdb-8.1/gdb/ada-valprint.c File Reference
#include "defs.h"
#include <ctype.h>
#include "symtab.h"
#include "gdbtypes.h"
#include "expression.h"
#include "value.h"
#include "demangle.h"
#include "valprint.h"
#include "language.h"
#include "annotate.h"
#include "ada-lang.h"
#include "c-lang.h"
#include "infcall.h"
#include "objfiles.h"
#include "target-float.h"

Go to the source code of this file.

Functions

static int print_field_values (struct type *, const gdb_byte *, int, struct ui_file *, int, struct value *, const struct value_print_options *, int, struct type *, 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, int bitoffset, struct ui_file *stream, int recurse, struct value *val, const struct value_print_options *options)
 
static struct typeprintable_val_type (struct type *type, const gdb_byte *valaddr)
 
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 type *type, int field_num, const gdb_byte *valaddr, int offset, struct ui_file *stream, int recurse, struct value *val, const struct value_print_options *options, int comma_needed, struct type *outer_type, int outer_offset, const struct language_defn *language)
 
static void ada_val_print_string (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)
 
static void ada_val_print_gnat_array (struct type *type, const gdb_byte *valaddr, int offset, CORE_ADDR address, struct ui_file *stream, int recurse, struct value *original_value, const struct value_print_options *options, const struct language_defn *language)
 
static void ada_val_print_ptr (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, const struct language_defn *language)
 
static void ada_val_print_num (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, const struct language_defn *language)
 
static void ada_val_print_enum (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, const struct language_defn *language)
 
static void ada_val_print_flt (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, const struct language_defn *language)
 
static void ada_val_print_struct_union (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, const struct language_defn *language)
 
static void ada_val_print_array (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)
 
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, const struct language_defn *language)
 
static void ada_val_print_1 (struct type *type, int offset, CORE_ADDR address, struct ui_file *stream, int recurse, struct value *original_value, const struct value_print_options *options, const struct language_defn *language)
 
void ada_val_print (struct type *type, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, struct value *val, const struct value_print_options *options)
 
void ada_value_print (struct value *val0, struct ui_file *stream, const struct value_print_options *options)
 

Function Documentation

◆ ada_emit_char()

void ada_emit_char ( int  c,
struct type type,
struct ui_file stream,
int  quoter,
int  type_len 
)

Definition at line 259 of file ada-valprint.c.

References fprintf_filtered().

Referenced by ada_printchar(), emit_char(), and printstr().

◆ ada_print_floating()

static void ada_print_floating ( const gdb_byte valaddr,
struct type type,
struct ui_file stream 
)
static

Definition at line 299 of file ada-valprint.c.

References fprintf_filtered(), print_floating(), string, and string_file::string().

Referenced by ada_val_print_flt().

◆ ada_print_scalar()

void ada_print_scalar ( struct type type,
LONGEST  val,
struct ui_file stream 
)

◆ ada_printchar()

void ada_printchar ( int  c,
struct type type,
struct ui_file stream 
)

Definition at line 348 of file ada-valprint.c.

References ada_emit_char(), fputs_filtered(), and TYPE_LENGTH.

Referenced by ada_val_print_num().

◆ ada_printstr()

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 522 of file ada-valprint.c.

References type::length, printstr(), and TYPE_LENGTH.

◆ ada_val_print()

void ada_val_print ( struct type type,
int  embedded_offset,
CORE_ADDR  address,
struct ui_file stream,
int  recurse,
struct value val,
const struct value_print_options options 
)

◆ ada_val_print_1()

static void ada_val_print_1 ( struct type type,
int  offset,
CORE_ADDR  address,
struct ui_file stream,
int  recurse,
struct value original_value,
const struct value_print_options options,
const struct language_defn language 
)
static

◆ ada_val_print_array()

static void ada_val_print_array ( 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 
)
static

◆ ada_val_print_enum()

static void ada_val_print_enum ( 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,
const struct language_defn language 
)
static

◆ ada_val_print_flt()

static void ada_val_print_flt ( 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,
const struct language_defn language 
)
static

◆ ada_val_print_gnat_array()

static void ada_val_print_gnat_array ( struct type type,
const gdb_byte valaddr,
int  offset,
CORE_ADDR  address,
struct ui_file stream,
int  recurse,
struct value original_value,
const struct value_print_options options,
const struct language_defn language 
)
static

◆ ada_val_print_num()

static void ada_val_print_num ( 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,
const struct language_defn language 
)
static

◆ ada_val_print_ptr()

static void ada_val_print_ptr ( 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,
const struct language_defn language 
)
static

◆ ada_val_print_ref()

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,
const struct language_defn language 
)
static

◆ ada_val_print_string()

static void ada_val_print_string ( 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 
)
static

◆ ada_val_print_struct_union()

static void ada_val_print_struct_union ( 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,
const struct language_defn language 
)
static

◆ ada_value_print()

void ada_value_print ( struct value val0,
struct ui_file stream,
const struct value_print_options options 
)

◆ adjust_type_signedness()

static void adjust_type_signedness ( struct type type)
static

Definition at line 47 of file ada-valprint.c.

References TYPE_CODE, TYPE_CODE_RANGE, TYPE_LOW_BOUND, and TYPE_UNSIGNED.

Referenced by print_field_values().

◆ char_at()

static int char_at ( const gdb_byte string,
int  i,
int  type_len,
enum bfd_endian  byte_order 
)
static

Definition at line 283 of file ada-valprint.c.

References extract_unsigned_integer().

Referenced by ada_val_print_string(), and printstr().

◆ print_field_values()

static int print_field_values ( struct type type,
const gdb_byte valaddr,
int  offset,
struct ui_file stream,
int  recurse,
struct value val,
const struct value_print_options options,
int  comma_needed,
struct type outer_type,
int  outer_offset,
const struct language_defn language 
)
static

◆ print_optional_low_bound()

static int print_optional_low_bound ( struct ui_file stream,
struct type type,
const struct value_print_options options 
)
static

◆ print_variant_part()

static int print_variant_part ( struct type type,
int  field_num,
const gdb_byte valaddr,
int  offset,
struct ui_file stream,
int  recurse,
struct value val,
const struct value_print_options options,
int  comma_needed,
struct type outer_type,
int  outer_offset,
const struct language_defn language 
)
static

◆ printable_val_type()

static struct type* printable_val_type ( struct type type,
const gdb_byte valaddr 
)
static

Definition at line 249 of file ada-valprint.c.

References ada_aligned_type(), and ada_to_fixed_type().

Referenced by ada_val_print_1().

◆ printstr()

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 
)
static

◆ val_print_packed_array_elements()

static void val_print_packed_array_elements ( struct type type,
const gdb_byte valaddr,
int  offset,
int  bitoffset,
struct ui_file stream,
int  recurse,
struct value val,
const struct value_print_options options 
)
static