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 |
Functions | |
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 |
int build_address_symbolic | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | addr, | ||
bool | do_demangle, | ||
bool | prefer_sym_over_minsym, | ||
std::string * | name, | ||
int * | offset, | ||
std::string * | filename, | ||
int * | line, | ||
int * | unmapped | ||
) |
Definition at line 594 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().
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 | ||
) |
Definition at line 1158 of file valprint.c.
References common_val_print(), and value_check_printable().
Referenced by print_frame_arg(), and print_variable_and_value().
void generic_emit_char | ( | int | c, |
struct type * | type, | ||
struct ui_file * | stream, | ||
int | quoter, | ||
const char * | encoding | ||
) |
Definition at line 2174 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().
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 2492 of file valprint.c.
References convert_between_encodings(), count_next_character(), extract_unsigned_integer(), gdb_printf(), gdb_puts(), 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().
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 | ||
) |
Definition at line 888 of file valprint.c.
References check_typedef(), type::code(), 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(), TYPE_CODE_UNDEF, TYPE_ERROR_NAME, val_print_type_code_flags(), value_address(), value_cast(), value_contents_for_printing(), value_print_scalar_formatted(), value_type(), 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().
void get_formatted_print_options | ( | struct value_print_options * | opts, |
char | format | ||
) |
Definition at line 145 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().
void get_no_prettyformat_print_options | ( | struct value_print_options * | opts | ) |
Definition at line 136 of file valprint.c.
References user_print_options, and Val_no_prettyformat.
Referenced by list_arg_or_local(), print_frame_arg(), and print_variable_or_computed().
void get_user_print_options | ( | struct value_print_options * | opts | ) |
Definition at line 128 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(), mi_cmd_data_evaluate_expression(), print_frame(), 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(), say_where(), show_convenience(), show_values(), unwind_infopy_str(), update_type_if_necessary(), value_actual_type(), vlscm_print_value_smob(), watchpoint_value_print(), and whatis_exp().
gdb::option::option_def_group make_value_print_options_def_group | ( | value_print_options * | opts | ) |
Definition at line 3024 of file valprint.c.
References value_print_option_defs.
Referenced by compile_print_command(), print_command_completer(), and process_print_command_args().
void maybe_print_array_index | ( | struct type * | index_type, |
LONGEST | index, | ||
struct ui_file * | stream, | ||
const struct value_print_options * | options | ||
) |
Definition at line 1909 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().
void output_command | ( | const char * | args, |
int | from_tty | ||
) |
Definition at line 1465 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(), format_data::raw, format_data::size, validate_format(), and value_type().
Referenced by trace_dump_actions().
void print_binary_chars | ( | struct ui_file * | , |
const gdb_byte * | , | ||
unsigned int | , | ||
enum | bfd_endian, | ||
bool | , | ||
const struct value_print_options * | options | ||
) |
void print_command_completer | ( | struct cmd_list_element * | ignore, |
completion_tracker & | tracker, | ||
const char * | text, | ||
const char * | word | ||
) |
Definition at line 1433 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().
void print_command_parse_format | ( | const char ** | expp, |
const char * | cmdname, | ||
value_print_options * | opts | ||
) |
Definition at line 1211 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().
void print_decimal_chars | ( | struct ui_file * | , |
const gdb_byte * | , | ||
unsigned int | , | ||
bool | , | ||
enum | bfd_endian | ||
) |
void print_function_pointer_address | ( | const struct value_print_options * | options, |
struct gdbarch * | gdbarch, | ||
CORE_ADDR | address, | ||
struct ui_file * | stream | ||
) |
Definition at line 1885 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().
void print_hex_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_value | ( | value * | val, |
const value_print_options & | opts | ||
) |
Definition at line 1242 of file printcmd.c.
References annotate_value_history_begin(), annotate_value_history_end(), annotate_value_history_value(), gdb_printf(), gdb_stdout, print_formatted(), record_latest_value(), 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().
bool val_print_check_max_depth | ( | struct ui_file * | stream, |
int | recurse, | ||
const struct value_print_options * | opts, | ||
const struct language_defn * | language | ||
) |
Definition at line 1085 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().
void val_print_invalid_address | ( | struct ui_file * | stream | ) |
Definition at line 417 of file valprint.c.
References fprintf_styled(), metadata_style, and cli_style_option::style().
Referenced by cp_print_value(), and pascal_object_print_value().
void val_print_not_saved | ( | struct ui_file * | stream | ) |
Definition at line 405 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 396 of file valprint.c.
References fprintf_styled(), lval_register, metadata_style, cli_style_option::style(), val_print_not_saved(), and value_lval_const().
Referenced by ada_value_print_array(), cp_print_static_field(), pascal_object_print_static_field(), pascal_object_print_value_fields(), valprint_check_validity(), value_check_printable(), value_fetch_lazy_register(), and value_print_scalar_formatted().
int val_print_scalar_type_p | ( | struct type * | type | ) |
Definition at line 296 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().
void val_print_unavailable | ( | struct ui_file * | stream | ) |
Definition at line 411 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().
int valprint_check_validity | ( | struct ui_file * | stream, |
struct type * | type, | ||
LONGEST | embedded_offset, | ||
const struct value * | val | ||
) |
Definition at line 332 of file valprint.c.
References check_typedef(), type::code(), coerce_ref_if_computed(), value::embedded_offset, fputs_styled(), type::length(), 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(), val_print_unavailable(), value_bits_any_optimized_out(), value_bits_synthetic_pointer(), value_bytes_available(), and value_lval_const().
Referenced by common_val_print(), and cp_print_value_fields().
void value_print_array_elements | ( | struct value * | val, |
struct ui_file * | stream, | ||
int | recurse, | ||
const struct value_print_options * | options, | ||
unsigned int | i | ||
) |
Definition at line 1922 of file valprint.c.
References annotate_array_section_begin(), annotate_array_section_end(), annotate_elt(), annotate_elt_rep(), annotate_elt_rep_end(), type::bit_stride(), check_typedef(), type::code(), common_val_print(), current_language, 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(), UINT_MAX, value_contents_eq(), value_from_component_bitsize(), 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().
void value_print_scalar_formatted | ( | struct value * | val, |
const struct value_print_options * | options, | ||
int | size, | ||
struct ui_file * | stream | ||
) |
Definition at line 1259 of file valprint.c.
References check_typedef(), common_val_print(), current_language, value_print_options::format, type::length(), print_scalar_formatted(), size, val_print_optimized_out(), val_print_unavailable(), value_bits_any_optimized_out(), value_bytes_available(), value_contents_for_printing(), and value_type().
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 100 of file valprint.c.
Referenced by debug_val(), get_formatted_print_options(), get_no_prettyformat_print_options(), get_user_print_options(), and set_output_radix_1().