GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Enumerations | Functions | Variables
valprint.h File Reference
#include "cli/cli-option.h"

Go to the source code of this file.

Classes

struct  value_print_options
 
struct  generic_val_print_decorations
 
struct  format_data
 

Macros

#define PRINT_MAX_CHARS_ELEMENTS   0
 
#define PRINT_MAX_CHARS_UNLIMITED   UINT_MAX
 

Enumerations

enum  val_prettyformat { Val_no_prettyformat = 0 , Val_prettyformat , Val_prettyformat_default }
 

Functions

static unsigned int get_print_max_chars (const struct value_print_options *options)
 
gdb::option::option_def_group make_value_print_options_def_group (value_print_options *opts)
 
void get_user_print_options (struct value_print_options *opts)
 
void get_no_prettyformat_print_options (struct value_print_options *)
 
void get_formatted_print_options (struct value_print_options *opts, char format)
 
void maybe_print_array_index (struct type *index_type, LONGEST index, struct ui_file *stream, const struct value_print_options *)
 
void value_print_array_elements (struct value *, struct ui_file *, int, const struct value_print_options *, unsigned int)
 
void value_print_scalar_formatted (struct value *val, const struct value_print_options *options, int size, struct ui_file *stream)
 
void print_binary_chars (struct ui_file *, const gdb_byte *, unsigned int, enum bfd_endian, bool, const struct value_print_options *options)
 
void print_octal_chars (struct ui_file *, const gdb_byte *, unsigned int, enum bfd_endian)
 
void print_decimal_chars (struct ui_file *, const gdb_byte *, unsigned int, bool, enum bfd_endian)
 
void print_hex_chars (struct ui_file *, const gdb_byte *, unsigned int, enum bfd_endian, bool)
 
void print_function_pointer_address (const struct value_print_options *options, struct gdbarch *gdbarch, CORE_ADDR address, struct ui_file *stream)
 
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)
 
void generic_value_print (struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options, const struct generic_val_print_decorations *d)
 
void generic_emit_char (int c, struct type *type, struct ui_file *stream, int quoter, const char *encoding)
 
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)
 
void output_command (const char *args, int from_tty)
 
int val_print_scalar_type_p (struct type *type)
 
void print_command_parse_format (const char **expp, const char *cmdname, value_print_options *opts)
 
void print_value (value *val, const value_print_options &opts)
 
void print_command_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word)
 
int build_address_symbolic (struct gdbarch *, CORE_ADDR addr, bool do_demangle, bool prefer_sym_over_minsym, std::string *name, int *offset, std::string *filename, int *line, int *unmapped)
 
bool val_print_check_max_depth (struct ui_file *stream, int recurse, const struct value_print_options *opts, const struct language_defn *language)
 
void common_val_print_checked (struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options, const struct language_defn *language)
 

Variables

struct value_print_options user_print_options
 

Macro Definition Documentation

◆ PRINT_MAX_CHARS_ELEMENTS

#define PRINT_MAX_CHARS_ELEMENTS   0

Definition at line 123 of file valprint.h.

Referenced by get_print_max_chars(), and show_print_max().

◆ PRINT_MAX_CHARS_UNLIMITED

#define PRINT_MAX_CHARS_UNLIMITED   UINT_MAX

Definition at line 126 of file valprint.h.

Enumeration Type Documentation

◆ val_prettyformat

Enumerator
Val_no_prettyformat 
Val_prettyformat 
Val_prettyformat_default 

Use the default setting which the user has specified.

Definition at line 28 of file valprint.h.

Function Documentation

◆ build_address_symbolic()

int build_address_symbolic ( struct gdbarch * gdbarch,
CORE_ADDR addr,
bool do_demangle,
bool prefer_sym_over_minsym,
std::string * name,
int * offset,
std::string * filename,
int * line,
int * unmapped )
extern

◆ common_val_print_checked()

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

Definition at line 1177 of file valprint.c.

References common_val_print(), and value_check_printable().

Referenced by print_frame_arg(), and print_variable_and_value().

◆ generic_emit_char()

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

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

◆ generic_value_print()

void generic_value_print ( struct value * val,
struct ui_file * stream,
int recurse,
const struct value_print_options * options,
const struct generic_val_print_decorations * d )
extern

◆ get_formatted_print_options()

void get_formatted_print_options ( struct value_print_options * opts,
char format )
extern

◆ get_no_prettyformat_print_options()

void get_no_prettyformat_print_options ( struct value_print_options * opts)
extern

◆ get_print_max_chars()

static unsigned int get_print_max_chars ( const struct value_print_options * options)
inlinestatic

◆ get_user_print_options()

void get_user_print_options ( struct value_print_options * opts)
extern

◆ make_value_print_options_def_group()

gdb::option::option_def_group make_value_print_options_def_group ( value_print_options * opts)
extern

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

◆ output_command()

void output_command ( const char * args,
int from_tty )
extern

◆ print_binary_chars()

void print_binary_chars ( struct ui_file * ,
const gdb_byte * ,
unsigned int ,
enum bfd_endian,
bool ,
const struct value_print_options * options )
extern

◆ print_command_completer()

void print_command_completer ( struct cmd_list_element * ignore,
completion_tracker & tracker,
const char * text,
const char * word )
extern

◆ print_command_parse_format()

void print_command_parse_format ( const char ** expp,
const char * cmdname,
value_print_options * opts )
extern

◆ print_decimal_chars()

void print_decimal_chars ( struct ui_file * ,
const gdb_byte * ,
unsigned int ,
bool ,
enum bfd_endian )
extern

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

◆ print_hex_chars()

void print_hex_chars ( struct ui_file * ,
const gdb_byte * ,
unsigned int ,
enum bfd_endian,
bool  )
extern

◆ print_octal_chars()

void print_octal_chars ( struct ui_file * ,
const gdb_byte * ,
unsigned int ,
enum bfd_endian )
extern

◆ print_value()

void print_value ( value * val,
const value_print_options & opts )
extern

◆ val_print_check_max_depth()

bool val_print_check_max_depth ( struct ui_file * stream,
int recurse,
const struct value_print_options * opts,
const struct language_defn * language )
extern

◆ val_print_invalid_address()

void val_print_invalid_address ( struct ui_file * stream)
extern

Definition at line 437 of file valprint.c.

References fprintf_styled(), metadata_style, and cli_style_option::style().

Referenced by cp_print_value(), and pascal_object_print_value().

◆ val_print_not_saved()

void val_print_not_saved ( struct ui_file * stream)
extern

◆ val_print_optimized_out()

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

◆ val_print_scalar_type_p()

int val_print_scalar_type_p ( struct type * type)
extern

◆ val_print_unavailable()

void val_print_unavailable ( struct ui_file * stream)
extern

◆ valprint_check_validity()

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

◆ value_print_array_elements()

void value_print_array_elements ( struct value * val,
struct ui_file * stream,
int recurse,
const struct value_print_options * options,
unsigned int i )
extern

◆ value_print_scalar_formatted()

void value_print_scalar_formatted ( struct value * val,
const struct value_print_options * options,
int size,
struct ui_file * stream )
extern

Variable Documentation

◆ user_print_options

struct value_print_options user_print_options
extern