GDB (xrefs)
Classes | Macros | Typedefs | Functions | Variables
/tmp/gdb-8.1/gdb/valprint.c File Reference
#include "defs.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "value.h"
#include "gdbcore.h"
#include "gdbcmd.h"
#include "target.h"
#include "language.h"
#include "annotate.h"
#include "valprint.h"
#include "target-float.h"
#include "extension.h"
#include "ada-lang.h"
#include "gdb_obstack.h"
#include "charset.h"
#include "typeprint.h"
#include <ctype.h>
#include <algorithm>
#include "common/byte-vector.h"

Go to the source code of this file.

Classes

struct  converted_character
 

Macros

#define MAX_WCHARS   4
 
#define WCHAR_BUFLEN(X)   ((X) * sizeof (gdb_wchar_t))
 
#define WCHAR_BUFLEN_MAX   WCHAR_BUFLEN (MAX_WCHARS)
 
#define PRINT_MAX_DEFAULT   200 /* Start print_max off at this value. */
 
#define BITS_IN_OCTAL   3
 
#define HIGH_ZERO   0340
 
#define LOW_ZERO   0034
 
#define CARRY_ZERO   0003
 
#define HIGH_ONE   0200
 
#define MID_ONE   0160
 
#define LOW_ONE   0016
 
#define CARRY_ONE   0001
 
#define HIGH_TWO   0300
 
#define MID_TWO   0070
 
#define LOW_TWO   0007
 
#define TEN   10
 
#define CARRY_OUT( x)   ((x) / TEN) /* extend char to int */
 
#define CARRY_LEFT(x)   ((x) % TEN)
 
#define SHIFT(x)   ((x) << 4)
 
#define LOW_NIBBLE( x)   ( (x) & 0x00F)
 
#define HIGH_NIBBLE(x)   (((x) & 0x0F0) >> 4)
 

Typedefs

typedef struct converted_character converted_character_d
 

Functions

 DEF_VEC_O (converted_character_d)
 
static int partial_memory_read (CORE_ADDR memaddr, gdb_byte *myaddr, int len, int *errptr)
 
static void set_input_radix_1 (int, unsigned)
 
static void set_output_radix_1 (int, unsigned)
 
static void val_print_type_code_flags (struct type *type, const gdb_byte *valaddr, struct ui_file *stream)
 
void get_user_print_options (struct value_print_options *opts)
 
void get_no_prettyformat_print_options (struct value_print_options *opts)
 
void get_formatted_print_options (struct value_print_options *opts, char format)
 
