GDB (xrefs)
|
#include "cli/cli-option.h"
Go to the source code of this file.
Classes | |
struct | value_print_options |
struct | generic_val_print_decorations |
struct | format_data |
Macros | |
#define | PRINT_MAX_CHARS_ELEMENTS 0 |
#define | PRINT_MAX_CHARS_UNLIMITED UINT_MAX |
Enumerations | |
enum | val_prettyformat { Val_no_prettyformat = 0 , Val_prettyformat , Val_prettyformat_default } |
Functions | |
static unsigned int | get_print_max_chars (const struct value_print_options *options) |
gdb::option::option_def_group | make_value_print_options_def_group (value_print_options *opts) |
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 | value_print_array_elements (struct value *, struct ui_file *, int, const struct value_print_options *, unsigned int) |
void | value_print_scalar_formatted (struct value *val, const struct value_print_options *options, int size, struct ui_file *stream) |
void | print_binary_chars (struct ui_file *, const gdb_byte *, unsigned int, enum bfd_endian, bool, const struct value_print_options *options) |
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_function_pointer_address (const struct value_print_options *options, struct gdbarch *gdbarch, CORE_ADDR address, struct ui_file *stream) |
int | valprint_check_validity (struct ui_file *stream, struct type *type, LONGEST embedded_offset, const struct value *val) |
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_value_print (struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options, const struct generic_val_print_decorations *d) |
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 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, value_print_options *opts) |
void | print_value (value *val, const value_print_options &opts) |
void | print_command_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word) |
int | build_address_symbolic (struct gdbarch *, CORE_ADDR addr, bool do_demangle, bool prefer_sym_over_minsym, std::string *name, int *offset, std::string *filename, int *line, int *unmapped) |
bool | val_print_check_max_depth (struct ui_file *stream, int recurse, const struct value_print_options *opts, const struct language_defn *language) |
void | common_val_print_checked (struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options, const struct language_defn *language) |
Variables | |
struct value_print_options | user_print_options |
#define PRINT_MAX_CHARS_ELEMENTS 0 |
Definition at line 123 of file valprint.h.
Referenced by get_print_max_chars(), and show_print_max().
#define PRINT_MAX_CHARS_UNLIMITED UINT_MAX |
Definition at line 126 of file valprint.h.
enum val_prettyformat |
Enumerator | |
---|---|
Val_no_prettyformat | |
Val_prettyformat | |
Val_prettyformat_default | Use the default setting which the user has specified. |
Definition at line 28 of file valprint.h.
|
extern |
Definition at line 596 of file printcmd.c.
References obj_section::addr(), asm_demangle, block::entry_pc(), find_pc_overlay(), find_pc_sect_function(), find_pc_sect_line(), gdbarch_addr_bits_remove(), minimal_symbol::has_size(), symtab_and_line::line, general_symbol_info::linkage_name(), lookup_minimal_symbol_by_pc_section(), max_symbolic_offset, bound_minimal_symbol::minsym, mst_file_text, mst_solib_trampoline, mst_text, mst_text_gnu_ifunc, name, obj_section::offset(), overlay_debugging, overlay_mapped_address(), pc_in_unmapped_range(), general_symbol_info::print_name(), print_symbol_filename, symtab_and_line::section, minimal_symbol::size(), symbol::symbol(), symtab_and_line::symtab, symtab_to_filename_for_display(), minimal_symbol::type(), bound_minimal_symbol::value_address(), and symbol::value_block().
Referenced by gdb_pretty_print_disassembler::pretty_print_insn(), and print_address_symbolic().
|
extern |
Definition at line 1177 of file valprint.c.
References common_val_print(), and value_check_printable().
Referenced by print_frame_arg(), and print_variable_and_value().
|
extern |
Definition at line 2205 of file valprint.c.
References convert_between_encodings(), gdb_puts(), gdb_WEOF, host_charset(), INTERMEDIATE_ENCODING, wchar_iterator::iterate(), type::length(), pack_long(), print_wchar(), translit_char, type_byte_order(), and wchar_printable().
Referenced by language_defn::emitchar(), f_language::emitchar(), and rust_language::emitchar().
|
extern |
Definition at line 2536 of file valprint.c.
References convert_between_encodings(), count_next_character(), extract_unsigned_integer(), gdb_printf(), gdb_puts(), get_print_max_chars(), host_charset(), INTERMEDIATE_ENCODING, LCST, type::length(), print_converted_chars_to_obstack(), QUIT, converted_character::result, translit_char, type_byte_order(), and wchar_iterate_eof.
Referenced by language_defn::printstr(), f_language::printstr(), and rust_language::printstr().
|
extern |
Definition at line 907 of file valprint.c.
References value::address, check_typedef(), type::code(), value::contents_for_printing(), cplus_print_method_ptr(), type::fixed_point_type_base_type(), value_print_options::format, fprintf_styled(), gdb_printf(), gdb_puts(), generic_val_print_array(), generic_val_print_enum(), generic_val_print_fixed_point(), generic_val_print_float(), generic_val_print_func(), generic_val_print_ref(), generic_value_print_bool(), generic_value_print_char(), generic_value_print_complex(), generic_value_print_int(), generic_value_print_memberptr(), generic_value_print_ptr(), is_fixed_point_type(), metadata_style, cli_style_option::style(), type::target_type(), value::type(), TYPE_CODE_UNDEF, TYPE_ERROR_NAME, val_print_type_code_flags(), value_cast(), value_print_scalar_formatted(), and generic_val_print_decorations::void_name.
Referenced by c_value_print_inner(), rust_val_print_slice(), f_language::value_print_inner(), m2_language::value_print_inner(), pascal_language::value_print_inner(), and rust_language::value_print_inner().
|
extern |
Definition at line 152 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(), output_register(), riscv_print_one_register_info(), and varobj_formatted_print_options().
|
extern |
Definition at line 143 of file valprint.c.
References user_print_options, and Val_no_prettyformat.
Referenced by list_arg_or_local(), print_frame_arg(), print_variable_or_computed(), and shell_internal_fn().
|
inlinestatic |
Definition at line 131 of file valprint.h.
References value_print_options::print_max, value_print_options::print_max_chars, and PRINT_MAX_CHARS_ELEMENTS.
Referenced by ada_val_print_string(), c_value_print_array(), decode_agent_options(), find_string_backward(), generic_printstr(), m2_language::printstr(), pascal_language::printstr(), printstr(), val_print_string(), m2_language::value_print_inner(), and pascal_language::value_print_inner().
|
extern |
Definition at line 135 of file valprint.c.
References user_print_options.
Referenced by breakpoint_1(), check_thread_db_callback(), compile_print_command(), cplus_describe_child(), cplus_number_of_children(), decode_agent_options(), default_print_one_register_info(), enumerate_args(), enumerate_locals(), eval_op_structop_ptr(), fprint_auxv_entry(), gdbpy_get_print_options(), gdbscm_value_print(), gnuv3_print_method_ptr(), gnuv3_print_vtable(), info_common_command_for_block(), info_skip_command(), maintenance_print_record_instruction(), mi_cmd_data_evaluate_expression(), print_frame_info(), ada_catchpoint::print_one(), exec_catchpoint::print_one(), fork_catchpoint::print_one(), solib_catchpoint::print_one(), signal_catchpoint::print_one(), syscall_catchpoint::print_one(), exception_catchpoint::print_one(), ranged_breakpoint::print_one(), print_one_breakpoint_location(), print_return_value_1(), print_variable_and_value(), process_print_command_args(), py_print_frame(), riscv_print_one_register_info(), code_breakpoint::say_where(), show_convenience(), show_values(), stpy_str(), ui_printf(), unwind_infopy_str(), update_type_if_necessary(), value_actual_type(), vlscm_print_value_smob(), watchpoint_value_print(), and whatis_exp().
|
extern |
Definition at line 3093 of file valprint.c.
References value_print_option_defs.
Referenced by compile_print_command(), print_command_completer(), process_print_command_args(), and ui_printf().
|
extern |
Definition at line 1928 of file valprint.c.
References current_language, language_defn::print_array_index(), and value_print_options::print_array_indexes.
Referenced by fortran_array_printer_impl::process_dimension(), fortran_array_printer_impl::process_element(), val_print_packed_array_elements(), and value_print_array_elements().
|
extern |
Definition at line 1481 of file printcmd.c.
References annotate_value_begin(), annotate_value_end(), decode_format(), value_print_options::format, format_data::format, gdb_flush(), gdb_stdout, get_formatted_print_options(), parse_expression(), print_formatted(), format_data::raw, format_data::size, value::type(), and validate_format().
Referenced by trace_dump_actions().
|
extern |
|
extern |
Definition at line 1449 of file printcmd.c.
References advance_to_expression_complete_word_point(), gdb::option::complete_options(), expression_completer(), make_value_print_options_def_group(), gdb::option::PROCESS_OPTIONS_REQUIRE_DELIMITER, and skip_over_slash_fmt().
|
extern |
Definition at line 1214 of file printcmd.c.
References decode_format(), format_data::format, last_format, format_data::raw, and validate_format().
Referenced by compile_print_command(), and process_print_command_args().
|
extern |
|
extern |
Definition at line 1904 of file valprint.c.
References value_print_options::addressprint, current_inferior(), demangle, gdb_puts(), gdbarch_convert_from_func_ptr_addr(), paddress(), and print_address_demangle().
Referenced by c_value_print_ptr(), c_value_print_struct(), cp_print_value_fields(), print_one_vtable(), print_unpacked_pointer(), print_unpacked_pointer(), print_unpacked_pointer(), and f_language::value_print_inner().
|
extern |
|
extern |
|
extern |
Definition at line 1245 of file printcmd.c.
References annotate_value_history_begin(), annotate_value_history_end(), annotate_value_history_value(), gdb_printf(), gdb_stdout, print_formatted(), value::record_latest(), and value::type().
Referenced by compile_print_value(), install_new_value(), memory_tag_print_tag_command(), memory_tag_with_logical_tag_command(), mi_cmd_stack_list_locals(), mi_cmd_stack_list_variables(), and print_command_1().
|
extern |
Definition at line 1104 of file valprint.c.
References gdb_puts(), and value_print_options::max_depth.
Referenced by common_val_print(), cp_print_value(), ppscm_print_children(), and print_children().
|
extern |
Definition at line 437 of file valprint.c.
References fprintf_styled(), metadata_style, and cli_style_option::style().
Referenced by cp_print_value(), and pascal_object_print_value().
|
extern |
Definition at line 425 of file valprint.c.
References fprintf_styled(), metadata_style, and cli_style_option::style().
Referenced by frame_unwind_register_value(), info_frame_command_core(), and val_print_optimized_out().
Definition at line 416 of file valprint.c.
References fprintf_styled(), value::lval(), lval_register, metadata_style, cli_style_option::style(), and val_print_not_saved().
Referenced by ada_value_print_array(), cp_print_static_field(), value::fetch_lazy_register(), pascal_object_print_static_field(), pascal_object_print_value_fields(), valprint_check_validity(), value_check_printable(), and value_print_scalar_formatted().
|
extern |
Definition at line 317 of file valprint.c.
References check_typedef(), type::code(), type::target_type(), and TYPE_IS_REFERENCE.
Referenced by common_val_print(), list_arg_or_local(), val_print_scalar_or_string_type_p(), and value_check_printable().
|
extern |
Definition at line 431 of file valprint.c.
References fprintf_styled(), metadata_style, and cli_style_option::style().
Referenced by cp_print_value(), info_frame_command_core(), pascal_object_print_value(), valprint_check_validity(), value_check_printable(), and value_print_scalar_formatted().
|
extern |
Definition at line 353 of file valprint.c.
References value::bits_any_optimized_out(), value::bits_synthetic_pointer(), value::bytes_available(), check_typedef(), type::code(), coerce_ref_if_computed(), value::embedded_offset(), fputs_styled(), type::length(), value::lval(), lval_memory, metadata_style, cli_style_option::style(), type_not_allocated(), type_not_associated(), val_print_not_allocated(), val_print_not_associated(), val_print_optimized_out(), and val_print_unavailable().
Referenced by common_val_print(), and cp_print_value_fields().
|
extern |
Definition at line 1941 of file valprint.c.
References annotate_array_section_begin(), annotate_array_section_end(), annotate_elt(), annotate_elt_rep(), annotate_elt_rep_end(), available, type::bit_stride(), check_typedef(), type::code(), common_val_print(), value::contents_eq(), current_language, value::entirely_available(), value::entirely_unavailable(), value::from_component_bitsize(), gdb_printf(), get_array_bounds(), type::index_type(), type::length(), maybe_print_array_index(), metadata_style, value_print_options::prettyformat_arrays, value_print_options::print_max, print_spaces(), ui_file_style::ptr(), value_print_options::repeat_count_threshold, cli_style_option::style(), type::target_type(), value::type(), and ui_file::wrap_here().
Referenced by ada_value_print_array(), c_value_print_array(), generic_val_print_array(), m2_print_array_contents(), m2_language::value_print_inner(), and pascal_language::value_print_inner().
|
extern |
Definition at line 1278 of file valprint.c.
References value::bits_any_optimized_out(), value::bytes_available(), check_typedef(), common_val_print(), value::contents_for_printing(), current_language, value_print_options::format, type::length(), print_scalar_formatted(), size, value::type(), val_print_optimized_out(), and val_print_unavailable().
Referenced by ada_val_print_enum(), ada_value_print_num(), c_value_print_int(), c_value_print_ptr(), generic_val_print_fixed_point(), generic_value_print(), generic_value_print_bool(), generic_value_print_char(), generic_value_print_complex(), generic_value_print_int(), generic_value_print_memberptr(), generic_value_print_ptr(), mips_print_register(), print_formatted(), f_language::value_print_inner(), m2_language::value_print_inner(), and pascal_language::value_print_inner().
|
extern |
Definition at line 106 of file valprint.c.
Referenced by debug_val(), get_formatted_print_options(), get_no_prettyformat_print_options(), get_user_print_options(), set_output_radix_1(), and show_print_max().