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

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

References gdb_printf().

Referenced by ada_printchar(), ada_language::emitchar(), 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 305 of file ada-valprint.c.

References gdb_printf(), gdb_puts(), print_floating(), and string_file::release().

Referenced by ada_value_print_inner().

◆ 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 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().

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

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

Referenced by ada_language::printstr().

◆ ada_val_print_enum()

static void ada_val_print_enum ( struct value * value,
struct ui_file * stream,
int recurse,
const struct value_print_options * options )
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 )
static

◆ ada_val_print_string()

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

◆ ada_val_print_struct_union()

static void ada_val_print_struct_union ( struct value * value,
struct ui_file * stream,
int recurse,
const struct value_print_options * options )
static

◆ ada_value_print()

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

◆ ada_value_print_array()

static void ada_value_print_array ( struct value * val,
struct ui_file * stream,
int recurse,
const struct value_print_options * options )
static

◆ ada_value_print_inner()

void ada_value_print_inner ( struct value * val,
struct ui_file * stream,
int recurse,
const struct value_print_options * options )

◆ ada_value_print_num()

static void ada_value_print_num ( struct value * val,
struct ui_file * stream,
int recurse,
const struct value_print_options * options )
static

◆ ada_value_print_ptr()

static void ada_value_print_ptr ( struct value * val,
struct ui_file * stream,
int recurse,
const struct value_print_options * options )
static

◆ char_at()

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

Definition at line 289 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 value * value,
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

◆ 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 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

◆ 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,
struct ui_file * stream,
int recurse,
const struct value_print_options * options )
static