|
GDB (xrefs)
|
Go to the source code of this file.
Classes | |
| struct | value_print_options |
| struct | generic_val_print_decorations |
| struct | format_data |
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 *, LONGEST, CORE_ADDR, struct ui_file *, int, struct value *, const struct value_print_options *, unsigned int) |
| void | val_print_scalar_formatted (struct type *, LONGEST, 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, bool) |
| 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_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_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_val_print (struct type *type, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, 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) |
| void | print_command_parse_format (const char **expp, const char *cmdname, struct format_data *fmtp) |
| void | print_value (struct value *val, const struct format_data *fmtp) |
Variables | |
| struct value_print_options | user_print_options |
| void generic_emit_char | ( | int | c, |
| struct type * | type, | ||
| struct ui_file * | stream, | ||
| int | quoter, | ||
| const char * | encoding | ||
| ) |
Definition at line 2364 of file valprint.c.
References convert_between_encodings(), fputs_filtered(), gdb_WEOF, gdbarch_byte_order(), get_type_arch(), host_charset(), INTERMEDIATE_ENCODING, wchar_iterator::iterate(), pack_long(), print_wchar(), translit_char, TYPE_LENGTH, and wchar_printable().
Referenced by c_emit_char(), f_emit_char(), and rust_emitchar().
| 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 2683 of file valprint.c.
References convert_between_encodings(), count_next_character(), do_cleanups(), extract_unsigned_integer(), fputs_filtered(), gdbarch_byte_order(), get_type_arch(), host_charset(), INTERMEDIATE_ENCODING, LCST, make_cleanup(), obstack_grow_wstr, print_converted_chars_to_obstack(), QUIT, converted_character::result, translit_char, TYPE_LENGTH, VEC, VEC_cleanup, VEC_last, and wchar_iterate_eof.
Referenced by c_printstr(), f_printstr(), and rust_printstr().
| void generic_val_print | ( | struct type * | type, |
| int | embedded_offset, | ||
| CORE_ADDR | address, | ||
| struct ui_file * | stream, | ||
| int | recurse, | ||
| struct value * | original_value, | ||
| const struct value_print_options * | options, | ||
| const struct generic_val_print_decorations * | |||
| ) |
Definition at line 884 of file valprint.c.
References _, check_typedef(), error(), fprintf_filtered(), fputs_filtered(), gdb_flush(), generic_val_print_array(), generic_val_print_bool(), generic_val_print_char(), generic_val_print_complex(), generic_val_print_enum(), generic_val_print_flags(), generic_val_print_float(), generic_val_print_func(), generic_val_print_int(), generic_val_print_memberptr(), generic_val_print_ptr(), generic_val_print_ref(), 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_RVALUE_REF, TYPE_CODE_STRUCT, TYPE_CODE_UNDEF, TYPE_CODE_UNION, TYPE_CODE_VOID, TYPE_ERROR_NAME, and generic_val_print_decorations::void_name.
Referenced by c_val_print(), c_val_print_memberptr(), f_val_print(), m2_val_print(), pascal_val_print(), and rust_val_print().
| void get_formatted_print_options | ( | struct value_print_options * | opts, |
| char | format | ||
| ) |
Definition at line 137 of file valprint.c.
References value_print_options::format, and user_print_options.
Referenced by default_print_one_register_info(), do_examine(), do_one_display(), dwarf2_compute_name(), mi_cmd_data_read_memory(), mips_print_fp_register(), mips_print_register(), output_command_const(), output_register(), print_value(), sh64_do_register(), and varobj_formatted_print_options().
| void get_no_prettyformat_print_options | ( | struct value_print_options * | ) |
Definition at line 128 of file valprint.c.
References value_print_options::prettyformat, user_print_options, and Val_no_prettyformat.
Referenced by list_arg_or_local(), mt_registers_info(), print_frame_arg(), print_return_value_1(), print_subexp_standard(), print_variable_or_computed(), and rust_get_disr_info().
| void get_user_print_options | ( | struct value_print_options * | opts | ) |
Definition at line 120 of file valprint.c.
References user_print_options.
Referenced by breakpoint_1(), cplus_describe_child(), cplus_number_of_children(), decode_agent_options(), default_print_one_register_info(), enumerate_args(), enumerate_locals(), evaluate_subexp_standard(), fprint_auxv_entry(), gdbscm_value_print(), gnuv3_print_method_ptr(), gnuv3_print_vtable(), info_common_command_for_block(), info_skip_command(), mi_cmd_data_evaluate_expression(), print_frame(), print_frame_info(), print_one_breakpoint_location(), print_one_catch_exec(), print_one_catch_fork(), print_one_catch_solib(), print_one_catch_syscall(), print_one_catch_vfork(), print_one_exception(), print_one_exception_catchpoint(), print_one_ranged_breakpoint(), print_subexp_standard(), print_variable_and_value(), py_print_frame(), say_where(), show_convenience(), show_values(), signal_catchpoint_print_one(), unwind_infopy_str(), update_type_if_necessary(), valpy_str(), value_actual_type(), vlscm_print_value_smob(), watchpoint_value_print(), and whatis_exp().
| void maybe_print_array_index | ( | struct type * | index_type, |
| LONGEST | index, | ||
| struct ui_file * | stream, | ||
| const struct value_print_options * | |||
| ) |
Definition at line 1909 of file valprint.c.
References LA_PRINT_ARRAY_INDEX, value_print_options::print_array_indexes, and value_from_longest().
Referenced by val_print_array_elements(), and val_print_packed_array_elements().
| void output_command_const | ( | const char * | args, |
| int | from_tty | ||
| ) |
Definition at line 1240 of file printcmd.c.
References annotate_value_begin(), annotate_value_end(), decode_format(), evaluate_expression(), value_print_options::format, format_data::format, gdb_flush(), gdb_stdout, get_formatted_print_options(), parse_expression(), print_formatted(), value_print_options::raw, format_data::raw, format_data::size, validate_format(), value_type(), and wrap_here().
Referenced by output_command(), and trace_dump_actions().
| void print_binary_chars | ( | struct ui_file * | , |
| const gdb_byte * | , | ||
| unsigned | int, | ||
| enum | bfd_endian, | ||
| bool | |||
| ) |
Definition at line 1369 of file valprint.c.
References fputc_filtered(), and HOST_CHAR_BIT.
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 1848 of file valprint.c.
References LA_EMIT_CHAR.
| void print_command_parse_format | ( | const char ** | expp, |
| const char * | cmdname, | ||
| struct format_data * | fmtp | ||
| ) |
Definition at line 1144 of file printcmd.c.
References format_data::count, decode_format(), format_data::format, last_format, format_data::raw, format_data::size, and validate_format().
Referenced by compile_print_command(), and print_command_1().
| void print_decimal_chars | ( | struct ui_file * | , |
| const gdb_byte * | , | ||
| unsigned | int, | ||
| bool | , | ||
| enum | bfd_endian | ||
| ) |
Definition at line 1648 of file valprint.c.
References CARRY_LEFT, CARRY_OUT, dummy, fprintf_filtered(), fputs_filtered(), HIGH_NIBBLE, LOW_NIBBLE, maybe_negate_by_bytes(), and SHIFT.
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 | ||
| ) |
Definition at line 1884 of file valprint.c.
References value_print_options::addressprint, current_target, demangle, fputs_filtered(), gdbarch_convert_from_func_ptr_addr(), paddress(), and print_address_demangle().
Referenced by c_val_print_ptr(), c_val_print_struct(), cp_print_value_fields(), f_val_print(), print_one_vtable(), and print_unpacked_pointer().
Definition at line 1784 of file valprint.c.
References fprintf_filtered(), and fputs_filtered().
Referenced by default_print_one_register_info(), regcache::dump(), print_scalar_formatted(), and sh64_do_fp_register().
Definition at line 1448 of file valprint.c.
References _, BITS_IN_OCTAL, CARRY_ONE, CARRY_ZERO, emit_octal_digit(), error(), fputs_filtered(), HIGH_ONE, HIGH_TWO, HIGH_ZERO, HOST_CHAR_BIT, LOW_ONE, LOW_TWO, LOW_ZERO, MID_ONE, and MID_TWO.
Referenced by print_scalar_formatted().
| void print_value | ( | struct value * | val, |
| const struct format_data * | fmtp | ||
| ) |
Definition at line 1171 of file printcmd.c.
References annotate_value_history_begin(), annotate_value_history_end(), annotate_value_history_value(), format_data::format, gdb_stdout, get_formatted_print_options(), print_formatted(), printf_filtered(), value_print_options::raw, format_data::raw, record_latest_value(), format_data::size, and value_type().
Referenced by compile_print_value(), install_new_value(), mi_cmd_stack_list_locals(), mi_cmd_stack_list_variables(), and print_command_1().
| 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 2127 of file valprint.c.
References discard_cleanups(), extract_unsigned_integer(), free_current_contents(), make_cleanup(), partial_memory_read(), QUIT, xmalloc(), and xrealloc().
Referenced by c_get_string(), and val_print_string().
| void val_print_array_elements | ( | struct type * | , |
| LONGEST | , | ||
| CORE_ADDR | , | ||
| struct ui_file * | , | ||
| int | , | ||
| struct value * | , | ||
| const struct value_print_options * | , | ||
| unsigned | int | ||
| ) |
Definition at line 1932 of file valprint.c.
References _, annotate_array_section_begin(), annotate_array_section_end(), annotate_elt(), annotate_elt_rep(), annotate_elt_rep_end(), check_typedef(), current_language, discrete_position(), fprintf_filtered(), get_array_bounds(), maybe_print_array_index(), n_spaces(), value_print_options::prettyformat_arrays, value_print_options::print_max, print_spaces_filtered(), value_print_options::repeat_count_threshold, TYPE_CODE, TYPE_CODE_RANGE, TYPE_INDEX_TYPE, type_length_units(), TYPE_TARGET_TYPE, UINT_MAX, val_print(), value_contents_eq(), warning(), and wrap_here().
Referenced by ada_val_print_array(), c_val_print_array(), generic_val_print_array(), m2_print_array_contents(), m2_val_print(), and pascal_val_print().
| void val_print_invalid_address | ( | struct ui_file * | stream | ) |
Definition at line 374 of file valprint.c.
References _, and fprintf_filtered().
Referenced by cp_print_value(), and pascal_object_print_value().
| void val_print_not_saved | ( | struct ui_file * | stream | ) |
Definition at line 362 of file valprint.c.
References _, and fprintf_filtered().
Referenced by fprint_frame(), info_frame_command(), and val_print_optimized_out().
Definition at line 353 of file valprint.c.
References _, fprintf_filtered(), lval_register, val_print_not_saved(), and value_lval_const().
Referenced by cp_print_static_field(), frame_unwind_register_value(), pascal_object_print_static_field(), pascal_object_print_value_fields(), val_print_scalar_formatted(), valprint_check_validity(), value_check_printable(), and value_fetch_lazy().
| void val_print_scalar_formatted | ( | struct type * | , |
| LONGEST | , | ||
| struct value * | , | ||
| const struct value_print_options * | , | ||
| int | , | ||
| struct ui_file * | |||
| ) |
Definition at line 1240 of file valprint.c.
References current_language, value_print_options::deref_ref, value_print_options::format, gdb_assert, gdbarch_addressable_memory_unit_size(), get_type_arch(), print_scalar_formatted(), size, TARGET_CHAR_BIT, TYPE_LENGTH, val_print(), val_print_optimized_out(), val_print_unavailable(), value_bits_any_optimized_out(), value_bytes_available(), and value_contents_for_printing().
Referenced by ada_val_print_enum(), ada_val_print_num(), c_val_print_int(), c_val_print_ptr(), f_val_print(), generic_val_print_bool(), generic_val_print_char(), generic_val_print_complex(), generic_val_print_enum(), generic_val_print_flags(), generic_val_print_float(), generic_val_print_func(), generic_val_print_int(), generic_val_print_memberptr(), generic_val_print_ptr(), m2_val_print(), mips_print_register(), pascal_val_print(), and print_formatted().
| int val_print_scalar_type_p | ( | struct type * | type | ) |
Definition at line 266 of file valprint.c.
References check_typedef(), TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_SET, TYPE_CODE_STRING, TYPE_CODE_STRUCT, TYPE_CODE_UNION, TYPE_IS_REFERENCE, and TYPE_TARGET_TYPE.
Referenced by list_arg_or_local(), val_print(), and value_check_printable().
| void val_print_unavailable | ( | struct ui_file * | stream | ) |
Definition at line 368 of file valprint.c.
References _, and fprintf_filtered().
Referenced by cp_print_value(), fprint_frame(), info_frame_command(), pascal_object_print_value(), val_print_scalar_formatted(), valprint_check_validity(), and value_check_printable().
| struct value_print_options user_print_options |
Definition at line 95 of file valprint.c.
Referenced by _initialize_cp_valprint(), _initialize_pascal_valprint(), _initialize_valprint(), get_formatted_print_options(), get_no_prettyformat_print_options(), get_user_print_options(), and set_output_radix_1().
1.8.14