static void show_print_max (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_input_radix (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_output_radix (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_print_array_indexes (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_repeat_count_threshold (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_stop_print_at_null (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_prettyformat_structs (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_prettyformat_arrays (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_unionprint (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_addressprint (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_symbol_print (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
int val_print_scalar_type_p (struct type *type)
 
int valprint_check_validity (struct ui_file *stream, struct type *type, LONGEST embedded_offset, const struct value *val)
 
void val_print_optimized_out (const struct value *val, struct ui_file *stream)
 
void val_print_not_saved (struct ui_file *stream)
 
void val_print_unavailable (struct ui_file *stream)
 
void val_print_invalid_address (struct ui_file *stream)
 
static void print_unpacked_pointer (struct type *type, struct type *elttype, CORE_ADDR address, struct ui_file *stream, const struct value_print_options *options)
 
static void generic_val_print_array (struct type *type, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, struct value *original_value, const struct value_print_options *options, const struct generic_val_print_decorations *decorations)
 
static void generic_val_print_ptr (struct type *type, int embedded_offset, struct ui_file *stream, struct value *original_value, const struct value_print_options *options)
 
static void generic_val_print_memberptr (struct type *type, int embedded_offset, struct ui_file *stream, struct value *original_value, const struct value_print_options *options)
 
static void print_ref_address (struct type *type, const gdb_byte *address_buffer, int embedded_offset, struct ui_file *stream)
 
static const gdb_byteget_value_addr_contents (struct value *deref_val)
 
static void generic_val_print_ref (struct type *type, int embedded_offset, struct ui_file *stream, int recurse, struct value *original_value, const struct value_print_options *options)
 
static void generic_val_print_enum_1 (struct type *type, LONGEST val, struct ui_file *stream)
 
static void generic_val_print_enum (struct type *type, int embedded_offset, struct ui_file *stream, struct value *original_value, const struct value_print_options *options)
 
static void generic_val_print_flags (struct type *type, int embedded_offset, struct ui_file *stream, struct value *original_value, const struct value_print_options *options)
 
static void generic_val_print_func (struct type *type, int embedded_offset, CORE_ADDR address, struct ui_file *stream, struct value *original_value, const struct value_print_options *options)
 
static void generic_val_print_bool (struct type *type, int embedded_offset, struct ui_file *stream, struct value *original_value, const struct value_print_options *options, const struct generic_val_print_decorations *decorations)
 
static void generic_val_print_int (struct type *type, int embedded_offset, struct ui_file *stream, struct value *original_value, const struct value_print_options *options)
 
static void generic_val_print_char (struct type *type, struct type *unresolved_type, int embedded_offset, struct ui_file *stream, struct value *original_value, const struct value_print_options *options)
 
static void generic_val_print_float (struct type *type, int embedded_offset, struct ui_file *stream, struct value *original_value, const struct value_print_options *options)
 
static void generic_val_print_complex (struct type *type, int embedded_offset, struct ui_file *stream, struct value *original_value, const struct value_print_options *options, const struct generic_val_print_decorations *decorations)
 
void generic_val_print (struct type *type, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, struct value *original_value, const struct value_print_options *options, const struct generic_val_print_decorations *decorations)
 
void val_print (struct type *type, LONGEST embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, struct value *val, const struct value_print_options *options, const struct language_defn *language)
 
static int value_check_printable (struct value *val, struct ui_file *stream, const struct value_print_options *options)
 
void common_val_print (struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options, const struct language_defn *language)
 
void value_print (struct value *val, struct ui_file *stream, const struct value_print_options *options)
 
void val_print_scalar_formatted (struct type *type, LONGEST embedded_offset, struct value *val, const struct value_print_options *options, int size, struct ui_file *stream)
 
void print_longest (struct ui_file *stream, int format, int use_c_format, LONGEST val_long)
 
int longest_to_int (LONGEST arg)
 
void print_floating (const gdb_byte *valaddr, struct type *type, struct ui_file *stream)
 
void print_binary_chars (struct ui_file *stream, const gdb_byte *valaddr, unsigned len, enum bfd_endian byte_order, bool zero_pad)
 
static void emit_octal_digit (struct ui_file *stream, bool *seen_a_one, int digit)
 
void print_octal_chars (struct ui_file *stream, const gdb_byte *valaddr, unsigned len, enum bfd_endian byte_order)
 
static bool maybe_negate_by_bytes (const gdb_byte *bytes, unsigned len, enum bfd_endian byte_order, gdb::byte_vector *out_vec)
 
void print_decimal_chars (struct ui_file *stream, const gdb_byte *valaddr, unsigned len, bool is_signed, enum bfd_endian byte_order)
 
void print_hex_chars (struct ui_file *stream, const gdb_byte *valaddr, unsigned len, enum bfd_endian byte_order, bool zero_pad)
 
void print_char_chars (struct ui_file *stream, struct type *type, const gdb_byte *valaddr, unsigned len, enum bfd_endian byte_order)
 
void print_function_pointer_address (const struct value_print_options *options, struct gdbarch *gdbarch, CORE_ADDR address, struct ui_file *stream)
 
void maybe_print_array_index (struct type *index_type, LONGEST index, struct ui_file *stream, const struct value_print_options *options)
 
void val_print_array_elements (struct type *type, LONGEST embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, struct value *val, const struct value_print_options *options, unsigned int i)
 
int read_string (CORE_ADDR addr, int len, int width, unsigned int fetchlimit, enum bfd_endian byte_order, gdb_byte **buffer, int *bytes_read)
 
static int wchar_printable (gdb_wchar_t w)
 
static void append_string_as_wide (const char *string, struct obstack *output)
 
static void print_wchar (gdb_wint_t w, const gdb_byte *orig, int orig_len, int width, enum bfd_endian byte_order, struct obstack *output, int quoter, int *need_escapep)
 
void generic_emit_char (int c, struct type *type, struct ui_file *stream, int quoter, const char *encoding)
 
static int count_next_character (wchar_iterator *iter, VEC(converted_character_d) **vec)
 
static void print_converted_chars_to_obstack (struct obstack *obstack, VEC(converted_character_d) *chars, int quote_char, int width, enum bfd_endian byte_order, const struct value_print_options *options)
 
void generic_printstr (struct ui_file *stream, struct type *type, const gdb_byte *string, unsigned int length, const char *encoding, int force_ellipses, int quote_char, int c_style_terminator, const struct value_print_options *options)
 
int val_print_string (struct type *elttype, const char *encoding, CORE_ADDR addr, int len, struct ui_file *stream, const struct value_print_options *options)
 
static void set_input_radix (const char *args, int from_tty, struct cmd_list_element *c)
 
static void set_output_radix (const char *args, int from_tty, struct cmd_list_element *c)
 
static void set_radix (const char *arg, int from_tty)
 
static void show_radix (const char *arg, int from_tty)
 
static void set_print (const char *arg, int from_tty)
 
static void show_print (const char *args, int from_tty)
 
static void set_print_raw (const char *arg, int from_tty)
 
static void show_print_raw (const char *args, int from_tty)
 
void _initialize_valprint (void)
 

Variables

struct cmd_list_elementsetprintrawlist
 
struct cmd_list_elementshowprintrawlist
 
struct value_print_options user_print_options
 
unsigned input_radix = 10
 
unsigned output_radix = 10
 
static unsigned input_radix_1 = 10
 
static unsigned output_radix_1 = 10
 

Macro Definition Documentation

◆ BITS_IN_OCTAL

#define BITS_IN_OCTAL   3

Referenced by print_octal_chars().

◆ CARRY_LEFT

#define CARRY_LEFT (   x)    ((x) % TEN)

Referenced by print_decimal_chars().

◆ CARRY_ONE

#define CARRY_ONE   0001

Referenced by print_octal_chars().

◆ CARRY_OUT

#define CARRY_OUT (   x)    ((x) / TEN) /* extend char to int */

Referenced by print_decimal_chars().

◆ CARRY_ZERO

#define CARRY_ZERO   0003

Referenced by print_octal_chars().

◆ HIGH_NIBBLE

#define HIGH_NIBBLE (   x)    (((x) & 0x0F0) >> 4)

Referenced by print_decimal_chars().

◆ HIGH_ONE

#define HIGH_ONE   0200

Referenced by print_octal_chars().

◆ HIGH_TWO

#define HIGH_TWO   0300

Referenced by print_octal_chars().

◆ HIGH_ZERO

#define HIGH_ZERO   0340

Referenced by print_octal_chars().

◆ LOW_NIBBLE

#define LOW_NIBBLE (   x)    ( (x) & 0x00F)

Referenced by print_decimal_chars().

◆ LOW_ONE

#define LOW_ONE   0016

Referenced by print_octal_chars().

◆ LOW_TWO

#define LOW_TWO   0007

Referenced by print_octal_chars().

◆ LOW_ZERO

#define LOW_ZERO   0034

Referenced by print_octal_chars().

◆ MAX_WCHARS

#define MAX_WCHARS   4

Definition at line 41 of file valprint.c.

Referenced by count_next_character().

◆ MID_ONE

#define MID_ONE   0160

Referenced by print_octal_chars().

◆ MID_TWO

#define MID_TWO   0070

Referenced by print_octal_chars().

◆ PRINT_MAX_DEFAULT

#define PRINT_MAX_DEFAULT   200 /* Start print_max off at this value. */

Definition at line 93 of file valprint.c.

◆ SHIFT

#define SHIFT (   x)    ((x) << 4)

Referenced by print_decimal_chars().

◆ TEN

#define TEN   10

◆ WCHAR_BUFLEN

#define WCHAR_BUFLEN (   X)    ((X) * sizeof (gdb_wchar_t))

Definition at line 45 of file valprint.c.

Referenced by count_next_character().

◆ WCHAR_BUFLEN_MAX

#define WCHAR_BUFLEN_MAX   WCHAR_BUFLEN (MAX_WCHARS)

Definition at line 48 of file valprint.c.

Typedef Documentation

◆ converted_character_d

Definition at line 73 of file valprint.c.

Function Documentation

◆ _initialize_valprint()

void _initialize_valprint ( void  )

◆ append_string_as_wide()

static void append_string_as_wide ( const char *  string,
struct obstack *  output 
)
static

Definition at line 2254 of file valprint.c.

References gdb_btowc, and string.

Referenced by print_wchar().

◆ common_val_print()

void common_val_print ( struct value val,
struct ui_file stream,
int  recurse,
const struct value_print_options options,
const struct language_defn language 
)

◆ count_next_character()

static int count_next_character ( wchar_iterator iter,
VEC(converted_character_d) **  vec 
)
static

◆ DEF_VEC_O()

DEF_VEC_O ( converted_character_d  )

◆ emit_octal_digit()

static void emit_octal_digit ( struct ui_file stream,
bool *  seen_a_one,
int  digit 
)
static

Definition at line 1436 of file valprint.c.

References fprintf_filtered().

Referenced by print_octal_chars().

◆ generic_emit_char()

void generic_emit_char ( int  c,
struct type type,
struct ui_file stream,
int  quoter,
const char *  encoding 
)

◆ generic_printstr()

void generic_printstr ( struct ui_file stream,
struct type type,
const gdb_byte string,
unsigned int  length,
const char *  encoding,
int  force_ellipses,
int  quote_char,
int  c_style_terminator,
const struct value_print_options options 
)

◆ generic_val_print()

void generic_val_print ( struct type type,
int  embedded_offset,
CORE_ADDR  address,
struct ui_file stream,
int  recurse,
struct value original_value,
const struct value_print_options options,
const struct generic_val_print_decorations decorations 
)

◆ generic_val_print_array()

static void generic_val_print_array ( struct type type,
int  embedded_offset,
CORE_ADDR  address,
struct ui_file stream,
int  recurse,
struct value original_value,
const struct value_print_options options,
const struct generic_val_print_decorations decorations 
)
static

◆ generic_val_print_bool()

static void generic_val_print_bool ( struct type type,
int  embedded_offset,
struct ui_file stream,
struct value original_value,
const struct value_print_options options,
const struct generic_val_print_decorations decorations 
)
static

◆ generic_val_print_char()

static void generic_val_print_char ( struct type type,
struct type unresolved_type,
int  embedded_offset,
struct ui_file stream,
struct value original_value,
const struct value_print_options options 
)
static

◆ generic_val_print_complex()

static void generic_val_print_complex ( struct type type,
int  embedded_offset,
struct ui_file stream,
struct value original_value,
const struct value_print_options options,
const struct generic_val_print_decorations decorations 
)
static

◆ generic_val_print_enum()

static void generic_val_print_enum ( struct type type,
int  embedded_offset,
struct ui_file stream,
struct value original_value,
const struct value_print_options options 
)
static

◆ generic_val_print_enum_1()

static void generic_val_print_enum_1 ( struct type type,
LONGEST  val,
struct ui_file stream 
)
static

◆ generic_val_print_flags()

static void generic_val_print_flags ( struct type type,
int  embedded_offset,
struct ui_file stream,
struct value original_value,
const struct value_print_options options 
)
static

◆ generic_val_print_float()

static void generic_val_print_float ( struct type type,
int  embedded_offset,
struct ui_file stream,
struct value original_value,
const struct value_print_options options 
)
static

◆ generic_val_print_func()

static void generic_val_print_func ( struct type type,
int  embedded_offset,
CORE_ADDR  address,
struct ui_file stream,
struct value original_value,
const struct value_print_options options 
)
static

◆ generic_val_print_int()

static void generic_val_print_int ( struct type type,
int  embedded_offset,
struct ui_file stream,
struct value original_value,
const struct value_print_options options 
)
static

◆ generic_val_print_memberptr()

static void generic_val_print_memberptr ( struct type type,
int  embedded_offset,
struct ui_file stream,
struct value original_value,
const struct value_print_options options 
)
static

Definition at line 479 of file valprint.c.

References val_print_scalar_formatted().

Referenced by generic_val_print().

◆ generic_val_print_ptr()

static void generic_val_print_ptr ( struct type type,
int  embedded_offset,
struct ui_file stream,
struct value original_value,
const struct value_print_options options 
)
static

◆ generic_val_print_ref()

static void generic_val_print_ref ( struct type type,
int  embedded_offset,
struct ui_file stream,
int  recurse,
struct value original_value,
const struct value_print_options options 
)
static

◆ get_formatted_print_options()

void get_formatted_print_options ( struct value_print_options opts,
char  format 
)

◆ get_no_prettyformat_print_options()

void get_no_prettyformat_print_options ( struct value_print_options opts)

◆ get_user_print_options()

void get_user_print_options ( struct value_print_options opts)

◆ get_value_addr_contents()

static const gdb_byte* get_value_addr_contents ( struct value deref_val)
static

◆ longest_to_int()

int longest_to_int ( LONGEST  )

◆ maybe_negate_by_bytes()

static bool maybe_negate_by_bytes ( const gdb_byte bytes,
unsigned  len,
enum bfd_endian  byte_order,
gdb::byte_vector out_vec 
)
static

Definition at line 1605 of file valprint.c.

Referenced by print_decimal_chars().

◆ maybe_print_array_index()

void maybe_print_array_index ( struct type index_type,
LONGEST  index,
struct ui_file stream,
const struct value_print_options options 
)

◆ partial_memory_read()

static int partial_memory_read ( CORE_ADDR  memaddr,
gdb_byte myaddr,
int  len,
int *  errptr 
)
static

Definition at line 2069 of file valprint.c.

References target_read_memory().

Referenced by read_string().

◆ print_binary_chars()

void print_binary_chars ( struct ui_file stream,
const gdb_byte valaddr,
unsigned  len,
enum bfd_endian  byte_order,
bool  zero_pad 
)

Definition at line 1369 of file valprint.c.

References fputc_filtered(), and HOST_CHAR_BIT.

Referenced by print_scalar_formatted().

◆ print_char_chars()

void print_char_chars ( struct ui_file stream,
struct type type,
const gdb_byte valaddr,
unsigned  len,
enum bfd_endian  byte_order 
)

Definition at line 1848 of file valprint.c.

References LA_EMIT_CHAR.

◆ print_converted_chars_to_obstack()

static void print_converted_chars_to_obstack ( struct obstack *  obstack,
VEC(converted_character_d) *  chars,
int  quote_char,
int  width,
enum bfd_endian  byte_order,
const struct value_print_options options 
)
static

◆ print_decimal_chars()

void print_decimal_chars ( struct ui_file stream,
const gdb_byte valaddr,
unsigned  len,
bool  is_signed,
enum bfd_endian  byte_order 
)

◆ print_floating()

void print_floating ( const gdb_byte valaddr,
struct type type,
struct ui_file stream 
)

◆ print_function_pointer_address()

void print_function_pointer_address ( const struct value_print_options options,
struct gdbarch gdbarch,
CORE_ADDR  address,
struct ui_file stream 
)

◆ print_hex_chars()

void print_hex_chars ( struct ui_file stream,
const gdb_byte valaddr,
unsigned  len,
enum bfd_endian  byte_order,
bool  zero_pad 
)

◆ print_longest()

void print_longest ( struct ui_file stream,
int  format,
int  use_c_format,
LONGEST  val_long 
)

◆ print_octal_chars()

void print_octal_chars ( struct ui_file stream,
const gdb_byte valaddr,
unsigned  len,
enum bfd_endian  byte_order 
)

◆ print_ref_address()

static void print_ref_address ( struct type type,
const gdb_byte address_buffer,
int  embedded_offset,
struct ui_file stream 
)
static

◆ print_unpacked_pointer()

static void print_unpacked_pointer ( struct type type,
struct type elttype,
CORE_ADDR  address,
struct ui_file stream,
const struct value_print_options options 
)
static

◆ print_wchar()

static void print_wchar ( gdb_wint_t  w,
const gdb_byte orig,
int  orig_len,
int  width,
enum bfd_endian  byte_order,
struct obstack *  output,
int  quoter,
int *  need_escapep 
)
static

◆ read_string()

int read_string ( CORE_ADDR  addr,
int  len,
int  width,
unsigned int  fetchlimit,
enum bfd_endian  byte_order,
gdb_byte **  buffer,
int *  bytes_read 
)

◆ set_input_radix()

static void set_input_radix ( const char *  args,
int  from_tty,
struct cmd_list_element c 
)
static

Definition at line 2895 of file valprint.c.

References input_radix_1, and set_input_radix_1().

Referenced by _initialize_valprint().

◆ set_input_radix_1()

static void set_input_radix_1 ( int  from_tty,
unsigned  radix 
)
static

Definition at line 2901 of file valprint.c.

References _, error(), input_radix, input_radix_1, and printf_filtered().

Referenced by set_input_radix(), and set_radix().

◆ set_output_radix()

static void set_output_radix ( const char *  args,
int  from_tty,
struct cmd_list_element c 
)
static

Definition at line 2932 of file valprint.c.

References output_radix_1, and set_output_radix_1().

Referenced by _initialize_valprint().

◆ set_output_radix_1()

static void set_output_radix_1 ( int  from_tty,
unsigned  radix 
)
static

◆ set_print()

static void set_print ( const char *  arg,
int  from_tty 
)
static

Definition at line 3019 of file valprint.c.

References all_commands, gdb_stdout, help_list(), printf_unfiltered(), and setprintlist.

Referenced by _initialize_valprint().

◆ set_print_raw()

static void set_print_raw ( const char *  arg,
int  from_tty 
)
static

Definition at line 3033 of file valprint.c.

References all_commands, gdb_stdout, help_list(), printf_unfiltered(), and setprintrawlist.

Referenced by _initialize_valprint().

◆ set_radix()

static void set_radix ( const char *  arg,
int  from_tty 
)
static

◆ show_addressprint()

static void show_addressprint ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 244 of file valprint.c.

References _, and fprintf_filtered().

Referenced by _initialize_valprint().

◆ show_input_radix()

static void show_input_radix ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 159 of file valprint.c.

References _, and fprintf_filtered().

Referenced by _initialize_valprint().

◆ show_output_radix()

static void show_output_radix ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 169 of file valprint.c.

References _, and fprintf_filtered().

Referenced by _initialize_valprint().

◆ show_prettyformat_arrays()

static void show_prettyformat_arrays ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 223 of file valprint.c.

References _, and fprintf_filtered().

Referenced by _initialize_valprint().

◆ show_prettyformat_structs()

static void show_prettyformat_structs ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 214 of file valprint.c.

References _, and fprintf_filtered().

Referenced by _initialize_valprint().

◆ show_print()

static void show_print ( const char *  args,
int  from_tty 
)
static

Definition at line 3027 of file valprint.c.

References cmd_show_list(), and showprintlist.

Referenced by _initialize_valprint().

◆ show_print_array_indexes()

static void show_print_array_indexes ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 181 of file valprint.c.

References _, and fprintf_filtered().

Referenced by _initialize_valprint().

◆ show_print_max()

static void show_print_max ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 145 of file valprint.c.

References _, and fprintf_filtered().

Referenced by _initialize_valprint().

◆ show_print_raw()

static void show_print_raw ( const char *  args,
int  from_tty 
)
static

Definition at line 3041 of file valprint.c.

References cmd_show_list(), and showprintrawlist.

Referenced by _initialize_valprint().

◆ show_radix()

static void show_radix ( const char *  arg,
int  from_tty 
)
static

Definition at line 2995 of file valprint.c.

References _, input_radix, output_radix, and printf_filtered().

Referenced by _initialize_valprint().

◆ show_repeat_count_threshold()

static void show_repeat_count_threshold ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 192 of file valprint.c.

References _, and fprintf_filtered().

Referenced by _initialize_valprint().

◆ show_stop_print_at_null()

static void show_stop_print_at_null ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 202 of file valprint.c.

References _, and fprintf_filtered().

Referenced by _initialize_valprint().

◆ show_symbol_print()

static void show_symbol_print ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 251 of file valprint.c.

References _, and fprintf_filtered().

Referenced by _initialize_valprint().

◆ show_unionprint()

static void show_unionprint ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 233 of file valprint.c.

References _, and fprintf_filtered().

Referenced by _initialize_valprint().

◆ val_print()

void val_print ( struct type type,
LONGEST  embedded_offset,
CORE_ADDR  address,
struct ui_file stream,
int  recurse,
struct value val,
const struct value_print_options options,
const struct language_defn language 
)

◆ val_print_array_elements()

void val_print_array_elements ( struct type type,
LONGEST  embedded_offset,
CORE_ADDR  address,
struct ui_file stream,
int  recurse,
struct value val,
const struct value_print_options options,
unsigned int  i 
)

◆ val_print_invalid_address()

void val_print_invalid_address ( struct ui_file stream)

Definition at line 374 of file valprint.c.

References _, and fprintf_filtered().

Referenced by cp_print_value(), and pascal_object_print_value().

◆ val_print_not_saved()

void val_print_not_saved ( struct ui_file stream)

Definition at line 362 of file valprint.c.

References _, and fprintf_filtered().

Referenced by fprint_frame(), info_frame_command(), and val_print_optimized_out().

◆ val_print_optimized_out()

void val_print_optimized_out ( const struct value val,
struct ui_file stream 
)

◆ val_print_scalar_formatted()

void val_print_scalar_formatted ( struct type type,
LONGEST  embedded_offset,
struct value val,
const struct value_print_options options,
int  size,
struct ui_file stream 
)

◆ val_print_scalar_type_p()

int val_print_scalar_type_p ( struct type type)

◆ val_print_string()

int val_print_string ( struct type elttype,
const char *  encoding,
CORE_ADDR  addr,
int  len,
struct ui_file stream,
const struct value_print_options options 
)

◆ val_print_type_code_flags()

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

◆ val_print_unavailable()

void val_print_unavailable ( struct ui_file stream)

◆ valprint_check_validity()

int valprint_check_validity ( struct ui_file stream,
struct type type,
LONGEST  embedded_offset,
const struct value val 
)

◆ value_check_printable()

static int value_check_printable ( struct value val,
struct ui_file stream,
const struct value_print_options options 
)
static

◆ value_print()

void value_print ( struct value val,
struct ui_file stream,
const struct value_print_options options 
)

◆ wchar_printable()

static int wchar_printable ( gdb_wchar_t  w)
static

Definition at line 2241 of file valprint.c.

References gdb_iswprint, and LCST.

Referenced by generic_emit_char(), and print_wchar().

Variable Documentation

◆ input_radix

unsigned input_radix = 10

Default radixes for input and output. Only some values supported.

Definition at line 157 of file valprint.c.

Referenced by breakpoint_re_set(), breakpoint_re_set_one(), classify_name(), init_raw_breakpoint_without_location(), lex_one_token(), parse_number(), set_input_radix_1(), show_radix(), varobj_set_value(), VEC(), and yylex().

◆ input_radix_1

unsigned input_radix_1 = 10
static

Definition at line 2888 of file valprint.c.

Referenced by _initialize_valprint(), set_input_radix(), and set_input_radix_1().

◆ output_radix

unsigned output_radix = 10

Definition at line 167 of file valprint.c.

Referenced by set_output_radix_1(), and show_radix().

◆ output_radix_1

unsigned output_radix_1 = 10
static

Definition at line 2929 of file valprint.c.

Referenced by _initialize_valprint(), set_output_radix(), and set_output_radix_1().

◆ setprintrawlist

struct cmd_list_element* setprintrawlist

Definition at line 77 of file valprint.c.

Referenced by _initialize_stack(), _initialize_valprint(), and set_print_raw().

◆ showprintrawlist

struct cmd_list_element* showprintrawlist

Definition at line 78 of file valprint.c.

Referenced by _initialize_stack(), _initialize_valprint(), and show_print_raw().

◆ user_print_options

struct value_print_options user_print_options