| GDB (API)
   
    | 
#include "defs.h"#include "gdb_string.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 "floatformat.h"#include "doublest.h"#include "exceptions.h"#include "dfp.h"#include "python/python.h"#include "ada-lang.h"#include "gdb_obstack.h"#include "charset.h"#include <ctype.h>#include <errno.h>Go to the source code of this file.
| Defines | |
| #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_BYTES 8 | 
| #define | BITS_IN_OCTAL 3 | 
| #define | HIGH_ZERO 0340 | 
| #define | LOW_ZERO 0016 | 
| #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) | |
| void | _initialize_valprint (void) | 
| 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) | 
| int | val_print_scalar_type_p (struct type *type) | 
| int | valprint_check_validity (struct ui_file *stream, struct type *type, int embedded_offset, const struct value *val) | 
| 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 *decorations) | 
| void | val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, const struct value *val, const struct value_print_options *options, const struct language_defn *language) | 
| 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_type_code_int (struct type *type, const gdb_byte *valaddr, struct ui_file *stream) | 
| void | val_print_type_code_flags (struct type *type, const gdb_byte *valaddr, struct ui_file *stream) | 
| void | val_print_scalar_formatted (struct type *type, const gdb_byte *valaddr, int embedded_offset, const 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_decimal_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) | 
| void | print_octal_chars (struct ui_file *stream, const gdb_byte *valaddr, unsigned len, enum bfd_endian byte_order) | 
| void | print_decimal_chars (struct ui_file *stream, const gdb_byte *valaddr, unsigned len, enum bfd_endian byte_order) | 
| void | print_hex_chars (struct ui_file *stream, const gdb_byte *valaddr, unsigned len, enum bfd_endian byte_order) | 
| 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, const gdb_byte *valaddr, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, const 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) | 
| 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) | 
| 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) | 
| Variables | |
| struct cmd_list_element * | setprintrawlist | 
| struct cmd_list_element * | showprintrawlist | 
| struct value_print_options | user_print_options | 
| unsigned | input_radix = 10 | 
| unsigned | output_radix = 10 | 
| #define BITS_IN_BYTES 8 | 
| #define BITS_IN_OCTAL 3 | 
| #define CARRY_LEFT | ( | x | ) | ((x) % TEN) | 
| #define CARRY_ONE 0001 | 
| #define CARRY_ZERO 0003 | 
| #define HIGH_NIBBLE | ( | x | ) | (((x) & 0x0F0) >> 4) | 
| #define HIGH_ONE 0200 | 
| #define HIGH_TWO 0300 | 
| #define HIGH_ZERO 0340 | 
| #define LOW_NIBBLE | ( | x | ) | ( (x) & 0x00F) | 
| #define LOW_ONE 0016 | 
| #define LOW_TWO 0007 | 
| #define LOW_ZERO 0016 | 
| #define MAX_WCHARS 4 | 
Definition at line 44 of file valprint.c.
| #define MID_ONE 0160 | 
| #define MID_TWO 0070 | 
| #define PRINT_MAX_DEFAULT 200 /* Start print_max off at this value. */ | 
Definition at line 106 of file valprint.c.
| #define SHIFT | ( | x | ) | ((x) << 4) | 
| #define TEN 10 | 
| #define WCHAR_BUFLEN | ( | X | ) | ((X) * sizeof (gdb_wchar_t)) | 
Definition at line 48 of file valprint.c.
| #define WCHAR_BUFLEN_MAX WCHAR_BUFLEN (MAX_WCHARS) | 
Definition at line 51 of file valprint.c.
| typedef struct converted_character converted_character_d | 
Definition at line 76 of file valprint.c.
| void _initialize_valprint | ( | void | ) | 
| void common_val_print | ( | struct value * | val, | 
| struct ui_file * | stream, | ||
| int | recurse, | ||
| const struct value_print_options * | options, | ||
| const struct language_defn * | language | ||
| ) | 
Definition at line 832 of file valprint.c.
| void generic_emit_char | ( | int | c, | 
| struct type * | type, | ||
| struct ui_file * | stream, | ||
| int | quoter, | ||
| const char * | encoding | ||
| ) | 
Definition at line 2009 of file valprint.c.
| 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 | ||
| ) | 
Definition at line 2338 of file valprint.c.
| 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 * | decorations | ||
| ) | 
Definition at line 371 of file valprint.c.
| void get_formatted_print_options | ( | struct value_print_options * | opts, | 
| char | format | ||
| ) | 
Definition at line 150 of file valprint.c.
| void get_no_prettyformat_print_options | ( | struct value_print_options * | opts | ) | 
Definition at line 141 of file valprint.c.
| void get_user_print_options | ( | struct value_print_options * | opts | ) | 
Definition at line 133 of file valprint.c.
| int longest_to_int | ( | LONGEST | arg | ) | 
Definition at line 1038 of file valprint.c.
| void maybe_print_array_index | ( | struct type * | index_type, | 
| LONGEST | index, | ||
| struct ui_file * | stream, | ||
| const struct value_print_options * | options | ||
| ) | 
Definition at line 1580 of file valprint.c.
| void print_binary_chars | ( | struct ui_file * | stream, | 
| const gdb_byte * | valaddr, | ||
| unsigned | len, | ||
| enum bfd_endian | byte_order | ||
| ) | 
Definition at line 1144 of file valprint.c.
| 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 1519 of file valprint.c.
| void print_decimal_chars | ( | struct ui_file * | stream, | 
| const gdb_byte * | valaddr, | ||
| unsigned | len, | ||
| enum bfd_endian | byte_order | ||
| ) | 
Definition at line 1355 of file valprint.c.
| void print_decimal_floating | ( | const gdb_byte * | valaddr, | 
| struct type * | type, | ||
| struct ui_file * | stream | ||
| ) | 
Definition at line 1131 of file valprint.c.
| void print_floating | ( | const gdb_byte * | valaddr, | 
| struct type * | type, | ||
| struct ui_file * | stream | ||
| ) | 
Definition at line 1058 of file valprint.c.
| void print_function_pointer_address | ( | const struct value_print_options * | options, | 
| struct gdbarch * | gdbarch, | ||
| CORE_ADDR | address, | ||
| struct ui_file * | stream | ||
| ) | 
Definition at line 1555 of file valprint.c.
| void print_hex_chars | ( | struct ui_file * | stream, | 
| const gdb_byte * | valaddr, | ||
| unsigned | len, | ||
| enum bfd_endian | byte_order | ||
| ) | 
Definition at line 1486 of file valprint.c.
| void print_longest | ( | struct ui_file * | stream, | 
| int | format, | ||
| int | use_c_format, | ||
| LONGEST | val_long | ||
| ) | 
Definition at line 1000 of file valprint.c.
| void print_octal_chars | ( | struct ui_file * | stream, | 
| const gdb_byte * | valaddr, | ||
| unsigned | len, | ||
| enum bfd_endian | byte_order | ||
| ) | 
Definition at line 1204 of file valprint.c.
| int read_string | ( | CORE_ADDR | addr, | 
| int | len, | ||
| int | width, | ||
| unsigned int | fetchlimit, | ||
| enum bfd_endian | byte_order, | ||
| gdb_byte ** | buffer, | ||
| int * | bytes_read | ||
| ) | 
Definition at line 1777 of file valprint.c.
| void val_print | ( | struct type * | type, | 
| const gdb_byte * | valaddr, | ||
| int | embedded_offset, | ||
| CORE_ADDR | address, | ||
| struct ui_file * | stream, | ||
| int | recurse, | ||
| const struct value * | val, | ||
| const struct value_print_options * | options, | ||
| const struct language_defn * | language | ||
| ) | 
Definition at line 734 of file valprint.c.
| void val_print_array_elements | ( | struct type * | type, | 
| const gdb_byte * | valaddr, | ||
| int | embedded_offset, | ||
| CORE_ADDR | address, | ||
| struct ui_file * | stream, | ||
| int | recurse, | ||
| const struct value * | val, | ||
| const struct value_print_options * | options, | ||
| unsigned int | i | ||
| ) | 
Definition at line 1603 of file valprint.c.
| void val_print_invalid_address | ( | struct ui_file * | stream | ) | 
Definition at line 354 of file valprint.c.
| void val_print_optimized_out | ( | const struct value * | val, | 
| struct ui_file * | stream | ||
| ) | 
Definition at line 339 of file valprint.c.
| void val_print_scalar_formatted | ( | struct type * | type, | 
| const gdb_byte * | valaddr, | ||
| int | embedded_offset, | ||
| const struct value * | val, | ||
| const struct value_print_options * | options, | ||
| int | size, | ||
| struct ui_file * | stream | ||
| ) | 
Definition at line 945 of file valprint.c.
| int val_print_scalar_type_p | ( | struct type * | type | ) | 
Definition at line 279 of file valprint.c.
| 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 | ||
| ) | 
Definition at line 2454 of file valprint.c.
| void val_print_type_code_flags | ( | struct type * | type, | 
| const gdb_byte * | valaddr, | ||
| struct ui_file * | stream | ||
| ) | 
Definition at line 916 of file valprint.c.
| void val_print_type_code_int | ( | struct type * | type, | 
| const gdb_byte * | valaddr, | ||
| struct ui_file * | stream | ||
| ) | 
Definition at line 883 of file valprint.c.
| void val_print_unavailable | ( | struct ui_file * | stream | ) | 
Definition at line 348 of file valprint.c.
| int valprint_check_validity | ( | struct ui_file * | stream, | 
| struct type * | type, | ||
| int | embedded_offset, | ||
| const struct value * | val | ||
| ) | 
Definition at line 303 of file valprint.c.
| void value_print | ( | struct value * | val, | 
| struct ui_file * | stream, | ||
| const struct value_print_options * | options | ||
| ) | 
Definition at line 856 of file valprint.c.
| unsigned input_radix = 10 | 
Definition at line 170 of file valprint.c.
| unsigned output_radix = 10 | 
Definition at line 180 of file valprint.c.
| struct cmd_list_element* setprintrawlist | 
Definition at line 80 of file valprint.c.
| struct cmd_list_element* showprintrawlist | 
Definition at line 81 of file valprint.c.
{
  Val_prettyformat_default,     
  0,                            
  0,                            
  0,                            
  1,                            
  1,                            
  0,                            
  PRINT_MAX_DEFAULT,            
  10,                           
  0,                            
  0,                            
  0,                            
  0,                            
  0,                            
  1,                            
  1,                            
  0,                            
  0,                            
  1                             
}
Definition at line 108 of file valprint.c.
 1.7.6.1
 1.7.6.1