GDB (xrefs)
Classes | Functions | Variables
/home/stan/gdb/src/gdb/valprint.h File Reference

Go to the source code of this file.

Classes

struct  value_print_options
struct  generic_val_print_decorations

Functions

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 val_print_array_elements (struct type *, const gdb_byte *, int, CORE_ADDR, struct ui_file *, int, const struct value *, const struct value_print_options *, unsigned int)
void val_print_type_code_int (struct type *, const gdb_byte *, struct ui_file *)
void val_print_type_code_flags (struct type *type, const gdb_byte *valaddr, struct ui_file *stream)
void val_print_scalar_formatted (struct type *, const gdb_byte *, int, const struct value *, const struct value_print_options *, int, struct ui_file *)
void print_binary_chars (struct ui_file *, const gdb_byte *, unsigned int, enum bfd_endian)
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, enum bfd_endian)
void print_hex_chars (struct ui_file *, const gdb_byte *, unsigned int, enum bfd_endian)
void print_char_chars (struct ui_file *, struct type *, const gdb_byte *, unsigned int, enum bfd_endian)
void print_function_pointer_address (const struct value_print_options *options, struct gdbarch *gdbarch, CORE_ADDR address, struct ui_file *stream)
int read_string (CORE_ADDR addr, int len, int width, unsigned int fetchlimit, enum bfd_endian byte_order, gdb_byte **buffer, int *bytes_read)
void val_print_optimized_out (const struct value *val, struct ui_file *stream)
void val_print_unavailable (struct ui_file *stream)
void val_print_invalid_address (struct ui_file *stream)
void generic_val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, const struct value *original_value, const struct value_print_options *options, const struct generic_val_print_decorations *)
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 (const char *args, int from_tty)
int val_print_scalar_type_p (struct type *type)

Variables

struct value_print_options user_print_options

Function Documentation

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 generic_val_print ( struct type type,
const gdb_byte valaddr,
int  embedded_offset,
CORE_ADDR  address,
struct ui_file stream,
int  recurse,
const struct value original_value,
const struct value_print_options options,
const struct generic_val_print_decorations  
)

Definition at line 371 of file valprint.c.

References _, value_print_options::addressprint, check_typedef(), CHECK_TYPEDEF, coerce_ref_if_computed(), common_val_print(), generic_val_print_decorations::complex_infix, generic_val_print_decorations::complex_prefix, generic_val_print_decorations::complex_suffix, current_language, demangle, value_print_options::deref_ref, error(), extract_typed_address(), generic_val_print_decorations::false_name, value_print_options::format, fprintf_filtered(), fputs_filtered(), gdb_assert, gdb_flush(), get_array_bounds(), get_type_arch(), LA_PRINT_CHAR, len, LONGEST, value_print_options::output_format, paddress(), value_print_options::prettyformat_arrays, print_address_demangle(), print_decimal_floating(), print_floating(), print_function_pointer_address(), print_longest(), print_spaces_filtered(), print_unpacked_pointer(), QUIT, value_print_options::symbol_print, generic_val_print_decorations::true_name, type, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_BOOL, TYPE_CODE_CHAR, TYPE_CODE_COMPLEX, TYPE_CODE_DECFLOAT, TYPE_CODE_ENUM, TYPE_CODE_ERROR, TYPE_CODE_FLAGS, TYPE_CODE_FLT, TYPE_CODE_FUNC, TYPE_CODE_INT, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD, TYPE_CODE_METHODPTR, TYPE_CODE_PTR, TYPE_CODE_RANGE, TYPE_CODE_REF, TYPE_CODE_STRUCT, TYPE_CODE_UNDEF, TYPE_CODE_UNION, TYPE_CODE_VOID, TYPE_ERROR_NAME, TYPE_FIELD_ENUMVAL, TYPE_FIELD_NAME, TYPE_FLAG_ENUM, TYPE_LENGTH, TYPE_NFIELDS, type_print(), TYPE_TARGET_TYPE, TYPE_UNSIGNED, unpack_long(), unpack_pointer(), val_print_array_elements(), val_print_scalar_formatted(), val_print_type_code_flags(), val_print_type_code_int(), value_at(), and generic_val_print_decorations::void_name.

Referenced by c_val_print(), f_val_print(), m2_val_print(), and pascal_val_print().

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 output_command_const ( const char *  args,
int  from_tty 
)
void print_binary_chars ( struct ui_file ,
const gdb_byte ,
unsigned  int,
enum  bfd_endian 
)

Definition at line 1144 of file valprint.c.

References BITS_IN_BYTES, fprintf_filtered(), len, and p.

Referenced by print_scalar_formatted().

void print_char_chars ( struct ui_file ,
struct type ,
const gdb_byte ,
unsigned  int,
enum  bfd_endian 
)

Definition at line 1519 of file valprint.c.

References LA_EMIT_CHAR, and p.

Referenced by print_scalar_formatted().

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

Definition at line 1355 of file valprint.c.

References CARRY_LEFT, CARRY_OUT, dummy, fprintf_filtered(), HIGH_NIBBLE, LOW_NIBBLE, p, SHIFT, xfree(), and xmalloc().

Referenced by print_scalar_formatted().

void print_function_pointer_address ( const struct value_print_options options,
struct gdbarch gdbarch,
CORE_ADDR  address,
struct ui_file stream 
)
void print_hex_chars ( struct ui_file ,
const gdb_byte ,
unsigned  int,
enum  bfd_endian 
)
void print_octal_chars ( struct ui_file ,
const gdb_byte ,
unsigned  int,
enum  bfd_endian 
)
int read_string ( CORE_ADDR  addr,
int  len,
int  width,
unsigned int  fetchlimit,
enum bfd_endian  byte_order,
gdb_byte **  buffer,
int bytes_read 
)
void val_print_array_elements ( struct type ,
const gdb_byte ,
int  ,
CORE_ADDR  ,
struct ui_file ,
int  ,
const struct value ,
const struct value_print_options ,
unsigned  int 
)
void val_print_invalid_address ( struct ui_file stream)

Definition at line 354 of file valprint.c.

References _, and fprintf_filtered().

Referenced by cp_print_value(), and pascal_object_print_value().

void val_print_optimized_out ( const struct value val,
struct ui_file stream 
)
void val_print_scalar_formatted ( struct type ,
const gdb_byte ,
int  ,
const struct value ,
const struct value_print_options ,
int  ,
struct ui_file  
)
int val_print_scalar_type_p ( struct type type)
void val_print_type_code_flags ( struct type type,
const gdb_byte valaddr,
struct ui_file stream 
)
void val_print_type_code_int ( struct type ,
const gdb_byte ,
struct ui_file  
)
void val_print_unavailable ( struct ui_file stream)

Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines