30 #include "floatformat.h"
44 #define WCHAR_BUFLEN(X) ((X) * sizeof (gdb_wchar_t))
47 #define WCHAR_BUFLEN_MAX WCHAR_BUFLEN (MAX_WCHARS)
82 int len,
int *errptr);
102 #define PRINT_MAX_DEFAULT 200
158 _(
"Limit on string chars or array "
159 "elements to print is %s.\n"),
172 _(
"Default input radix for entering numbers is %s.\n"),
182 _(
"Default output radix for printing of values is %s.\n"),
215 _(
"Printing of char arrays to stop "
216 "at first null char is %s.\n"),
246 _(
"Printing of unions interior to structures is %s.\n"),
264 _(
"Printing of symbols when printing pointers is %s.\n"),
302 const struct value *val)
376 struct ui_file *stream,
int recurse,
377 const struct value *original_value,
384 struct type *elttype, *unresolved_elttype;
385 struct type *unresolved_type =
type;
400 error (
_(
"Could not determine the array high bound"));
410 recurse, original_value, options, 0);
416 addr = address + embedded_offset;
421 original_value, options, 0, stream);
428 original_value, options, 0, stream);
468 struct value *deref_val;
471 if (deref_val != NULL)
480 + embedded_offset)));
494 original_value, options, 0, stream);
498 val =
unpack_long (type, valaddr + embedded_offset);
499 for (i = 0; i <
len; i++)
519 for (i = 0; i <
len; ++i)
534 if (first || val != 0)
551 original_value, options, 0, stream);
562 original_value, options, 0, stream);
582 original_value, &opts, 0, stream);
586 val =
unpack_long (type, valaddr + embedded_offset);
615 original_value, &opts, 0, stream);
629 original_value, &opts, 0, stream);
633 val =
unpack_long (type, valaddr + embedded_offset);
647 original_value, options, 0, stream);
658 original_value, options, 0, stream);
684 valaddr, embedded_offset,
685 original_value, options, 0, stream);
710 error (
_(
"Unhandled type code %d in symbol table."),
739 const struct value *val,
770 address, stream, recurse,
771 val, options, language);
786 language->
la_val_print (type, valaddr, embedded_offset, address,
787 stream, recurse, val,
863 val, options, language);
938 for (bitpos = 0; bitpos < nfields; bitpos++)
961 const gdb_byte *valaddr,
int embedded_offset,
962 const struct value *val,
973 if (options->
format ==
's')
978 val_print (type, valaddr, embedded_offset, 0, stream, 0, val, &opts,
993 options, size, stream);
1024 val =
int_string (val_long, 10, 1, 0, 1);
break;
1026 val =
int_string (val_long, 10, 0, 0, 1);
break;
1028 val =
int_string (val_long, 16, 0, 0, use_c_format);
break;
1030 val =
int_string (val_long, 16, 0, 2, 1);
break;
1032 val =
int_string (val_long, 16, 0, 4, 1);
break;
1034 val =
int_string (val_long, 16, 0, 8, 1);
break;
1036 val =
int_string (val_long, 16, 0, 16, 1);
break;
1039 val =
int_string (val_long, 8, 0, 0, use_c_format);
break;
1042 _(
"failed internal consistency check"));
1057 int rtnval = (
int) arg;
1064 error (
_(
"Value out of range."));
1079 const struct floatformat *fmt = NULL;
1132 if (len <
sizeof (
double))
1134 else if (len ==
sizeof (
double))
1137 #ifdef PRINTF_HAS_LONG_DOUBLE
1161 unsigned len,
enum bfd_endian byte_order)
1164 #define BITS_IN_BYTES 8
1173 const int mask = 0x080;
1177 if (byte_order == BFD_ENDIAN_BIG)
1188 if (*p & (mask >> i))
1199 for (p = valaddr + len - 1;
1205 if (*p & (mask >> i))
1221 unsigned len,
enum bfd_endian byte_order)
1224 unsigned char octa1, octa2, octa3, carry;
1245 #define BITS_IN_OCTAL 3
1246 #define HIGH_ZERO 0340
1247 #define LOW_ZERO 0016
1248 #define CARRY_ZERO 0003
1249 #define HIGH_ONE 0200
1250 #define MID_ONE 0160
1251 #define LOW_ONE 0016
1252 #define CARRY_ONE 0001
1253 #define HIGH_TWO 0300
1254 #define MID_TWO 0070
1255 #define LOW_TWO 0007
1264 if (byte_order == BFD_ENDIAN_BIG)
1285 octa1 = (carry << 1) | ((HIGH_ONE & *p) >> 7);
1297 octa1 = (carry << 2) | ((HIGH_TWO & *p) >> 6);
1307 error (
_(
"Internal error in octal conversion;"));
1316 for (p = valaddr + len - 1;
1335 octa1 = (carry << 1) | ((HIGH_ONE & *p) >> 7);
1347 octa1 = (carry << 2) | ((HIGH_TWO & *p) >> 6);
1357 error (
_(
"Internal error in octal conversion;"));
1372 unsigned len,
enum bfd_endian byte_order)
1375 #define CARRY_OUT( x ) ((x) / TEN)
1376 #define CARRY_LEFT( x ) ((x) % TEN)
1377 #define SHIFT( x ) ((x) << 4)
1378 #define LOW_NIBBLE( x ) ( (x) & 0x00F)
1379 #define HIGH_NIBBLE( x ) (((x) & 0x0F0) >> 4)
1382 unsigned char *digits;
1385 int i, j, decimal_digits;
1392 decimal_len = len * 2 * 2;
1393 digits =
xmalloc (decimal_len);
1395 for (i = 0; i < decimal_len; i++)
1414 p = (byte_order == BFD_ENDIAN_BIG) ? valaddr : valaddr + len - 1;
1416 while ((byte_order == BFD_ENDIAN_BIG) ? (p < valaddr + len) : (p >= valaddr))
1423 for (j = 0; j < decimal_digits; j++)
1425 digits[j] =
SHIFT (digits[j]);
1446 if (byte_order == BFD_ENDIAN_BIG)
1462 for (j = 0; j < decimal_len - 1; j++)
1474 if (j >= decimal_digits && carry == 0)
1483 decimal_digits = j + 1;
1492 for (i = decimal_digits - 1; i >= 0; i--)
1503 unsigned len,
enum bfd_endian byte_order)
1510 if (byte_order == BFD_ENDIAN_BIG)
1521 for (p = valaddr + len - 1;
1537 unsigned len,
enum bfd_endian byte_order)
1541 if (byte_order == BFD_ENDIAN_BIG)
1544 while (p < valaddr + len - 1 && *p == 0)
1547 while (p < valaddr + len)
1555 p = valaddr + len - 1;
1556 while (p > valaddr && *p == 0)
1559 while (p >= valaddr)
1600 struct value *index_value;
1623 const struct value *val,
1627 unsigned int things_printed = 0;
1629 struct type *elttype, *index_type, *base_index_type;
1636 LONGEST low_bound, high_bound;
1648 base_index_type = index_type;
1658 warning (
_(
"unable to get positions in array, use bounds instead"));
1659 low_pos = low_bound;
1660 high_pos = high_bound;
1668 if (low_pos > high_pos)
1671 len = high_pos - low_pos + 1;
1675 warning (
_(
"unable to get bounds of array, assuming null array"));
1682 for (; i < len && things_printed < options->
print_max; i++)
1708 embedded_offset + i * eltlen,
1721 val_print (elttype, valaddr, embedded_offset + i * eltlen,
1722 address, stream, recurse + 1, val, options,
1733 val_print (elttype, valaddr, embedded_offset + i * eltlen,
1757 int len,
int *errptr)
1772 for (errcode = 0, nread = 0; len > 0 && errcode == 0; nread++, len--)
1818 unsigned int nfetch;
1821 struct cleanup *old_chain = NULL;
1834 unsigned int fetchlen =
min (len, fetchlimit);
1841 addr += nfetch * width;
1842 bufptr += nfetch * width;
1846 unsigned long bufsize = 0;
1847 unsigned int chunksize;
1858 chunksize =
min (8, fetchlimit);
1863 nfetch =
min (chunksize, fetchlimit - bufsize);
1865 if (*buffer == NULL)
1869 (nfetch + bufsize) * width);
1871 bufptr = *buffer + bufsize * width;
1884 limit = bufptr + nfetch * width;
1885 while (bufptr < limit)
1903 && bufptr - *buffer < fetchlimit * width
1909 *buffer = bufptr =
xmalloc (1);
1915 *bytes_read = bufptr - *buffer;
1931 || w ==
LCST (
'\a') || w ==
LCST (
'\b')
1932 || w ==
LCST (
'\f') || w ==
LCST (
'\n')
1933 || w ==
LCST (
'\r') || w ==
LCST (
'\t')
1934 || w ==
LCST (
'\v'));
1942 struct obstack *output)
1962 int orig_len,
int width,
1963 enum bfd_endian byte_order,
1964 struct obstack *output,
1965 int quoter,
int *need_escapep)
1967 int need_escape = *need_escapep;
2001 && w !=
LCST (
'9'))))
2007 obstack_grow (output, &wchar,
sizeof (
gdb_wchar_t));
2013 for (i = 0; i + width <= orig_len; i += width)
2023 xsnprintf (octal,
sizeof (octal),
"\\%.3o",
2024 (
int) (value & 0777));
2026 xsnprintf (octal,
sizeof (octal),
"\\x%lx", (
long) value);
2030 while (i < orig_len)
2034 xsnprintf (octal,
sizeof (octal),
"\\%.3o", orig[i] & 0xff);
2054 enum bfd_endian byte_order
2056 struct obstack wchar_buf, output;
2060 int need_escape = 0;
2070 obstack_init (&wchar_buf);
2079 int print_escape = 1;
2082 num_chars =
wchar_iterate (iter, &result, &chars, &buf, &buflen);
2095 for (i = 0; i < num_chars; ++i)
2104 for (i = 0; i < num_chars; ++i)
2107 &wchar_buf, quoter, &need_escape);
2114 byte_order, &wchar_buf, quoter, &need_escape);
2118 obstack_init (&output);
2122 (
gdb_byte *) obstack_base (&wchar_buf),
2123 obstack_object_size (&wchar_buf),
2125 obstack_1grow (&output,
'\0');
2200 && memcmp (current->
buf, d.
buf, current->
buflen) == 0))
2224 int quote_char,
int width,
2225 enum bfd_endian byte_order,
2230 enum {START, SINGLE, REPEAT, INCOMPLETE, FINISH} state, last;
2232 int need_escape = 0;
2236 last = state = START;
2260 obstack_grow (obstack, &wide_quote_char,
sizeof (
gdb_wchar_t));
2267 byte_order, obstack, quote_char, &need_escape);
2270 byte_order, obstack, quote_char, &need_escape);
2287 obstack_grow (obstack, &wide_quote_char,
sizeof (
gdb_wchar_t));
2296 byte_order, obstack, quote_char, &need_escape);
2299 byte_order, obstack, quote_char, &need_escape);
2302 for (j = 0; s[j]; ++j)
2317 obstack_grow (obstack, &wide_quote_char,
sizeof (
gdb_wchar_t));
2325 obstack, 0, &need_escape);
2337 obstack_grow (obstack, &wide_quote_char,
sizeof (
gdb_wchar_t));
2344 if (state != FINISH)
2381 const gdb_byte *
string,
unsigned int length,
2382 const char *
encoding,
int force_ellipses,
2383 int quote_char,
int c_style_terminator,
2389 struct obstack wchar_buf, output;
2398 unsigned long current_char = 1;
2400 for (i = 0; current_char; ++i)
2412 if (c_style_terminator
2416 width, byte_order) == 0))
2428 converted_chars = NULL;
2434 while (i < options->print_max)
2462 obstack_init (&wchar_buf);
2467 width, byte_order, options);
2469 if (force_ellipses || !finished)
2473 obstack_init (&output);
2477 (
gdb_byte *) obstack_base (&wchar_buf),
2478 obstack_object_size (&wchar_buf),
2480 obstack_1grow (&output,
'\0');
2501 int force_ellipsis = 0;
2504 unsigned int fetchlimit;
2507 struct cleanup *old_chain = NULL;
2520 fetchlimit = (len == -1 ? options->
print_max :
min (len,
2523 errcode =
read_string (addr, len, width, fetchlimit, byte_order,
2524 &buffer, &bytes_read);
2535 if (bytes_read >= width)
2538 if (len == -1 && !found_nul)
2546 peekbuf = (
gdb_byte *) alloca (width);
2552 else if ((len >= 0 && errcode != 0) || (len > bytes_read / width))
2563 if (errcode == 0 || bytes_read > 0)
2566 encoding, force_ellipsis, options);
2584 return (bytes_read / width);
2592 static unsigned input_radix_1 = 10;
2617 error (
_(
"Nonsense input radix ``decimal %u''; input radix unchanged."),
2620 input_radix_1 = input_radix = radix;
2624 "decimal %u, hex %x, octal %o.\n"),
2625 radix, radix, radix);
2633 static unsigned output_radix_1 = 10;
2659 error (
_(
"Unsupported output radix ``decimal %u''; "
2660 "output radix unchanged."),
2663 output_radix_1 = output_radix = radix;
2667 "decimal %u, hex %x, octal %o.\n"),
2668 radix, radix, radix);
2691 "decimal %u, hex %x, octal %o.\n"),
2692 radix, radix, radix);
2703 if (input_radix == output_radix)
2706 "decimal %u, hex %x, octal %o.\n"),
2707 input_radix, input_radix, input_radix);
2712 "%u, hex %x, octal %o.\n"),
2713 input_radix, input_radix, input_radix);
2715 "%u, hex %x, octal %o.\n"),
2716 output_radix, output_radix, output_radix);
2726 "\"set print\" must be followed by the name of a print subcommand.\n");
2740 "\"set print raw\" must be followed by the name of a \"print raw\" subcommand.\n");
2755 _(
"Generic command for setting how things print."),
2762 _(
"Generic command for showing print settings."),
2769 Generic command for setting what things to print in \"raw\" mode."),
2772 _(
"Generic command for showing \"print raw\" settings."),
2777 Set limit on string chars or array elements to print."),
_(
"\
2778 Show limit on string chars or array elements to print."),
_(
"\
2779 \"set print elements unlimited\" causes there to be no limit."),
2786 Set printing of char arrays to stop at first null char."),
_(
"\
2787 Show printing of char arrays to stop at first null char."), NULL,
2794 Set threshold for repeated print elements."),
_(
"\
2795 Show threshold for repeated print elements."),
_(
"\
2796 \"set print repeats unlimited\" causes all elements to be individually printed."),
2803 Set pretty formatting of structures."),
_(
"\
2804 Show pretty formatting of structures."), NULL,
2811 Set printing of unions interior to structures."),
_(
"\
2812 Show printing of unions interior to structures."), NULL,
2819 Set pretty formatting of arrays."),
_(
"\
2820 Show pretty formatting of arrays."), NULL,
2827 Set printing of addresses."),
_(
"\
2828 Show printing of addresses."), NULL,
2835 Set printing of symbol names when printing pointers."),
_(
"\
2836 Show printing of symbol names when printing pointers."),
2843 Set default input radix for entering numbers."),
_(
"\
2844 Show default input radix for entering numbers."), NULL,
2851 Set default output radix for printing of values."),
_(
"\
2852 Show default output radix for printing of values."), NULL,
2865 Set default input and output number radices.\n\
2866 Use 'set input-radix' or 'set output-radix' to independently set each.\n\
2867 Without an argument, sets both radices back to the default value of 10."),
2870 Show the default input and output number radices.\n\
2871 Use 'show input-radix' or 'show output-radix' to independently show each."),
2876 Set printing of array indexes."),
_(
"\
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)
int valprint_check_validity(struct ui_file *stream, struct type *type, int embedded_offset, const struct value *val)
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)
static void show_prettyformat_structs(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
#define TYPE_ERROR_NAME(type)
static void show_unionprint(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
ULONGEST extract_unsigned_integer(const gdb_byte *, int, enum bfd_endian)
struct cmd_list_element * add_prefix_cmd(const char *name, enum command_class theclass, cmd_cfunc_ftype *fun, const char *doc, struct cmd_list_element **prefixlist, const char *prefixname, int allow_unknown, struct cmd_list_element **list)
void print_decimal_floating(const gdb_byte *valaddr, struct type *type, struct ui_file *stream)
#define obstack_grow_wstr(OBSTACK, WSTRING)
unsigned int repeat_count_threshold
CORE_ADDR extract_typed_address(const gdb_byte *buf, struct type *type)
static void show_print_max(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
void value_print(struct value *val, struct ui_file *stream, const struct value_print_options *options)
void add_setshow_zuinteger_cmd(const char *name, enum command_class theclass, unsigned int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
#define TYPE_FIELD_NAME(thistype, n)
enum wchar_iterate_result result
static void show_repeat_count_threshold(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
int value_entirely_optimized_out(struct value *value)
int floatformat_is_negative(const struct floatformat *fmt, const bfd_byte *uval)
char * int_string(LONGEST val, int radix, int is_signed, int width, int use_c_format)
CORE_ADDR unpack_pointer(struct type *type, const gdb_byte *valaddr)
static int count_next_character(struct wchar_iterator *iter, VEC(converted_character_d)**vec)
void warning(const char *fmt,...)
static void set_output_radix_1(int, unsigned)
struct value * value_at(struct type *type, CORE_ADDR addr)
void get_formatted_print_options(struct value_print_options *opts, char format)
struct ui_file * gdb_stdout
void val_print_unavailable(struct ui_file *stream)
void common_val_print(struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options, const struct language_defn *language)
static void show_stop_print_at_null(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
void internal_error(const char *file, int line, const char *fmt,...)
static void set_radix(char *, int)
void val_print_type_code_int(struct type *type, const gdb_byte *valaddr, struct ui_file *stream)
void print_floating(const gdb_byte *valaddr, struct type *type, struct ui_file *stream)
static int print_unpacked_pointer(struct type *type, CORE_ADDR address, CORE_ADDR addr, const struct value_print_options *options, struct ui_file *stream)
#define MAX_DECIMAL_STRING
void type_print(struct type *type, const char *varstring, struct ui_file *stream, int show)
void decimal_to_string(const gdb_byte *decbytes, int len, enum bfd_endian byte_order, char *s)
char * memory_error_message(enum target_xfer_status err, struct gdbarch *gdbarch, CORE_ADDR memaddr)
enum language la_language
static void show_output_radix(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
#define VEC_safe_push(T, V, O)
DOUBLEST unpack_double(struct type *type, const gdb_byte *valaddr, int *invp)
void get_no_prettyformat_print_options(struct value_print_options *opts)
int extract_long_unsigned_integer(const gdb_byte *, int, enum bfd_endian, LONGEST *)
static void set_print(char *, int)
void print_decimal_chars(struct ui_file *stream, const gdb_byte *valaddr, unsigned len, enum bfd_endian byte_order)
void val_print_invalid_address(struct ui_file *stream)
const gdb_byte * value_contents_for_printing(struct value *value)
int value_bits_any_optimized_out(const struct value *value, int bit_offset, int bit_length)
struct value_print_options user_print_options
static void show_prettyformat_arrays(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
#define TYPE_FIELD_ENUMVAL(thistype, n)
enum val_prettyformat prettyformat
struct cleanup * make_cleanup_wchar_iterator(struct wchar_iterator *iter)
void printf_filtered(const char *format,...)
static int wchar_printable(gdb_wchar_t w)
const char * paddress(struct gdbarch *gdbarch, CORE_ADDR addr)
enum lval_type value_lval_const(const struct value *value)
DEF_VEC_O(converted_character_d)
static int partial_memory_read(CORE_ADDR memaddr, gdb_byte *myaddr, int len, int *errptr)
void val_print_optimized_out(const struct value *val, struct ui_file *stream)
int discrete_position(struct type *type, LONGEST val, LONGEST *pos)
struct cmd_list_element * setlist
#define PRINT_MAX_DEFAULT
#define LA_EMIT_CHAR(ch, type, stream, quoter)
void print_char_chars(struct ui_file *stream, struct type *type, const gdb_byte *valaddr, unsigned len, enum bfd_endian byte_order)
struct type * check_typedef(struct type *type)
#define CATCH(EXCEPTION, MASK)
void(* la_val_print)(struct type *type, const gdb_byte *contents, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, const struct value *val, const struct value_print_options *options)
void convert_between_encodings(const char *from, const char *to, const gdb_byte *bytes, unsigned int num_bytes, int width, struct obstack *output, enum transliterations translit)
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)
const char * floatformat_mantissa(const struct floatformat *fmt, const bfd_byte *val)
struct target_ops current_target
int longest_to_int(LONGEST arg)
void fprintf_filtered(struct ui_file *stream, const char *format,...)
void add_setshow_uinteger_cmd(const char *name, enum command_class theclass, unsigned int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
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)
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 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)
CORE_ADDR gdbarch_convert_from_func_ptr_addr(struct gdbarch *gdbarch, CORE_ADDR addr, struct target_ops *targ)
static void show_print_array_indexes(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
void annotate_elt_rep(unsigned int repcount)
struct cmd_list_element * showlist
void fputs_filtered(const char *linebuffer, struct ui_file *stream)
struct cmd_list_element * add_cmd(const char *name, enum command_class theclass, cmd_cfunc_ftype *fun, const char *doc, struct cmd_list_element **list)
void free_current_contents(void *ptr)
enum bfd_endian gdbarch_byte_order(struct gdbarch *gdbarch)
int apply_ext_lang_val_pretty_printer(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)
struct cleanup * make_cleanup(make_cleanup_ftype *function, void *arg)
void annotate_array_section_begin(int idx, struct type *elttype)
#define VEC_index(T, V, I)
struct value * coerce_ref_if_computed(const struct value *arg)
struct gdbarch * get_type_arch(const struct type *type)
void _initialize_valprint(void)
struct value * value_from_longest(struct type *type, LONGEST num)
static void show_input_radix(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
const gdb_byte * value_contents_for_printing_const(const struct value *value)
struct cmd_list_element * add_alias_cmd(const char *name, const char *oldname, enum command_class theclass, int abbrev_flag, struct cmd_list_element **list)
struct cmd_list_element * setprintlist
void print_binary_chars(struct ui_file *stream, const gdb_byte *valaddr, unsigned len, enum bfd_endian byte_order)
char * xstrprintf(const char *format,...)
void wrap_here(char *indent)
static void show_addressprint(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
void printf_unfiltered(const char *format,...)
static void set_output_radix(char *, int, struct cmd_list_element *)
void print_octal_chars(struct ui_file *stream, const gdb_byte *valaddr, unsigned len, enum bfd_endian byte_order)
int val_print_scalar_type_p(struct type *type)
void annotate_elt_rep_end(void)
LONGEST unpack_long(struct type *type, const gdb_byte *valaddr)
void cmd_show_list(struct cmd_list_element *list, int from_tty, const char *prefix)
#define TYPE_FIELD_BITPOS(thistype, n)
void annotate_array_section_end(void)
gdb_wchar_t chars[WCHAR_BUFLEN_MAX]
void print_scalar_formatted(const void *, struct type *, const struct value_print_options *, int, struct ui_file *)
static void show_print_raw(char *args, int from_tty)
static void set_input_radix(char *, int, struct cmd_list_element *)
int value_bits_synthetic_pointer(const struct value *value, int offset, int length)
PTR xrealloc(PTR ptr, size_t size)
struct wchar_iterator * make_wchar_iterator(const gdb_byte *input, size_t bytes, const char *charset, size_t width)
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 print_spaces_filtered(int n, struct ui_file *stream)
const char const char int
void help_list(struct cmd_list_element *list, const char *cmdtype, enum command_class theclass, struct ui_file *stream)
void discard_cleanups(struct cleanup *old_chain)
int value_contents_eq(const struct value *val1, int offset1, const struct value *val2, int offset2, int length)
const struct language_defn * current_language
#define TYPE_TARGET_TYPE(thistype)
void print_longest(struct ui_file *stream, int format, int use_c_format, LONGEST val_long)
static void set_print_raw(char *arg, int from_tty)
char * value_internal_function_name(struct value *val)
int xsnprintf(char *str, size_t size, const char *format,...)
#define TYPE_CODE(thistype)
#define TYPE_INDEX_TYPE(type)
int target_read_memory(CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
void val_print_type_code_flags(struct type *type, const gdb_byte *valaddr, struct ui_file *stream)
const char * complex_prefix
void get_user_print_options(struct value_print_options *opts)
#define TYPE_NFIELDS(thistype)
void generic_emit_char(int c, struct type *type, struct ui_file *stream, int quoter, const char *encoding)
enum float_kind floatformat_classify(const struct floatformat *fmt, const bfd_byte *uval)
int value_bytes_available(const struct value *value, int offset, int length)
int print_address_demangle(const struct value_print_options *opts, struct gdbarch *gdbarch, CORE_ADDR addr, struct ui_file *stream, int do_demangle)
#define CHECK_TYPEDEF(TYPE)
struct cmd_list_element * showprintlist
#define INTERMEDIATE_ENCODING
#define TYPE_FLAG_ENUM(t)
unsigned long long ULONGEST
const char * complex_infix
int value_embedded_offset(struct value *value)
#define LA_PRINT_ARRAY_INDEX(index_value, stream, options)
struct type * value_type(const struct value *value)
static int value_check_printable(struct value *val, struct ui_file *stream, const struct value_print_options *options)
#define LA_VALUE_PRINT(val, stream, options)
#define LA_PRINT_STRING(stream, elttype, string, length, encoding, force_ellipses, options)
const char * host_charset(void)
struct value * ada_to_fixed_value(struct value *val)
#define TYPE_LENGTH(thistype)
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)
#define LA_PRINT_CHAR(ch, type, stream)
static void set_input_radix_1(int, unsigned)
void print_function_pointer_address(const struct value_print_options *options, struct gdbarch *gdbarch, CORE_ADDR address, struct ui_file *stream)
void gdb_flush(struct ui_file *file)
static void show_print(char *, int)
struct cleanup * make_cleanup_obstack_free(struct obstack *obstack)
static void show_radix(char *, int)
CORE_ADDR value_address(const struct value *value)
const char * complex_suffix
void pack_long(gdb_byte *buf, struct type *type, LONGEST num)
int get_array_bounds(struct type *type, LONGEST *low_bound, LONGEST *high_bound)
enum bfd_endian byte_order
int wchar_iterate(struct wchar_iterator *iter, enum wchar_iterate_result *out_result, gdb_wchar_t **out_chars, const gdb_byte **ptr, size_t *len)
static void append_string_as_wide(const char *string, struct obstack *output)
struct cmd_list_element * setprintrawlist
int value_entirely_unavailable(struct value *value)
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 error(const char *fmt,...)
void maybe_print_array_index(struct type *index_type, LONGEST index, struct ui_file *stream, const struct value_print_options *options)
struct cmd_list_element * showprintrawlist
static void show_symbol_print(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
void val_print_not_saved(struct ui_file *stream)
void do_cleanups(struct cleanup *old_chain)
void add_setshow_boolean_cmd(const char *name, enum command_class theclass, int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
void print_hex_chars(struct ui_file *stream, const gdb_byte *valaddr, unsigned len, enum bfd_endian byte_order)
const ULONGEST const LONGEST len
const struct floatformat * floatformat_from_type(const struct type *type)
LONGEST parse_and_eval_long(const char *exp)