GDB (xrefs)
Loading...
Searching...
No Matches
Classes | 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
 

Functions

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
 

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 
)

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

Definition at line 1158 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 
)

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

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

◆ make_value_print_options_def_group()

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

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

◆ output_command()

void output_command ( const char *  args,
int  from_tty 
)

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

◆ print_command_completer()

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

◆ print_command_parse_format()

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

◆ print_decimal_chars()

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

◆ 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 ,
const gdb_byte *  ,
unsigned int  ,
enum  bfd_endian,
bool   
)

◆ print_octal_chars()

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

◆ print_value()

void print_value ( value val,
const value_print_options opts 
)

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

◆ val_print_invalid_address()

void val_print_invalid_address ( struct ui_file stream)

Definition at line 417 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)

◆ val_print_optimized_out()

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

◆ val_print_scalar_type_p()

int val_print_scalar_type_p ( struct type type)

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

◆ value_print_scalar_formatted()

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

Variable Documentation

◆ user_print_options

struct value_print_options user_print_options
extern