GDB (xrefs)
|
Go to the source code of this file.
Classes | |
struct | value_print_options |
struct | generic_val_print_decorations |
struct | format_data |
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 2051 of file valprint.c.
References convert_between_encodings(), do_cleanups(), fputs_filtered(), gdb_WEOF, gdbarch_byte_order(), get_type_arch(), host_charset(), INTERMEDIATE_ENCODING, make_cleanup_obstack_free(), make_cleanup_wchar_iterator(), make_wchar_iterator(), pack_long(), print_wchar(), translit_char, TYPE_LENGTH, wchar_iterate(), and wchar_printable().
Referenced by c_emit_char(), f_emit_char(), and java_emit_char().
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 2380 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(), make_cleanup_obstack_free(), make_cleanup_wchar_iterator(), make_wchar_iterator(), 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 java_printstr().
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 374 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, 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 | ||
) |
Definition at line 146 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 137 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(), print_subexp_standard(), and print_variable_or_computed().
void get_user_print_options | ( | struct value_print_options * | opts | ) |
Definition at line 129 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_target_auxv(), gdbscm_value_print(), gnuv3_print_method_ptr(), gnuv3_print_vtable(), info_common_command_for_block(), 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(), skip_info(), 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 1596 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().
Definition at line 1036 of file printcmd.c.
References annotate_value_begin(), annotate_value_end(), decode_format(), do_cleanups(), evaluate_expression(), format_data::format, free_current_contents(), gdb_flush(), gdb_stdout, get_formatted_print_options(), make_cleanup(), 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().
Definition at line 1160 of file valprint.c.
References BITS_IN_BYTES, fprintf_filtered(), and len.
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 1535 of file valprint.c.
References LA_EMIT_CHAR.
Referenced by print_scalar_formatted().
void print_command_parse_format | ( | const char ** | expp, |
const char * | cmdname, | ||
struct format_data * | fmtp | ||
) |
Definition at line 935 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().
Definition at line 1371 of file valprint.c.
References CARRY_LEFT, CARRY_OUT, dummy, fprintf_filtered(), HIGH_NIBBLE, LOW_NIBBLE, 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 | ||
) |
Definition at line 1571 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(), cp_print_value_fields(), f_val_print(), generic_val_print(), print_one_vtable(), and print_unpacked_pointer().
Definition at line 1502 of file valprint.c.
References fprintf_filtered(), fputs_filtered(), and len.
Referenced by default_print_one_register_info(), print_scalar_formatted(), regcache_dump(), sh64_do_fp_register(), and val_print_type_code_int().
Definition at line 1220 of file valprint.c.
References _, BITS_IN_BYTES, BITS_IN_OCTAL, CARRY_ONE, CARRY_ZERO, error(), fprintf_filtered(), fputs_filtered(), HIGH_ZERO, len, 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 962 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 1814 of file valprint.c.
References discard_cleanups(), extract_unsigned_integer(), free_current_contents(), make_cleanup(), min, partial_memory_read(), QUIT, xmalloc(), and xrealloc().
Referenced by c_get_string(), and val_print_string().
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 | ||
) |
Definition at line 1619 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(), len, 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, TYPE_TARGET_TYPE, UINT_MAX, val_print(), value_contents_eq(), warning(), and wrap_here().
Referenced by ada_val_print_array(), c_val_print(), generic_val_print(), m2_print_array_contents(), m2_val_print(), and pascal_val_print().
void val_print_invalid_address | ( | struct ui_file * | stream | ) |
Definition at line 357 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 345 of file valprint.c.
References _, and fprintf_filtered().
Referenced by fprint_frame(), frame_info(), and val_print_optimized_out().
Definition at line 336 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 * | , |
const gdb_byte * | , | ||
int | , | ||
const struct value * | , | ||
const struct value_print_options * | , | ||
int | , | ||
struct ui_file * | |||
) |
Definition at line 960 of file valprint.c.
References current_language, value_print_options::deref_ref, value_print_options::format, gdb_assert, print_scalar_formatted(), 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_const().
Referenced by ada_val_print_enum(), ada_val_print_num(), c_val_print(), f_val_print(), generic_val_print(), java_val_print(), m2_val_print(), mips_print_register(), pascal_val_print(), and print_formatted().
Definition at line 275 of file valprint.c.
References CHECK_TYPEDEF, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_REF, TYPE_CODE_SET, TYPE_CODE_STRING, TYPE_CODE_STRUCT, TYPE_CODE_UNION, and TYPE_TARGET_TYPE.
Referenced by list_arg_or_local(), val_print(), and value_check_printable().
void val_print_type_code_flags | ( | struct type * | type, |
const gdb_byte * | valaddr, | ||
struct ui_file * | stream | ||
) |
Definition at line 931 of file valprint.c.
References fprintf_filtered(), fputs_filtered(), TYPE_FIELD_BITPOS, TYPE_FIELD_NAME, TYPE_NFIELDS, and unpack_long().
Referenced by generic_val_print().
Definition at line 898 of file valprint.c.
References extract_long_unsigned_integer(), gdbarch_byte_order(), get_type_arch(), print_hex_chars(), print_longest(), TYPE_LENGTH, TYPE_UNSIGNED, and unpack_long().
Referenced by ada_val_print_num(), c_val_print(), f_val_print(), generic_val_print(), and java_val_print().
void val_print_unavailable | ( | struct ui_file * | stream | ) |
Definition at line 351 of file valprint.c.
References _, and fprintf_filtered().
Referenced by cp_print_value(), fprint_frame(), frame_info(), 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 104 of file valprint.c.
Referenced by _initialize_cp_valprint(), _initialize_pascal_valprint(), get_formatted_print_options(), get_no_prettyformat_print_options(), and get_user_print_options().