GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Functions | Variables
utils.c File Reference
#include "defs.h"
#include <ctype.h>
#include "gdbsupport/gdb_wait.h"
#include "event-top.h"
#include "gdbthread.h"
#include "fnmatch.h"
#include "gdb_bfd.h"
#include <signal.h>
#include "gdbcmd.h"
#include "serial.h"
#include "bfd.h"
#include "target.h"
#include "gdb-demangle.h"
#include "expression.h"
#include "language.h"
#include "charset.h"
#include "annotate.h"
#include "filenames.h"
#include "symfile.h"
#include "gdbsupport/gdb_obstack.h"
#include "gdbcore.h"
#include "top.h"
#include "ui.h"
#include "main.h"
#include "solist.h"
#include "inferior.h"
#include "gdb_curses.h"
#include "readline/readline.h"
#include <chrono>
#include "interps.h"
#include "gdbsupport/gdb_regex.h"
#include "gdbsupport/job-control.h"
#include "gdbsupport/selftest.h"
#include "gdbsupport/gdb_optional.h"
#include "cp-support.h"
#include <algorithm>
#include "gdbsupport/pathstuff.h"
#include "cli/cli-style.h"
#include "gdbsupport/scope-exit.h"
#include "gdbarch.h"
#include "cli-out.h"
#include "gdbsupport/gdb-safe-ctype.h"
#include "bt-utils.h"
#include "gdbsupport/buildargv.h"
#include "pager.h"
#include "run-on-main-thread.h"

Go to the source code of this file.

Classes

struct  internal_problem
 
class  scoped_input_handler
 

Functions

static void set_screen_size (void)
 
static void set_width (void)
 
static void show_sevenbit_strings (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_pagination_enabled (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
void vwarning (const char *string, va_list args)
 
void verror (const char *string, va_list args)
 
static void ATTRIBUTE_NORETURN abort_with_message (const char *msg)
 
void dump_core (void)
 
int can_dump_core (enum resource_limit_kind limit_kind)
 
void warn_cant_dump_core (const char *reason)
 
static int can_dump_core_warn (enum resource_limit_kind limit_kind, const char *reason)
 
static bool readline_initialized (struct ui *ui)
 
static void ATTRIBUTE_PRINTF (4, 0)
 
void internal_verror (const char *file, int line, const char *fmt, va_list ap)
 
void internal_vwarning (const char *file, int line, const char *fmt, va_list ap)
 
void demangler_vwarning (const char *file, int line, const char *fmt, va_list ap)
 
void demangler_warning (const char *file, int line, const char *string,...)
 
static void add_internal_problem_command (struct internal_problem *problem)
 
void perror_warning_with_name (const char *string)
 
void warning_filename_and_errno (const char *filename, int saved_errno)
 
void quit (void)
 
void maybe_quit (void)
 
void malloc_failure (long size)
 
void flush_streams ()
 
int myread (int desc, char *addr, int len)
 
static int ATTRIBUTE_PRINTF (1, 0)
 
int nquery (const char *ctlstr,...)
 
int yquery (const char *ctlstr,...)
 
int query (const char *ctlstr,...)
 
static int host_char_to_target (struct gdbarch *gdbarch, int c, int *target_c)
 
int parse_escape (struct gdbarch *gdbarch, const char **string_ptr)
 
static void show_lines_per_page (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_chars_per_line (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
void init_page_info (void)
 
int filtered_printing_initialized (void)
 
static void set_width_command (const char *args, int from_tty, struct cmd_list_element *c)
 
static void set_height_command (const char *args, int from_tty, struct cmd_list_element *c)
 
void set_screen_width_and_height (int width, int height)
 
static void maintenance_info_screen (const char *args, int from_tty)
 
void reset_prompt_for_continue_wait_time (void)
 
std::chrono::steady_clock::duration get_prompt_for_continue_wait_time ()
 
void reinitialize_more_filter (void)
 
void gdb_flush (struct ui_file *stream)
 
int get_chars_per_line ()
 
void puts_tabular (char *string, int width, int right)
 
void begin_line (void)
 
void gdb_puts (const char *linebuffer, struct ui_file *stream)
 
void fputs_styled (const char *linebuffer, const ui_file_style &style, struct ui_file *stream)
 
void fputs_highlighted (const char *str, const compiled_regex &highlight, struct ui_file *stream)
 
void gdb_putc (int c)
 
void gdb_putc (int c, struct ui_file *stream)
 
void gdb_vprintf (struct ui_file *stream, const char *format, va_list args)
 
void gdb_vprintf (const char *format, va_list args)
 
void gdb_printf (struct ui_file *stream, const char *format,...)
 
void fprintf_styled (struct ui_file *stream, const ui_file_style &style, const char *format,...)
 
void gdb_printf (const char *format,...)
 
void printf_unfiltered (const char *format,...)
 
void gdb_puts (const char *string)
 
const char * n_spaces (int n)
 
void print_spaces (int n, struct ui_file *stream)
 
void fprintf_symbol (struct ui_file *stream, const char *name, enum language lang, int arg_mode)
 
static bool valid_identifier_name_char (int ch)
 
static const char * cp_skip_operator_token (const char *token, const char *end)
 
static void skip_ws (const char *&string1, const char *&string2, const char *end_str2)
 
static bool cp_is_operator (const char *string, const char *start)
 
static bool skip_abi_tag (const char **name)
 
static bool skip_template_parameter_list (const char **name)
 
int strncmp_iw_with_mode (const char *string1, const char *string2, size_t string2_len, strncmp_iw_mode mode, enum language language, completion_match_for_lcd *match_for_lcd, bool ignore_template_params)
 
int strncmp_iw (const char *string1, const char *string2, size_t string2_len)
 
int strcmp_iw (const char *string1, const char *string2)
 
int strcmp_iw_ordered (const char *string1, const char *string2)
 
static void show_debug_timestamp (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
const char * paddress (struct gdbarch *gdbarch, CORE_ADDR addr)
 
const char * print_core_address (struct gdbarch *gdbarch, CORE_ADDR address)
 
CORE_ADDR string_to_core_addr (const char *my_string)
 
std::string ldirname (const char *filename)
 
int parse_pid_to_attach (const char *args)
 
void substitute_path_component (char **stringp, const char *from, const char *to)
 
int gdb_filename_fnmatch (const char *pattern, const char *string, int flags)
 
int count_path_elements (const char *path)
 
const char * strip_leading_path_elements (const char *path, int n)
 
void copy_bitwise (gdb_byte *dest, ULONGEST dest_offset, const gdb_byte *source, ULONGEST source_offset, ULONGEST nbits, int bits_big_endian)
 
void _initialize_utils ()
 

Variables

void(* deprecated_error_begin_hook )(void)
 
static std::chrono::steady_clock::duration prompt_for_continue_wait_time
 
bool debug_timestamp = false
 
bool sevenbit_strings = false
 
const char * warning_pre_print = "\nwarning: "
 
bool pagination_enabled = true
 
const char internal_problem_ask [] = "ask"
 
const char internal_problem_yes [] = "yes"
 
const char internal_problem_no [] = "no"
 
static const char *const internal_problem_modes []
 
static struct internal_problem internal_error_problem
 
static struct internal_problem internal_warning_problem
 
static struct internal_problem demangler_warning_problem
 
static unsigned int lines_per_page
 
static unsigned int chars_per_line
 
static unsigned int lines_printed
 
static unsigned int chars_printed
 
static bool pagination_disabled_for_command
 
static bool filter_initialized = false
 
EXTERN_C int _rl_term_autowrap
 
int readline_hidden_cols = 0
 
static const int sqrt_int_max = INT_MAX >> (sizeof (int) * 8 / 2)
 

Function Documentation

◆ _initialize_utils()

void _initialize_utils ( )

Definition at line 3717 of file utils.c.

Referenced by initialize_all_files().

◆ abort_with_message()

static void ATTRIBUTE_NORETURN abort_with_message ( const char * msg)
static

Definition at line 172 of file utils.c.

References current_ui, gdb_puts(), and gdb_stderr.

Referenced by ATTRIBUTE_PRINTF().

◆ add_internal_problem_command()

static void add_internal_problem_command ( struct internal_problem * problem)
static

◆ ATTRIBUTE_PRINTF() [1/2]

static int ATTRIBUTE_PRINTF ( 1 ,
0  )
static

◆ ATTRIBUTE_PRINTF() [2/2]

static void ATTRIBUTE_PRINTF ( 4 ,
0  )
static

◆ begin_line()

void begin_line ( void )

◆ can_dump_core()

int can_dump_core ( enum resource_limit_kind limit_kind)

Definition at line 207 of file utils.c.

References LIMIT_CUR, and LIMIT_MAX.

Referenced by can_dump_core_warn().

◆ can_dump_core_warn()

static int can_dump_core_warn ( enum resource_limit_kind limit_kind,
const char * reason )
static

Definition at line 247 of file utils.c.

References can_dump_core(), and warn_cant_dump_core().

Referenced by ATTRIBUTE_PRINTF().

◆ copy_bitwise()

void copy_bitwise ( gdb_byte * dest,
ULONGEST dest_offset,
const gdb_byte * source,
ULONGEST source_offset,
ULONGEST nbits,
int bits_big_endian )

◆ count_path_elements()

int count_path_elements ( const char * path)

Definition at line 3516 of file utils.c.

Referenced by compare_glob_filenames_for_search().

◆ cp_is_operator()

static bool cp_is_operator ( const char * string,
const char * start )
static

Definition at line 2081 of file utils.c.

References CP_OPERATOR_LEN, CP_OPERATOR_STR, and valid_identifier_name_char().

Referenced by strncmp_iw_with_mode().

◆ cp_skip_operator_token()

static const char * cp_skip_operator_token ( const char * token,
const char * end )
static

Definition at line 2013 of file utils.c.

References token, and valid_identifier_name_char().

Referenced by strncmp_iw_with_mode().

◆ demangler_vwarning()

void demangler_vwarning ( const char * file,
int line,
const char * fmt,
va_list ap )

Definition at line 497 of file utils.c.

References demangler_warning_problem.

Referenced by demangler_warning().

◆ demangler_warning()

void demangler_warning ( const char * file,
int line,
const char * string,
... )

Definition at line 503 of file utils.c.

References demangler_vwarning().

Referenced by maintenance_demangler_warning().

◆ dump_core()

void dump_core ( void )

Definition at line 185 of file utils.c.

Referenced by ATTRIBUTE_PRINTF().

◆ filtered_printing_initialized()

int filtered_printing_initialized ( void )

Definition at line 1194 of file utils.c.

References filter_initialized.

Referenced by ATTRIBUTE_PRINTF().

◆ flush_streams()

void flush_streams ( )

Definition at line 692 of file utils.c.

References gdb_stderr, and gdb_stdout.

◆ fprintf_styled()

void fprintf_styled ( struct ui_file * stream,
const ui_file_style & style,
const char * format,
... )

◆ fprintf_symbol()

void fprintf_symbol ( struct ui_file * stream,
const char * name,
enum language lang,
int arg_mode )

◆ fputs_highlighted()

void fputs_highlighted ( const char * str,
const compiled_regex & highlight,
struct ui_file * stream )

◆ fputs_styled()

void fputs_styled ( const char * linebuffer,
const ui_file_style & style,
struct ui_file * stream )

◆ gdb_filename_fnmatch()

int gdb_filename_fnmatch ( const char * pattern,
const char * string,
int flags )

◆ gdb_flush()

void gdb_flush ( struct ui_file * stream)

Definition at line 1498 of file utils.c.

References ui_file::flush().

Referenced by ATTRIBUTE_PRINTF(), build_id_to_debug_bfd_1(), captured_main_1(), cli_ui_out::clear_progress_notify(), command_line_input(), debug_exp(), debug_val(), display_gdb_prompt(), display_mi_prompt(), cli_ui_out::do_flush(), mi_ui_out::do_flush(), do_one_display(), cli_ui_out::do_progress_notify(), echo_command(), partial_symtab::expand_dependencies(), mi_console_file::flush(), gdb_disassembly(), gdb_flush_out_err(), gdb_readline_no_editing(), handle_inferior_event(), ioscm_read_from_port(), mi_cmd_gdb_exit(), mi_load_progress(), mi_on_resume_1(), mi_interp::on_breakpoint_created(), mi_interp::on_breakpoint_deleted(), mi_interp::on_breakpoint_modified(), mi_interp::on_inferior_added(), mi_interp::on_inferior_appeared(), mi_interp::on_inferior_disappeared(), mi_interp::on_inferior_removed(), mi_interp::on_memory_changed(), mi_interp::on_new_thread(), mi_interp::on_normal_stop(), mi_interp::on_param_changed(), mi_interp::on_record_changed(), mi_interp::on_solib_loaded(), mi_interp::on_solib_unloaded(), mi_interp::on_thread_exited(), mi_interp::on_traceframe_changed(), mi_interp::on_tsv_created(), mi_interp::on_tsv_deleted(), mi_interp::on_tsv_modified(), mi_interp::on_user_selected_context_changed(), output_command(), print_flush(), print_frame_info(), proceed(), procfs_set_exec_trap(), psymtab_to_symtab(), separate_debug_file_exists(), serial_log_command(), serial_readchar(), serial_write(), and symbol_file_add_with_addrs().

◆ gdb_printf() [1/2]

void gdb_printf ( const char * format,
... )

Definition at line 1911 of file utils.c.

References gdb_stdout, and gdb_vprintf().

◆ gdb_printf() [2/2]

void gdb_printf ( struct ui_file * stream,
const char * format,
... )

Definition at line 1886 of file utils.c.

References gdb_vprintf().

Referenced by __attribute__(), _initialize_sol_thread(), aarch64_dump_tdep(), aarch64_insert_hw_breakpoint(), aarch64_insert_watchpoint(), aarch64_linux_syscall_record(), aarch64_process_record(), aarch64_remove_hw_breakpoint(), aarch64_remove_watchpoint(), ada_emit_char(), ada_imported_describe_location(), ada_print_floating(), ada_print_scalar(), ada_print_symbol_signature(), ada_print_type(), ada_resolve_function(), ada_val_print_enum(), ada_val_print_struct_union(), ada_value_print(), ada_value_print_array(), ada_value_print_inner(), ada_value_print_num(), ada_value_print_ptr(), line_header::add_file_name(), line_header::add_include_dir(), add_inferior(), c_add_input::add_input(), cplus_add_input::add_input(), collection_list::add_memrange(), add_pe_exported_sym(), add_pe_forwarded_sym(), collection_list::add_remote_register(), collection_list::add_static_trace_data(), add_symbol_file_command(), add_thread_with_info(), addrmap_dump(), adi_print_versions(), alpha_heuristic_proc_start(), debug_target::always_non_stop_p(), amd64_linux_syscall_record_common(), amd_dbgapi_log_message_callback(), amd_dbgapi_target_signal_received(), annotate_error_begin(), arc_dump_tdep(), arc_insn_get_branch_target(), arm_dump_tdep(), arm_linux_syscall_record(), arm_print_float_info(), arm_process_record(), arm_record_coproc_data_proc(), arm_record_unsupported_insn(), arm_show_abi(), arm_show_fallback_mode(), arm_show_force_mode(), arm_show_unwind_secure_frames(), debug_target::async(), debug_target::async_wait_fd(), debug_target::attach_no_wait(), ATTRIBUTE_PRINTF(), ATTRIBUTE_PRINTF(), debug_target::augmented_libraries_svr4_read(), debug_target::auxv_parse(), avr_io_reg_read_command(), avr_scan_prologue(), ax_print(), backtrace_command_1(), binary(), bookmark_1(), bpf_push_dummy_call(), bpf_skip_prologue(), bpstat_check_watchpoint(), selftests::help_doc_tests::broken_doc_invariant(), debug_target::btrace_conf(), btrace_maint_print_packets(), gcc_cp_plugin::build_decl(), build_id_to_debug_bfd_1(), c_print_typedef(), c_type_print_args(), c_type_print_base_1(), c_type_print_base_struct_union(), c_type_print_modifier(), c_type_print_template_args(), c_type_print_varspec_prefix(), c_type_print_varspec_suffix(), c_value_print(), c_value_print_array(), c_value_print_struct(), debug_target::call_history(), record_btrace_target::call_history(), debug_target::call_history_from(), debug_target::call_history_range(), debug_target::can_accel_watchpoint_condition(), debug_target::can_async_p(), debug_target::can_do_single_step(), debug_target::can_download_tracepoint(), debug_target::can_execute_reverse(), debug_target::can_run_breakpoint_commands(), debug_target::can_use_agent(), debug_target::can_use_hw_breakpoint(), captured_main_1(), captured_mi_execute_command(), chain_candidate(), check(), check_for_thread_db(), check_frame_language_change(), check_syscall(), checkpoint_command(), child_terminal_inferior(), child_terminal_info(), child_terminal_ours_1(), clear_command(), cli_ui_out::clear_progress_notify(), record_full_base_target::close(), gdbsim_target::close(), cmd_record_delete(), cmd_record_stop(), cmd_show_record_btrace_cpu(), cmd_show_replay_memory_access(), code_breakpoint::code_breakpoint(), collection_list::collect_symbol(), debug_target::commit_resumed(), common_val_print(), compare_sections_command(), compile_cplus_debug_output_1(), compile_object_load(), compile_to_object(), complaints_show_value(), continue_command(), convert_symbol_sym(), convert_symbol_sym(), debug_target::core_of_thread(), core_target_open(), cp_print_class_member(), cp_print_value(), cp_print_value_fields(), cp_type_print_derivation_info(), cp_type_print_method_args(), gdbsim_target::create_inferior(), create_user_mem_region(), cris_dump_tdep(), cris_supply_gregset(), csky_analyze_prologue(), csky_push_dummy_call(), cutu_reader::cutu_reader(), cutu_reader::cutu_reader(), darwin_debug_port_info(), darwin_debug_regions(), darwin_dump_message(), darwin_execvp(), dcache_info_1(), dcache_print_line(), regcache::debug_print_register(), debug_sym_finish(), debug_sym_get_probes(), debug_sym_init(), debug_sym_new_init(), debug_sym_offsets(), debug_sym_read(), debug_sym_read_linetable(), debug_sym_relocate(), target_ops_ref_policy::decref(), default_print_float_info(), default_print_one_register_info(), default_terminal_info(), delete_checkpoint_command(), debug_target::delete_record(), demangle_command(), deprecated_cmd_warning(), deprecated_show_value_hack(), describe_other_breakpoints(), debug_target::detach(), gdbsim_target::detach(), detach_checkpoint_command(), detach_inferior(), debug_target::disable_btrace(), disable_current_display(), disable_display(), debug_target::disable_tracepoint(), disassemble_dwarf_expression(), debug_target::disconnect(), disp_exception(), display_current_task_id(), display_descriptor(), display_one_tib(), display_page_table(), display_ptable_entry(), display_selector(), display_selectors(), do_compile_dwarf_expr_to_c(), do_examine(), mi_ui_out::do_field_fmt(), mi_ui_out::do_field_string(), do_one_display(), cli_ui_out::do_progress_notify(), mi_ui_out::do_progress_notify(), do_show(), skiplist_entry::do_skip_file_p(), skiplist_entry::do_skip_gfile_p(), debug_target::done_generating_core(), dos_close(), dos_setbaudrate(), debug_target::download_trace_state_variable(), debug_target::download_tracepoint(), dsbt_current_sos(), dsbt_print_loadmap(), objfile::dump(), cooked_index::dump(), dwarf2_debug_names_index::dump(), dwarf2_gdb_index::dump(), cooked_index_functions::dump(), psymbol_functions::dump(), expr::ada_target_operation::dump(), expr::float_const_operation::dump(), register_dump::dump(), test_options_opts::dump(), expr::ada_aggregate_component::dump(), expr::ada_positional_component::dump(), expr::ada_others_component::dump(), expr::ada_choices_component::dump(), expr::ada_discrete_range_association::dump(), expr::ada_name_association::dump(), dump_die_1(), dump_die_shallow(), dump_dynamic_prop(), dump_fn_fieldlists(), expr::dump_for_expression(), expr::dump_for_expression(), expr::dump_for_expression(), expr::dump_for_expression(), expr::dump_for_expression(), expr::dump_for_expression(), expr::dump_for_expression(), expr::dump_for_expression(), expr::dump_for_expression(), expr::dump_for_expression(), expr::dump_for_expression(), expr::dump_for_expression(), expr::dump_for_expression(), expr::dump_for_expression(), expr::dump_for_expression(), dump_mem(), dump_msymbols(), dump_objfile(), dump_psymtab(), register_dump_regcache::dump_reg(), register_dump_reg_buffer::dump_reg(), register_dump_remote::dump_reg(), register_dump_groups::dump_reg(), dump_symtab_1(), debug_target::dumpcore(), dwarf_finish_line(), dwarf_record_line_1(), echo_command(), edit_command(), emit_octal_digit(), m2_language::emitchar(), rust_language::emitchar(), enable_break(), debug_target::enable_btrace(), debug_target::enable_tracepoint(), encode_actions_1(), compile_cplus_instance::enter_scope(), exec_file_attach(), execute_command(), debug_target::execution_direction(), objfile::expand_all_symtabs(), partial_symtab::expand_dependencies(), objfile::expand_matching_symbols(), objfile::expand_symtabs_for_function(), objfile::expand_symtabs_matching(), objfile::expand_symtabs_with_fullname(), debug_target::extra_thread_info(), f_language::f_type_print_base(), f_language::f_type_print_derivation_info(), f_language::f_type_print_varspec_prefix(), f_language::f_type_print_varspec_suffix(), fbsd_core_info_proc(), fbsd_core_info_proc_status(), fbsd_info_proc_files_entry(), fbsd_info_proc_files_header(), fbsd_info_proc_mappings_entry(), fbsd_info_proc_mappings_header(), fbsd_print_sigset(), fbsd_print_sockaddr_in(), fbsd_print_sockaddr_in6(), fetch_inferior_event(), value::fetch_lazy_register(), debug_target::fetch_memtags(), fetch_register(), core_target::fetch_registers(), gdbsim_target::fetch_registers(), debug_target::fetch_registers(), fetch_regs_kernel_thread(), fetch_regs_user_thread(), debug_target::fetch_x86_xsave_layout(), file_is_auto_load_safe(), bsd_kvm_target::files_info(), go32_nat_target::files_info(), inf_ptrace_target::files_info(), nto_procfs_target::files_info(), procfs_target::files_info(), gdbsim_target::files_info(), debug_target::files_info(), tfile_target::files_info(), windows_nat_target::files_info(), debug_target::filesystem_is_local(), find_command(), objfile::find_compunit_symtab_by_address(), find_instruction_backward(), objfile::find_last_source_symtab(), debug_target::find_memory_regions(), fbsd_nat_target::find_memory_regions(), nbsd_nat_target::find_memory_regions(), find_new_threads_callback(), find_new_threads_once(), find_oload_champ(), objfile::find_pc_sect_compunit_symtab(), find_separate_debug_file(), find_separate_debug_file_by_buildid(), find_unwind_entry(), print_offset_data::finish(), gcc_cp_plugin::finish_class_type(), finish_command(), first_component_command(), debug_target::flash_done(), debug_target::flash_erase(), debug_target::follow_exec(), follow_exec(), debug_target::follow_fork(), follow_fork_inferior(), objfile::forget_cached_source_info(), fprint_auxv_entry(), fprint_dummy_frames(), fput_alias_definition_styled(), frame_apply_command_count(), frame_unwind_register_value(), gcc_convert_symbol(), gcc_cplus_convert_symbol(), gcc_cplus_symbol_address(), gcc_symbol_address(), gcore_command(), gcore_create_callback(), gcore_create_memtag_section_callback(), gdbarch_addr_bit(), gdbarch_addr_bits_remove(), gdbarch_address_class_name_to_type_flags(), gdbarch_address_class_type_flags(), gdbarch_address_class_type_flags_to_name(), gdbarch_address_to_pointer(), gdbarch_addressable_memory_unit_size(), gdbarch_adjust_breakpoint_address(), gdbarch_adjust_dwarf2_addr(), gdbarch_adjust_dwarf2_line(), gdbarch_auto_charset(), gdbarch_auto_wide_charset(), gdbarch_auxv_parse(), gdbarch_ax_pseudo_register_collect(), gdbarch_ax_pseudo_register_push_stack(), gdbarch_believe_pcc_promotion(), gdbarch_bfd_arch_info(), gdbarch_bfloat16_bit(), gdbarch_bfloat16_format(), gdbarch_breakpoint_from_pc(), gdbarch_breakpoint_kind_from_current_state(), gdbarch_breakpoint_kind_from_pc(), gdbarch_byte_order(), gdbarch_byte_order_for_code(), gdbarch_call_dummy_location(), gdbarch_cannot_fetch_register(), gdbarch_cannot_step_breakpoint(), gdbarch_cannot_store_register(), gdbarch_char_signed(), gdbarch_code_of_frame_writable(), gdbarch_coff_make_msymbol_special(), gdbarch_convert_from_func_ptr_addr(), gdbarch_convert_register_p(), gdbarch_core_info_proc(), gdbarch_core_pid_to_str(), gdbarch_core_read_description(), gdbarch_core_read_x86_xsave_layout(), gdbarch_core_thread_name(), gdbarch_core_xfer_shared_libraries(), gdbarch_core_xfer_shared_libraries_aix(), gdbarch_core_xfer_siginfo(), gdbarch_create_memtag_section(), gdbarch_decode_memtag_section(), gdbarch_decr_pc_after_break(), gdbarch_deprecated_fp_regnum(), gdbarch_deprecated_function_start_offset(), gdbarch_disassembler_options(), gdbarch_disassembler_options_implicit(), gdbarch_displaced_step_buffer_length(), gdbarch_displaced_step_copy_insn(), gdbarch_displaced_step_copy_insn_closure_by_addr(), gdbarch_displaced_step_finish(), gdbarch_displaced_step_fixup(), gdbarch_displaced_step_hw_singlestep(), gdbarch_displaced_step_prepare(), gdbarch_displaced_step_restore_all_in_ptid(), gdbarch_double_bit(), gdbarch_double_format(), gdbarch_dtrace_disable_probe(), gdbarch_dtrace_enable_probe(), gdbarch_dtrace_parse_probe_argument(), gdbarch_dtrace_probe_is_enabled(), gdbarch_dummy_id(), gdbarch_dump(), gdbarch_dwarf2_addr_size(), gdbarch_dwarf2_omit_typedef_p(), gdbarch_dwarf2_reg_to_regnum(), gdbarch_ecoff_reg_to_regnum(), gdbarch_elf_make_msymbol_special(), gdbarch_execute_dwarf_cfa_vendor_op(), gdbarch_fast_tracepoint_valid_at(), gdbarch_fetch_pointer_argument(), gdbarch_fetch_tls_load_module_address(), gdbarch_fill_memtag_section(), gdbarch_find_by_info(), gdbarch_find_memory_regions(), gdbarch_float_bit(), gdbarch_float_format(), gdbarch_floatformat_for_type(), gdbarch_fp0_regnum(), gdbarch_frame_align(), gdbarch_frame_args_skip(), gdbarch_frame_num_args(), gdbarch_frame_red_zone_size(), gdbarch_gcc_target_options(), gdbarch_gcore_bfd_target(), gdbarch_gdb_signal_from_target(), gdbarch_gdb_signal_to_target(), gdbarch_gen_return_address(), gdbarch_get_longjmp_target(), gdbarch_get_memtag(), gdbarch_get_pc_address_flags(), gdbarch_get_return_buf_addr(), gdbarch_get_siginfo_type(), gdbarch_get_syscall_number(), gdbarch_get_thread_local_address(), gdbarch_gnu_triplet_regexp(), gdbarch_guess_tracepoint_registers(), gdbarch_half_bit(), gdbarch_half_format(), gdbarch_has_dos_based_file_system(), gdbarch_has_global_breakpoints(), gdbarch_has_global_solist(), gdbarch_has_shared_address_space(), gdbarch_have_nonsteppable_watchpoint(), gdbarch_in_indirect_branch_thunk(), gdbarch_in_solib_return_trampoline(), gdbarch_infcall_mmap(), gdbarch_infcall_munmap(), gdbarch_info_proc(), gdbarch_inner_than(), gdbarch_insn_is_call(), gdbarch_insn_is_jump(), gdbarch_insn_is_ret(), gdbarch_int_bit(), gdbarch_integer_to_address(), gdbarch_iterate_over_objfiles_in_search_order(), gdbarch_iterate_over_regset_sections(), gdbarch_long_bit(), gdbarch_long_double_bit(), gdbarch_long_double_format(), gdbarch_long_long_bit(), gdbarch_make_corefile_notes(), gdbarch_make_symbol_special(), gdbarch_max_insn_length(), gdbarch_memory_insert_breakpoint(), gdbarch_memory_remove_breakpoint(), gdbarch_memtag_granule_size(), gdbarch_memtag_matches_p(), gdbarch_memtag_to_string(), gdbarch_num_pseudo_regs(), gdbarch_num_regs(), gdbarch_osabi(), gdbarch_overlay_update(), gdbarch_pc_regnum(), gdbarch_pointer_to_address(), gdbarch_print_auxv_entry(), gdbarch_print_float_info(), gdbarch_print_insn(), gdbarch_print_registers_info(), gdbarch_print_vector_info(), gdbarch_process_record(), gdbarch_process_record_signal(), gdbarch_program_breakpoint_here_p(), gdbarch_ps_regnum(), gdbarch_pseudo_register_read(), gdbarch_pseudo_register_read_value(), gdbarch_pseudo_register_write(), gdbarch_ptr_bit(), gdbarch_push_dummy_call(), gdbarch_push_dummy_code(), gdbarch_ravenscar_ops(), gdbarch_read_core_file_mappings(), gdbarch_read_pc(), gdbarch_record_special_symbol(), gdbarch_register(), gdbarch_register_name(), gdbarch_register_reggroup_p(), gdbarch_register_sim_regno(), gdbarch_register_to_value(), gdbarch_register_type(), gdbarch_relocate_instruction(), gdbarch_remote_register_number(), gdbarch_remove_non_address_bits(), gdbarch_report_signal_info(), gdbarch_return_in_first_hidden_param_p(), gdbarch_return_value_as_value(), gdbarch_sdb_reg_to_regnum(), gdbarch_set_memtags(), gdbarch_short_bit(), gdbarch_single_step_through_delay(), gdbarch_skip_entrypoint(), gdbarch_skip_main_prologue(), gdbarch_skip_permanent_breakpoint(), gdbarch_skip_prologue(), gdbarch_skip_solib_resolver(), gdbarch_skip_trampoline_code(), gdbarch_so_ops(), gdbarch_software_single_step(), gdbarch_sofun_address_maybe_missing(), gdbarch_solib_symbols_extension(), gdbarch_sp_regnum(), gdbarch_stab_reg_to_regnum(), gdbarch_stabs_argument_has_addr(), gdbarch_stack_frame_destroyed_p(), gdbarch_stap_adjust_register(), gdbarch_stap_gdb_register_prefix(), gdbarch_stap_gdb_register_suffix(), gdbarch_stap_integer_prefixes(), gdbarch_stap_integer_suffixes(), gdbarch_stap_is_single_operand(), gdbarch_stap_parse_special_token(), gdbarch_stap_register_indirection_prefixes(), gdbarch_stap_register_indirection_suffixes(), gdbarch_stap_register_prefixes(), gdbarch_stap_register_suffixes(), gdbarch_sw_breakpoint_from_kind(), gdbarch_syscalls_info(), gdbarch_tagged_address_p(), gdbarch_target_desc(), gdbarch_tdep_1(), gdbarch_type_align(), gdbarch_unwind_pc(), gdbarch_unwind_sp(), gdbarch_update_call_site_pc(), gdbarch_update_p(), gdbarch_use_target_description_from_corefile_notes(), gdbarch_valid_disassembler_options(), gdbarch_value_from_register(), gdbarch_value_to_register(), gdbarch_vbit_in_delta(), gdbarch_virtual_frame_pointer(), gdbarch_vsyscall_range(), gdbarch_vtable_function_descriptors(), gdbarch_wchar_bit(), gdbarch_wchar_signed(), gdbarch_write_pc(), gdbarch_xml_syscall_file(), gdbpy_apply_frame_filter(), gdbpy_handle_exception(), gdbscm_execute_objfile_script(), gdbscm_source_objfile_script(), gdbsim_target_open(), gdbsim_xfer_memory(), generate_register_struct(), generic_printstr(), generic_val_print_fixed_point(), generic_val_print_func(), generic_value_print(), generic_value_print_char(), generic_value_print_complex(), debug_target::get_ada_task_ptid(), record_full_base_target::get_bookmark(), debug_target::get_bookmark(), debug_target::get_memory_xfer_limit(), debug_target::get_min_fast_tracepoint_insn_len(), get_number_trailer(), debug_target::get_raw_trace_data(), debug_target::get_section_table(), get_set_value(), get_show_value(), debug_target::get_tailcall_unwinder(), get_task_from_args(), debug_target::get_thread_control_capabilities(), debug_target::get_thread_local_address(), debug_target::get_tib_address(), debug_target::get_trace_state_variable_value(), debug_target::get_trace_status(), get_tracepoint_by_number(), debug_target::get_tracepoint_status(), debug_target::get_unwinder(), windows_nat_target::get_windows_debug_event(), remote_target::getpkt(), gnuv3_print_method_ptr(), gnuv3_print_vtable(), go32_pte_for_address(), go32_sldt(), record_full_base_target::goto_bookmark(), debug_target::goto_bookmark(), debug_target::goto_record(), debug_target::goto_record_begin(), debug_target::goto_record_end(), h8300_print_register(), handle_automatic_hardware_breakpoints(), handle_command(), handle_notification(), handle_redirections(), handle_vfork_child_exec_or_exit(), hardwire_print_tty_state(), hardwire_raw(), objfile::has_partial_symbols(), debug_target::has_pending_events(), objfile::has_unexpanded_symtabs(), debug_target::have_steppable_watchpoint(), help_all(), help_cmd(), help_list(), heuristic_proc_start(), hppa_dump_tdep(), hppa_fallback_frame_cache(), hppa_frame_cache(), i386_linux_intx80_sysenter_syscall_record(), i386_mpx_info_bounds(), i386_process_record(), i387_print_float_info(), ia64_dummy_id(), ia64_frame_this_id(), ia64_sigtramp_frame_this_id(), ignore_command(), ignore_probe_p(), ignore_probes_command(), inf_child_open_target(), inferior_command(), inferior_debug(), inferior_event_handler(), info_address_command(), info_auto_load_local_gdbinit(), info_bookmarks_command(), info_cb(), info_checkpoints_command(), info_classes_command(), info_common_command(), info_common_command_for_block(), info_display_command(), info_exceptions_command(), info_ext_lang_command(), info_frame_command_core(), info_line_command(), info_mach_exceptions_command(), info_mach_ports_command(), info_mach_task_command(), info_mach_tasks_command(), info_mach_thread_command(), info_mach_threads_command(), info_macro_command(), info_main_command(), info_mappings_callback(), info_mem_command(), info_module_subcommand(), fbsd_nat_target::info_proc(), nbsd_nat_target::info_proc(), procfs_target::info_proc(), info_proc_mappings(), core_target::info_proc_mappings(), info_program_command(), record_btrace_target::info_record(), record_full_base_target::info_record(), debug_target::info_record(), info_record_command(), info_scope_command(), info_selectors_command(), info_serial_command(), info_signals_command(), info_source_command(), info_symbol_command(), info_target_command(), info_task(), insert_bp_location(), debug_target::insert_breakpoint(), debug_target::insert_exec_catchpoint(), debug_target::insert_fork_catchpoint(), debug_target::insert_hw_breakpoint(), debug_target::insert_mask_watchpoint(), debug_target::insert_vfork_catchpoint(), debug_target::insert_watchpoint(), debug_target::insn_history(), record_btrace_target::insn_history(), debug_target::insn_history_from(), debug_target::insn_history_range(), debug_target::interrupt(), debug_target::is_async_p(), jit_bfd_try_read_symtab(), jit_event_handler(), jit_inferior_init(), jit_read_descriptor(), jump_command(), record_full_core_target::kill(), gdbsim_target::kill(), debug_target::kill(), kill_command(), language_info(), compile_cplus_instance::leave_scope(), libunwind_load(), linux_core_info_proc(), linux_core_info_proc_mappings(), linux_fork_context(), linux_fork_detach(), linux_fork_mourn_inferior(), linux_info_proc(), list_command(), list_overlays_command(), lm_addr_check(), lm_base(), gdbsim_target::load(), debug_target::load(), locexpr_describe_location_1(), locexpr_describe_location_piece(), loclist_describe_location(), debug_target::log_command(), objfile::lookup_symbol(), m2_array(), m2_enum(), m2_long_set(), m2_pointer(), m2_print_array_contents(), m2_print_long_set(), m2_print_unbounded_array(), m2_procedure(), m2_range(), m2_record_fields(), m2_ref(), m2_short_set(), m2_union(), m2_unknown(), m68hc11_print_register(), m68hc11_print_registers_info(), maint_btrace_packet_history_cmd(), maint_flush_dcache_command(), maint_info_btrace_cmd(), maint_print_all_sections(), maint_print_section_info(), maintenance_check_psymtabs(), maintenance_check_symtabs(), maintenance_check_tdesc_xml_convert(), maintenance_check_xml_descriptions(), maintenance_cplus_namespace(), maintenance_demangle(), maintenance_deprecate(), maintenance_do_deprecate(), maintenance_info_line_tables(), maintenance_info_psymtabs(), maintenance_info_screen(), maintenance_info_selftests(), maintenance_info_symtabs(), maintenance_info_target_sections(), maintenance_print_frame_id(), maintenance_print_one_line_table(), maintenance_print_record_instruction(), maintenance_print_symbol_cache(), maintenance_print_symbol_cache_statistics(), maintenance_print_target_stack(), maintenance_print_user_registers(), maintenance_selftest(), maintenance_show_test_settings_value_cmd(), maintenance_show_worker_threads(), maintenance_space_display(), maintenance_time_display(), maintenance_translate_address(), maintenance_undeprecate(), debug_target::make_corefile_notes(), make_green(), map_breakpoint_number_range(), map_display_numbers(), map_overlay_command(), objfile::map_symbol_filenames(), objfile::map_symtabs_matching_filename(), debug_target::masked_watch_num_registers(), maybe_cache_shell(), maybe_remove_breakpoints(), maybe_say_no_core_file_now(), mdebug_build_psymtabs(), mdebug_expand_psymtab(), mem_delete(), mem_disable(), mem_enable(), debug_target::memory_map(), memory_tag_check_command(), memory_tag_print_tag_command(), memory_tag_set_allocation_tag_command(), memory_tag_with_logical_tag_command(), merge_uploaded_trace_state_variables(), merge_uploaded_tracepoints(), mi_cmd_var_create(), mi_execute_cli_command(), mi_on_resume_1(), mi_output_running(), mips_dump_tdep(), mips_eabi_push_dummy_call(), mips_eabi_return_value(), mips_gdbarch_init(), mips_n32n64_push_dummy_call(), mips_n32n64_return_value(), mips_o32_push_dummy_call(), mips_o32_return_value(), mips_o64_push_dummy_call(), mips_o64_return_value(), mips_print_float_info(), mips_print_fp_register(), mips_print_register(), mips_print_registers_info(), mips_show_dr(), mips_xfer_register(), mn10300_dump_tdep(), gdbsim_target::mourn_inferior(), debug_target::mourn_inferior(), moxie_process_readu(), moxie_process_record(), nbsd_info_proc_mappings_entry(), nbsd_info_proc_mappings_header(), net_open(), new_ui_command(), nios2_analyze_prologue(), normal_stop(), notify_thread_exited(), mi_interp::on_breakpoint_created(), mi_interp::on_breakpoint_deleted(), mi_interp::on_breakpoint_modified(), mi_interp::on_inferior_added(), mi_interp::on_inferior_appeared(), mi_interp::on_inferior_disappeared(), mi_interp::on_inferior_removed(), mi_interp::on_memory_changed(), mi_interp::on_new_thread(), mi_interp::on_param_changed(), mi_interp::on_record_changed(), mi_interp::on_solib_loaded(), mi_interp::on_solib_unloaded(), mi_interp::on_thread_exited(), mi_interp::on_traceframe_changed(), mi_interp::on_tsv_created(), mi_interp::on_tsv_deleted(), mi_interp::on_tsv_modified(), mi_interp::on_user_selected_context_changed(), nto_procfs_target::open(), mi_ui_out::open(), open_target(), or1k_dump_tdep(), or1k_frame_cache(), or1k_unwind_pc(), or1k_unwind_sp(), output_access_specifier(), overlay_auto_command(), overlay_manual_command(), overlay_off_command(), parse_external(), parse_find_args(), parser_fprintf(), pascal_object_print_value(), pascal_object_print_value_fields(), pascm_set_func(), pascm_show_func(), debug_target::pass_ctrlc(), debug_target::pass_signals(), pdc_alloc(), pdc_dealloc(), pdc_read_data(), pdc_read_regs(), pdc_realloc(), pdc_symbol_addrs(), pdc_write_data(), pdc_write_regs(), debug_target::pid_to_exec_file(), debug_target::pid_to_str(), gcc_cp_plugin::pop_binding_level(), debug_target::post_attach(), ppc_linux_syscall_record(), ppc_process_prefix_instruction(), ppc_process_record(), ppc_process_record_op19(), ppc_process_record_op31(), ppc_process_record_op4(), ppc_process_record_op59(), ppc_process_record_op60(), ppc_process_record_op61(), ppc_process_record_op63(), ppscm_print_children(), ppscm_print_exception_unless_memory_error(), prepare_one_step(), debug_target::prepare_to_generate_core(), debug_target::prepare_to_store(), print_address_symbolic(), print_args(), ada_language::print_array_index(), f_language::print_array_index(), language_defn::print_array_index(), print_array_type(), print_bfd_flags(), print_bit_vector(), print_c_tdesc::print_c_tdesc(), print_children(), print_choices(), print_choices(), print_command_1(), print_command_trace(), print_cplus_stuff(), print_decimal_chars(), print_diff(), print_disassembly(), print_dynamic_range_bound(), rust_language::print_enum(), print_enum_type(), print_exception(), print_field_values(), print_fixed_point_type_info(), print_fp_register_row(), print_frame_arg_vars(), print_frame_local_vars(), print_frame_nameless_args(), pascal_language::print_func_args(), print_func_type(), print_gdb_configuration(), print_gdb_help(), print_gdb_version(), print_gnat_stuff(), print_go_string(), print_gp_register_row(), print_hex_chars(), print_i387_control_word(), print_i387_ext(), print_i387_status_word(), print_i387_value(), print_inferior_quit_action(), gdb_disassembler::print_insn(), signal_catchpoint::print_it(), internal_breakpoint::print_it(), print_macro_definition(), print_mem(), exec_catchpoint::print_mention(), fork_catchpoint::print_mention(), solib_catchpoint::print_mention(), signal_catchpoint::print_mention(), syscall_catchpoint::print_mention(), ordinary_breakpoint::print_mention(), tracepoint::print_mention(), print_msymbol_info(), print_object_command(), print_objfile_statistics(), pascal_language::print_one_char(), print_one_macro(), print_one_macro(), print_one_vtable(), print_optional_low_bound(), cli_packet_command_callbacks::print_packet(), print_partial_symbols(), gdb::print_percentage(), print_program_space(), print_range(), print_range_bound(), print_range_type(), print_record_type(), ada_catchpoint::print_recreate(), exec_catchpoint::print_recreate(), fork_catchpoint::print_recreate(), solib_catchpoint::print_recreate(), signal_catchpoint::print_recreate(), syscall_catchpoint::print_recreate(), exception_catchpoint::print_recreate(), ordinary_breakpoint::print_recreate(), dprintf_breakpoint::print_recreate(), ranged_breakpoint::print_recreate(), masked_watchpoint::print_recreate(), watchpoint::print_recreate(), tracepoint::print_recreate(), breakpoint::print_recreate_thread(), print_ref_address(), print_sal_location(), print_savedreg_msg(), print_section_index(), print_section_info(), print_selected_record_field_types(), gdb::bcache::print_statistics(), objfile::print_stats(), dwarf2_base_index_functions::print_stats(), psymbol_functions::print_stats(), print_symbol(), print_symbol_info(), scoped_command_stats::print_time(), print_type_fixed_point(), print_type_scalar(), m2_language::print_typedef(), pascal_language::print_typedef(), rust_language::print_typedef(), print_unchecked_union_type(), print_unpacked_pointer(), print_value(), print_variable_and_value(), print_variable_at_address(), print_variant_clauses(), print_variant_part(), print_variant_part(), print_vector_info(), printf_c_string(), print_c_tdesc::printf_field_type_assignment(), printf_pointer(), printf_wide_c_string(), m2_language::printstr(), pascal_language::printstr(), printstr(), fortran_array_printer_impl::process_dimension(), fortran_array_printer_impl::process_element(), procfs_meminfo(), procfs_pidlist(), debug_target::program_signals(), psymtab_to_symtab(), ptrace_check(), push(), remote_target::push_stop_reply(), pushf(), pwd_command(), range_error(), debug_target::ranged_break_num_registers(), rank_one_type(), rbreak_command(), debug_target::rcmd(), debug_target::read_btrace(), read_dbx_symtab(), debug_target::read_description(), read_die_and_siblings(), remote_target::read_frame(), read_memory_backward(), read_pe_exported_syms(), read_toplevel_die(), record_btrace_print_bts_conf(), record_btrace_print_conf(), record_btrace_print_pt_conf(), record_full_arch_list_add(), record_full_arch_list_add_end(), record_full_arch_list_add_mem(), record_full_arch_list_add_reg(), record_full_exec_insn(), record_full_goto_entry(), record_full_open(), record_full_open_1(), record_full_restore(), record_full_sig_handler(), record_full_wait_1(), debug_target::record_is_replaying(), lnp_state_machine::record_line(), record_linux_msghdr(), record_linux_sockaddr(), record_linux_system_call(), debug_target::record_method(), debug_target::record_stop_replaying(), debug_target::record_will_replay(), recursive_dump_type(), reg_flush_command(), reggroups_dump(), debug_target::region_ok_for_hw_watchpoint(), reload_shared_libraries_1(), remote_target::remote_btrace_maybe_reopen(), remote_target::remote_detach_1(), remote_target::remote_file_delete(), remote_target::remote_file_get(), remote_target::remote_file_put(), remote_target::remote_hostio_open(), remote_notif_ack(), remote_target::remote_notif_get_pending_events(), remote_notif_parse(), remote_target::remote_notif_remove_queued_reply(), debug_target::remove_breakpoint(), debug_target::remove_exec_catchpoint(), debug_target::remove_fork_catchpoint(), s390_linux_nat_target::remove_hw_breakpoint(), debug_target::remove_hw_breakpoint(), remove_inferior_breakpoints(), debug_target::remove_mask_watchpoint(), remove_threaded_breakpoints(), debug_target::remove_vfork_catchpoint(), debug_target::remove_watchpoint(), s390_linux_nat_target::remove_watchpoint(), objfile::require_partial_symbols(), reread_symbols(), reschedule(), restore_binary_file(), restore_command(), restore_one_section(), debug_target::resume(), gdbsim_target::resume_one_inferior(), riscv_print_arg_location(), riscv_print_one_register_info(), run_under_shell(), rust_internal_print_type(), rust_print_struct_def(), rust_val_print_slice(), s12z_print_ccw_info(), s390_linux_syscall_record(), s390_process_record(), s390_record_address_mask(), save_bookmark_command(), save_breakpoints(), debug_target::save_record(), record_full_base_target::save_record(), debug_target::save_trace_data(), save_trace_state_variables(), code_breakpoint::say_where(), search_command_helper(), debug_target::search_memory(), separate_debug_file_exists(), ser_base_async(), serial_baud_show_cmd(), serial_logchar(), serial_readchar(), serial_write(), set_architecture(), set_breakpoint_condition(), set_breakpoint_location_condition(), debug_target::set_circular_trace_buffer(), set_disassembler_options(), debug_target::set_disconnected_tracing(), set_endian(), set_environment_command(), set_ignore_count(), set_input_radix_1(), set_logging_off(), set_memory_packet_size(), set_observer_mode(), set_output_radix_1(), debug_target::set_permissions(), set_radix(), set_remote_protocol_packet_cmd(), set_remote_protocol_Z_packet_cmd(), debug_target::set_syscall_catchpoint(), set_task_cmd(), debug_target::set_trace_buffer_size(), debug_target::set_trace_notes(), setup_sections_data::setup_one_section(), show_aarch64_debug(), show_addressprint(), show_always_inserted_mode(), show_annotation_level(), show_architecture(), show_args_command(), show_asm_demangle(), show_auto_connect_native_target(), show_auto_load_dir(), show_auto_load_gdb_scripts(), show_auto_load_guile_scripts(), show_auto_load_local_gdbinit(), show_auto_load_python_scripts(), show_auto_load_safe_path(), show_auto_load_thread_db(), show_auto_solib_add(), show_automatic_hardware_breakpoints(), show_backtrace_limit(), show_backtrace_past_entry(), show_backtrace_past_main(), show_bdccsr_command(), show_bfd_cache_debug(), show_bfd_sharing(), show_bpf_debug(), show_bt_on_fatal_signal(), show_can_use_agent(), show_can_use_displaced_stepping(), show_can_use_hw_watchpoints(), show_case_command(), show_chars_per_line(), show_check_physname(), show_code_cache(), show_coerce_float_to_double_p(), show_commands(), show_compile_args(), show_compile_debug(), show_compile_gcc(), show_condition_evaluation_mode(), show_confirm(), show_convenience(), show_copying_command(), show_cwd_command(), show_dcache_enabled_p(), show_debug_amd_dbgapi_lib_log_level(), show_debug_auto_load(), show_debug_breakpoint(), show_debug_coff_pe_read(), show_debug_displaced(), show_debug_event_loop_command(), show_debug_file_directory(), show_debug_infcall(), show_debug_infrun(), show_debug_linux_nat(), show_debug_symfile(), show_debug_threads(), show_debug_timestamp(), show_debug_xml(), show_debuginfod_enabled(), show_debuginfod_urls(), show_debuginfod_verbose_command(), show_demangle(), show_demangling_style_names(), show_disable_randomization(), show_disassemble_next_line(), show_disassembler_options_sfunc(), show_disassembly_style_sfunc(), show_dsbt_debug(), show_dump_excluded_mappings(), show_dwarf_always_disassemble(), show_dwarf_max_cache_age(), show_dwarf_unwinders_enabled_p(), show_editing(), show_endian(), show_entry_values_debug(), show_exceptions_cmd(), show_exec_direction_func(), show_exec_done_display_p(), show_exec_file_mismatch_command(), show_expressiondebug(), show_ext_args(), show_fbsd_lwp_debug(), show_fbsd_nat_debug(), show_filename_display_string(), show_follow_exec_mode_string(), show_follow_fork_mode_string(), show_fortran_array_slicing_debug(), show_fp_model(), show_frame_debug(), show_gdb_datadir(), show_gdbarch_debug(), show_gnutarget_string(), show_hardware_breakpoint_limit(), show_hardware_watchpoint_length_limit(), show_hardware_watchpoint_limit(), show_history_expansion_p(), show_history_filename(), show_history_remove_duplicates(), show_history_size(), show_host_charset_name(), show_inaccessible_by_default(), show_index_cache_command(), show_index_cache_enabled_command(), show_index_cache_stats_command(), show_inferior_tty_command(), show_info_verbose(), show_input_radix(), show_interactive_mode(), show_interrupt_sequence(), show_jit_debug(), show_language_command(), show_libthread_db_debug(), show_lines_per_page(), show_lines_to_list(), show_logging_debug_redirect(), show_logging_enabled(), show_logging_filename(), show_logging_overwrite(), show_logging_redirect(), show_maint_btrace_pt_skip_pad(), show_maint_show_all_tib(), show_maint_target_async(), show_maint_target_non_stop(), show_maintenance_profile_p(), show_mask_address(), show_max_symbolic_offset(), show_max_user_call_depth(), show_max_value_size(), show_may_call_functions_p(), show_memory_packet_size(), show_memory_tag_violations(), show_mi_async_command(), show_mips_abi(), show_mips_compression(), show_mipsfpu_command(), show_nibbles(), show_non_stop(), show_objectprint(), show_observer_debug(), show_observer_mode(), show_opaque_type_resolution(), show_or1k_debug(), show_osabi(), show_output_radix(), show_overload_debug(), show_overload_resolution(), show_packet_config_cmd(), show_pagination_enabled(), show_parserdebug(), show_pascal_static_field_print(), show_pending_break_support(), show_powerpc_exact_watchpoints(), show_pp_source_pos(), show_precise_memory_mode(), show_prettyformat_arrays(), show_prettyformat_structs(), show_print_array_indexes(), show_print_finish(), show_print_inferior_events(), show_print_max(), show_print_max_chars(), show_print_max_depth(), show_print_offsets_and_sizes_in_hex(), show_print_symbol_filename(), show_print_thread_events(), show_print_type_methods(), show_print_type_nested_types(), show_print_type_typedefs(), show_prompt(), show_pybp_debug(), show_pymicmd_debug(), show_python_dont_write_bytecode(), show_python_ignore_environment(), show_pyuw_debug(), show_radix(), show_range_command(), show_range_stepping(), show_ravenscar_task_switching_command(), show_record_bts_buffer_size_value(), show_record_debug(), show_record_pt_buffer_size_value(), show_remote_debug(), show_remote_exec_file(), show_remote_packet_max_chars(), show_remote_timeout(), show_repack_array_slices(), show_repeat_count_threshold(), show_riscv_debug_variable(), show_schedule_multiple(), show_scheduler_mode(), show_script_ext_mode(), show_sevenbit_strings(), show_sig_thread_cmd(), show_signals_cmd(), show_solib_search_path(), show_source_open(), show_stack_cache(), show_stapexpressiondebug(), show_startup_quiet(), show_startup_with_shell(), show_static_field_print(), show_step_stop_if_no_debug(), show_stop_on_solib_events(), show_stop_print_at_null(), show_stopped_cmd(), show_strict_type_checking(), show_style_disassembler(), show_style_enabled(), show_style_sources(), show_style_tui_current_position(), show_substitute_path_command(), show_suppress_cli_notifications(), show_symbol_print(), show_system_call_allowed(), show_target_charset_name(), show_target_file_system_kind_command(), show_target_wide_charset_name(), show_targetdebug(), show_task_detach_sc_cmd(), show_task_pause_cmd(), show_tdesc_filename_cmd(), show_thread_default_detach_sc_cmd(), show_thread_default_pause_cmd(), show_thread_default_run_cmd(), show_thread_detach_sc_cmd(), show_thread_pause_cmd(), show_thread_run_cmd(), show_trust_readonly(), show_tui_active_border_mode(), show_tui_border_kind(), show_tui_border_mode(), show_tui_debug(), show_tui_mouse_events(), show_tui_resize_message(), show_unionprint(), show_unwind_on_signal_p(), show_unwind_on_terminating_exception_p(), show_use_compressed_breakpoints(), show_use_coredump_filter(), show_use_gnu_source_highlight_enabled(), show_use_libopcodes_styling(), show_user_1(), show_values(), show_varobjdebug(), show_version(), show_vtblprint(), show_warranty_command(), show_watchdog(), show_write_files(), show_write_history_p(), sig_print_header(), sig_print_info(), signal_command(), skip_command(), skip_file_command(), skip_function(), skiplist_entry::skip_function_p(), solib_add(), source_cache_flush_command(), tui_layout_split::specification(), gcc_cp_plugin::start_class_type(), remote_target::start_remote_1(), debug_target::static_tracepoint_marker_at(), debug_target::static_tracepoint_markers_by_strid(), stdin_event_handler(), debug_target::stop(), debug_target::stop_recording(), debug_target::stopped_by_hw_breakpoint(), debug_target::stopped_by_sw_breakpoint(), debug_target::stopped_by_watchpoint(), debug_target::stopped_data_address(), debug_target::store_memtags(), store_register(), nto_procfs_target::store_registers(), gdbsim_target::store_registers(), debug_target::store_registers(), store_regs_kernel_thread(), store_regs_user_thread(), collection_list::stringify(), debug_target::supports_delete_record(), debug_target::supports_disable_randomization(), debug_target::supports_dumpcore(), debug_target::supports_enable_disable_tracepoint(), debug_target::supports_evaluation_of_breakpoint_conditions(), debug_target::supports_memory_tagging(), debug_target::supports_multi_process(), debug_target::supports_non_stop(), debug_target::supports_stopped_by_hw_breakpoint(), debug_target::supports_stopped_by_sw_breakpoint(), debug_target::supports_string_tracing(), debug_target::supports_terminal_ours(), svr4_exec_displacement(), switch_to_inferior_and_push_target(), symbol_cache_dump(), symbol_cache_stats(), symbol_file_add_with_addrs(), symbol_file_clear(), symtab_symbol_info(), tailcall_dump(), target_announce_attach(), target_announce_detach(), target_debug_print_gdb_array_view_const_gdb_byte(), target_debug_print_signals(), target_debug_print_size_t(), target_debug_print_x86_xsave_layout(), target_fileio_close(), target_fileio_fstat(), target_fileio_open(), target_fileio_pread(), target_fileio_pwrite(), target_fileio_readlink(), target_fileio_unlink(), target_info_proc(), target_xfer_partial(), task_command_1(), tdump_command(), debug_target::teardown_btrace(), debug_target::terminal_inferior(), go32_nat_target::terminal_info(), debug_target::terminal_info(), debug_target::terminal_init(), debug_target::terminal_ours(), debug_target::terminal_ours_for_output(), debug_target::terminal_save_inferior(), tfind_1(), tfind_line_command(), tfind_outside_command(), tfind_range_command(), debug_target::thread_address_space(), debug_target::thread_alive(), debug_target::thread_architecture(), thread_command(), thread_db_load_search(), debug_target::thread_events(), thread_find_command(), debug_target::thread_handle_to_thread_info(), debug_target::thread_info_to_thread_handle(), debug_target::thread_name(), thread_takeover_sc_cmd(), thread_try_catch_cmd(), thumb_record_ldm_stm_swi(), thumb_record_misc(), trace_dump_actions(), debug_target::trace_find(), debug_target::trace_init(), trace_pass_set_count(), debug_target::trace_set_readonly_regions(), debug_target::trace_start(), debug_target::trace_stop(), trace_variable_command(), debug_target::traceframe_info(), selftests::command_structure_tests::traverse_command_structure(), try_thread_db_load(), try_thread_db_load_1(), tsave_command(), tstatus_command(), tui_all_windows_info(), tui_reg_command(), tui_set_focus_command(), tui_show_compact_source(), tui_show_tab_width(), pascal_language::type_print_base(), pascal_language::type_print_derivation_info(), pascal_language::type_print_func_varspec_suffix(), pascal_language::type_print_varspec_prefix(), pascal_language::type_print_varspec_suffix(), ui_printf(), unary(), uninstall_variable(), unwind_command(), print_offset_data::update(), update_breakpoint_locations(), update_observer_mode(), debug_target::update_thread_list(), update_watchpoint(), debug_target::upload_trace_state_variables(), debug_target::upload_tracepoints(), debug_target::use_agent(), user_select_syms(), val_print_packed_array_elements(), val_print_string(), rust_language::val_print_struct(), val_print_type_code_flags(), value_check_printable(), pascal_language::value_print(), rust_language::value_print(), value_print_array_elements(), f_language::value_print_inner(), m2_language::value_print_inner(), pascal_language::value_print_inner(), varobj_create(), debug_target::verify_memory(), print_c_tdesc::visit(), print_c_feature::visit(), print_c_tdesc::visit(), print_c_tdesc::visit(), print_c_tdesc::visit_post(), print_c_feature::visit_post(), print_c_tdesc::visit_pre(), print_c_feature::visit_pre(), print_c_tdesc::visit_pre(), print_c_feature::visit_pre(), vwarning(), debug_target::wait(), inf_ptrace_target::wait(), procfs_target::wait(), gdbsim_target::wait(), rs6000_nat_target::wait(), remote_target::wait_as(), warn_cant_dump_core(), debug_target::watchpoint_addr_within_range(), whatis_exp(), debug_target::xfer_partial(), nbsd_nat_target::xfer_partial(), record_full_target::xfer_partial(), xtensa_push_dummy_call(), complaint_interceptor::~complaint_interceptor(), and scoped_command_stats::~scoped_command_stats().

◆ gdb_putc() [1/2]

void gdb_putc ( int c)

◆ gdb_putc() [2/2]

void gdb_putc ( int c,
struct ui_file * stream )

Definition at line 1868 of file utils.c.

References ui_file::putc().

◆ gdb_puts() [1/2]

void gdb_puts ( const char * linebuffer,
struct ui_file * stream )

Definition at line 1809 of file utils.c.

References ui_file::puts().

Referenced by __attribute__(), abort_with_message(), ada_print_floating(), ada_printchar(), ada_val_print_ref(), ada_value_print_num(), ada_value_print_ptr(), c_add_code_footer::add_code_footer(), c_add_code_header::add_code_header(), cplus_add_code_header::add_code_header(), c_add_input::add_input(), cplus_add_input::add_input(), debug_target::always_non_stop_p(), arm_print_float_info(), debug_target::async(), debug_target::async_wait_fd(), debug_target::attach_no_wait(), ATTRIBUTE_PRINTF(), debug_target::augmented_libraries_svr4_read(), debug_target::auxv_parse(), ax_print(), begin_line(), debug_target::btrace_conf(), c_print_type_1(), c_type_print_base_1(), c_type_print_base_struct_union(), c_type_print_template_args(), c_value_print_int(), debug_target::call_history(), debug_target::call_history_from(), debug_target::call_history_range(), debug_target::can_accel_watchpoint_condition(), debug_target::can_async_p(), debug_target::can_do_single_step(), debug_target::can_download_tracepoint(), debug_target::can_execute_reverse(), debug_target::can_run_breakpoint_commands(), debug_target::can_use_agent(), debug_target::can_use_hw_breakpoint(), captured_mi_execute_command(), chain_candidate(), check_thread_db(), debug_target::commit_resumed(), compile_cplus_debug_output_1(), complaint_internal(), fortran_array_printer_impl::continue_walking(), debug_target::core_of_thread(), cp_print_class_member(), cp_print_value(), cp_print_value_fields(), cp_type_print_derivation_info(), cp_type_print_method_args(), default_print_one_register_info(), debug_target::delete_record(), debug_target::detach(), debug_target::disable_btrace(), debug_target::disable_tracepoint(), remote_target::disconnect(), debug_target::disconnect(), display_descriptor(), display_mi_prompt(), display_page_table(), display_ptable_entry(), display_selector(), display_selectors(), do_examine(), mi_ui_out::do_field_fmt(), do_one_display(), do_serial_close(), do_show(), cli_ui_out::do_text(), debug_target::done_generating_core(), debug_target::download_trace_state_variable(), debug_target::download_tracepoint(), dump_die_shallow(), expr::dump_for_expression(), expr::dump_for_expression(), expr::dump_for_expression(), expr::dump_for_expression(), dump_mem(), dump_msymbols(), dump_psymtab(), dump_symtab_1(), debug_target::dumpcore(), m2_language::emitchar(), pascal_language::emitchar(), rust_language::emitchar(), debug_target::enable_btrace(), debug_target::enable_tracepoint(), environment_info(), debug_target::execution_direction(), partial_symtab::expand_dependencies(), debug_target::extra_thread_info(), f_language::f_type_print_base(), f_language::f_type_print_varspec_suffix(), debug_target::fetch_memtags(), debug_target::fetch_registers(), debug_target::fetch_x86_xsave_layout(), exec_target::files_info(), debug_target::files_info(), debug_target::filesystem_is_local(), debug_target::find_memory_regions(), print_offset_data::finish(), fortran_array_printer_impl::finish_dimension(), debug_target::flash_done(), debug_target::flash_erase(), mi_console_file::flush(), debug_target::follow_exec(), debug_target::follow_fork(), gdb_printing_disassembler::fprintf_styled_func(), fprintf_symbol(), fput_alias_definition_styled(), fput_command_names_styled(), fputs_highlighted(), fputs_styled(), fputsn_filtered(), generate_register_struct(), generic_emit_char(), generic_printstr(), generic_val_print_array(), generic_val_print_enum_1(), generic_val_print_ref(), generic_value_print(), generic_value_print_bool(), generic_value_print_char(), debug_target::get_ada_task_ptid(), debug_target::get_bookmark(), debug_target::get_memory_xfer_limit(), debug_target::get_min_fast_tracepoint_insn_len(), debug_target::get_raw_trace_data(), debug_target::get_section_table(), debug_target::get_tailcall_unwinder(), debug_target::get_thread_control_capabilities(), debug_target::get_thread_local_address(), debug_target::get_tib_address(), debug_target::get_trace_state_variable_value(), debug_target::get_trace_status(), debug_target::get_tracepoint_status(), debug_target::get_unwinder(), gnuv3_print_method_ptr(), go32_pde(), go32_pte(), go32_pte_for_address(), go32_sldt(), debug_target::goto_bookmark(), debug_target::goto_record(), debug_target::goto_record_begin(), debug_target::goto_record_end(), debug_target::has_pending_events(), debug_target::have_steppable_watchpoint(), help_cmd(), help_list(), i387_print_float_info(), info_address_command(), info_checkpoints_command(), info_display_command(), info_frame_command_core(), debug_target::info_record(), debug_target::insert_breakpoint(), debug_target::insert_exec_catchpoint(), debug_target::insert_fork_catchpoint(), debug_target::insert_hw_breakpoint(), debug_target::insert_mask_watchpoint(), debug_target::insert_vfork_catchpoint(), debug_target::insert_watchpoint(), debug_target::insn_history(), debug_target::insn_history_from(), debug_target::insn_history_range(), debug_target::interrupt(), debug_target::is_async_p(), jit_bfd_try_read_symtab(), jump_command(), debug_target::kill(), linux_info_proc(), list_overlays_command(), debug_target::load(), debug_target::log_command(), m2_array(), m2_long_set(), m2_procedure(), m2_record_fields(), m2_type_name(), m2_typedef(), m2_unbounded_array(), macro_expand_command(), macro_expand_once_command(), macro_inform_no_debuginfo(), maint_print_all_sections(), maint_print_xml_tdesc_cmd(), maintenance_check_psymtabs(), maintenance_info_psymtabs(), maintenance_show_test_options_completion_result(), debug_target::make_corefile_notes(), debug_target::masked_watch_num_registers(), print_offset_data::maybe_print_hole(), debug_target::memory_map(), mi_cmd_gdb_exit(), mi_load_progress(), mi_on_resume_1(), mi_print_exception(), mips_print_float_info(), mips_print_register(), mips_show_dr(), debug_target::mourn_inferior(), mi_interp::on_normal_stop(), remote_target::open_1(), pascal_object_print_value(), pascal_object_print_value_fields(), debug_target::pass_ctrlc(), debug_target::pass_signals(), path_info(), debug_target::pid_to_exec_file(), debug_target::pid_to_str(), cplus_pop_user_expression::pop_user_expression(), debug_target::post_attach(), ppscm_print_children(), ppscm_print_string_repr(), debug_target::prepare_to_generate_core(), debug_target::prepare_to_store(), print_address_symbolic(), print_bit_vector(), print_callback(), print_children(), print_command_trace(), print_cplus_stuff(), print_decimal_chars(), print_doc_line(), print_doc_of_command(), rust_language::print_enum(), print_exception(), print_field_values(), print_floating(), print_fpu_flags(), print_fpu_flags(), print_frame_arg(), pascal_language::print_func_args(), print_func_type(), print_function_pointer_address(), print_gdb_help(), print_go_string(), print_help_for_command(), print_hex_chars(), print_i387_control_word(), print_i387_ext(), print_i387_status_word(), print_longest(), print_macro_definition(), print_mem(), print_name_maybe_canonical(), print_octal_chars(), pascal_language::print_one_char(), print_one_macro(), cli_packet_command_callbacks::print_packet(), print_partial_symbols(), print_ref_address(), print_spaces(), print_string_repr(), print_symbol(), print_symbol_info(), f_language::print_type(), go_language::print_type(), pascal_language::print_type(), print_type_scalar(), print_unpacked_pointer(), print_unpacked_pointer(), print_unpacked_pointer(), print_variable_at_address(), f_language::printchar(), m2_language::printchar(), pascal_language::printchar(), rust_language::printchar(), printf_floating(), language_defn::printstr(), f_language::printstr(), m2_language::printstr(), pascal_language::printstr(), printstr(), fortran_array_printer_impl::process_dimension(), fortran_array_printer_impl::process_element(), debug_target::program_signals(), c_push_user_expression::push_user_expression(), cplus_push_user_expression::push_user_expression(), puts_tabular(), py_print_single_arg(), debug_target::ranged_break_num_registers(), debug_target::rcmd(), debug_target::read_btrace(), debug_target::read_description(), cli_packet_command_callbacks::received(), debug_target::record_is_replaying(), debug_target::record_method(), debug_target::record_stop_replaying(), debug_target::record_will_replay(), recursive_dump_type(), debug_target::region_ok_for_hw_watchpoint(), remote_target::remote_detach_1(), debug_target::remove_breakpoint(), debug_target::remove_exec_catchpoint(), debug_target::remove_fork_catchpoint(), debug_target::remove_hw_breakpoint(), debug_target::remove_mask_watchpoint(), debug_target::remove_vfork_catchpoint(), debug_target::remove_watchpoint(), restore_one_section(), debug_target::resume(), riscv_print_one_register_info(), rust_internal_print_type(), rust_print_struct_def(), s12z_print_ccw_info(), debug_target::save_record(), debug_target::save_trace_data(), debug_target::search_memory(), cli_packet_command_callbacks::sending(), ser_base_read_error_fd(), serial_log_command(), serial_logchar(), debug_target::set_circular_trace_buffer(), debug_target::set_disconnected_tracing(), debug_target::set_permissions(), debug_target::set_syscall_catchpoint(), debug_target::set_trace_buffer_size(), debug_target::set_trace_notes(), show_directories_1(), show_disable_randomization(), show_disassembler_options_sfunc(), show_memory_packet_size(), show_pp_source_pos(), show_user_1(), tui_layout_window::specification(), tui_layout_split::specification(), fortran_array_printer_impl::start_dimension(), debug_target::static_tracepoint_marker_at(), debug_target::static_tracepoint_markers_by_strid(), debug_target::stop(), debug_target::stop_recording(), debug_target::stopped_by_hw_breakpoint(), debug_target::stopped_by_sw_breakpoint(), debug_target::stopped_by_watchpoint(), debug_target::stopped_data_address(), debug_target::store_memtags(), debug_target::store_registers(), debug_target::supports_delete_record(), debug_target::supports_disable_randomization(), debug_target::supports_dumpcore(), debug_target::supports_enable_disable_tracepoint(), debug_target::supports_evaluation_of_breakpoint_conditions(), debug_target::supports_memory_tagging(), debug_target::supports_multi_process(), debug_target::supports_non_stop(), debug_target::supports_stopped_by_hw_breakpoint(), debug_target::supports_stopped_by_sw_breakpoint(), debug_target::supports_string_tracing(), debug_target::supports_terminal_ours(), target_debug_print_gdb_array_view_const_gdb_byte(), target_debug_print_signals(), target_debug_print_target_wait_flags(), target_debug_print_target_waitstatus_p(), target_debug_print_x86_xsave_layout(), target_xfer_partial(), debug_target::teardown_btrace(), debug_target::terminal_inferior(), debug_target::terminal_info(), debug_target::terminal_init(), debug_target::terminal_ours(), debug_target::terminal_ours_for_output(), debug_target::terminal_save_inferior(), debug_target::thread_address_space(), debug_target::thread_alive(), debug_target::thread_architecture(), debug_target::thread_events(), debug_target::thread_handle_to_thread_info(), debug_target::thread_info_to_thread_handle(), debug_target::thread_name(), debug_target::trace_find(), debug_target::trace_init(), debug_target::trace_set_readonly_regions(), debug_target::trace_start(), debug_target::trace_stop(), debug_target::traceframe_info(), pascal_language::type_print_base(), pascal_language::type_print_derivation_info(), pascal_language::type_print_method_args(), debug_target::update_thread_list(), debug_target::upload_trace_state_variables(), debug_target::upload_tracepoints(), debug_target::use_agent(), val_print_check_max_depth(), rust_language::val_print_struct(), val_print_type_code_flags(), f_language::value_print_inner(), m2_language::value_print_inner(), pascal_language::value_print_inner(), rust_language::value_print_inner(), debug_target::verify_memory(), vwarning(), debug_target::wait(), debug_target::watchpoint_addr_within_range(), and debug_target::xfer_partial().

◆ gdb_puts() [2/2]

void gdb_puts ( const char * string)

Definition at line 1939 of file utils.c.

References gdb_stdout.

◆ gdb_vprintf() [1/2]

void gdb_vprintf ( const char * format,
va_list args )

Definition at line 1880 of file utils.c.

References gdb_stdout.

◆ gdb_vprintf() [2/2]

void gdb_vprintf ( struct ui_file * stream,
const char * format,
va_list args )

◆ get_chars_per_line()

int get_chars_per_line ( )

Definition at line 1506 of file utils.c.

References chars_per_line.

Referenced by cli_ui_out::clear_progress_notify(), and cli_ui_out::do_progress_notify().

◆ get_prompt_for_continue_wait_time()

std::chrono::steady_clock::duration get_prompt_for_continue_wait_time ( )

Definition at line 1463 of file utils.c.

References prompt_for_continue_wait_time.

Referenced by scoped_command_stats::~scoped_command_stats().

◆ host_char_to_target()

static int host_char_to_target ( struct gdbarch * gdbarch,
int c,
int * target_c )
static

Definition at line 960 of file utils.c.

References convert_between_encodings(), host_charset(), target_charset(), and translit_none.

Referenced by parse_escape().

◆ init_page_info()

void init_page_info ( void )

◆ internal_verror()

void internal_verror ( const char * file,
int line,
const char * fmt,
va_list ap )

Definition at line 474 of file utils.c.

References internal_error_problem.

◆ internal_vwarning()

void internal_vwarning ( const char * file,
int line,
const char * fmt,
va_list ap )

Definition at line 486 of file utils.c.

References internal_warning_problem.

◆ ldirname()

std::string ldirname ( const char * filename)

◆ maintenance_info_screen()

static void maintenance_info_screen ( const char * args,
int from_tty )
static

Definition at line 1301 of file utils.c.

References chars_per_line, gdb_printf(), gdb_stdout, lines_per_page, and sqrt_int_max.

◆ malloc_failure()

void malloc_failure ( long size)

Definition at line 676 of file utils.c.

References size.

Referenced by xcalloc(), xmalloc(), xmalloc_failed(), and xrealloc().

◆ maybe_quit()

void maybe_quit ( void )

Definition at line 660 of file utils.c.

References is_main_thread(), quit(), quit_handler, and sync_quit_force_run.

◆ myread()

int myread ( int desc,
char * addr,
int len )

Definition at line 702 of file utils.c.

References read().

Referenced by source_cache::get_plain_source_lines().

◆ n_spaces()

const char * n_spaces ( int n)

◆ nquery()

int nquery ( const char * ctlstr,
... )

Definition at line 908 of file utils.c.

Referenced by create_breakpoint().

◆ paddress()

const char * paddress ( struct gdbarch * gdbarch,
CORE_ADDR addr )

Definition at line 3166 of file utils.c.

References gdbarch_addr_bit().

Referenced by aarch64_displaced_step_copy_insn(), aarch64_displaced_step_fixup(), aarch64_dump_tdep(), aarch64_process_record(), aarch64_push_dummy_call(), ada_value_print_num(), collection_list::add_memrange(), add_symbol_file_command(), add_vsyscall_page(), adi_print_versions(), adi_read_versions(), adi_write_versions(), alpha_heuristic_proc_start(), amd64_displaced_step_copy_insn(), amd64_displaced_step_fixup(), amd64_relocate_instruction(), amd64_windows_find_unwind_info(), amd64_windows_frame_decode_insns(), amd64_windows_frame_prev_register(), annotate_frame_begin(), annotate_source(), arc_analyze_prologue(), arc_insn_dump(), arc_linux_is_sigtramp(), arc_linux_software_single_step(), arc_print_frame_cache(), arc_skip_prologue(), arc_write_pc(), arm_analyze_prologue(), arm_displaced_init_closure(), arm_process_record(), arm_push_dummy_call(), arm_record_unsupported_insn(), ax_print(), bookmark_1(), BP_MANIPULATION_ENDIAN(), bpf_push_dummy_call(), bpf_skip_prologue(), bplocpy_repr(), bpstat_locno(), breakpoint_location_address_str(), call_site_find_chain_1(), call_site_for_pc(), check_fast_tracepoint_sals(), amd_dbgapi_target_breakpoint::check_status(), collection_list::collect_symbol(), compare_sections_command(), compile_object_load(), copy_sections(), csky_push_dummy_call(), darwin_debug_regions(), dcache_info_1(), dcache_print_line(), describe_other_breakpoints(), displaced_step_prepare_throw(), display_one_tib(), do_assign(), do_examine(), do_examine(), do_target_wait_1(), cooked_index::dump(), dump_msymbols(), dump_psymtab(), dump_symtab_1(), dwarf2_frame_cache(), dwarf2_restore_rule(), dwarf_expr_reg_to_entry_parameter(), dwarf_finish_line(), dwarf_record_line_1(), edit_command(), elf_gnu_ifunc_record_cache(), execute_cfa_program(), value::fetch_lazy_register(), filter_overlapping_sections(), fbsd_nat_target::find_memory_regions(), nbsd_nat_target::find_memory_regions(), psymbol_functions::find_pc_sect_compunit_symtab(), dwarf2_base_index_functions::find_pc_sect_compunit_symtab(), displaced_step_buffers::finish(), buildsym_compunit::finish_block_internal(), finish_step_over(), fixup_riprel(), fprint_auxv_entry(), frame_unwind_register_value(), func_addr_to_tail_call_list(), func_verify_no_selftailcall(), gcore_copy_callback(), gcore_create_callback(), gcore_create_memtag_section_callback(), gdbsim_xfer_memory(), gnu_xfer_auxv(), gnu_xfer_memory(), gnuv3_get_typename_from_type_info(), handle_inferior_event(), handle_one(), handle_signal_stop(), heuristic_proc_start(), hppa_frame_cache(), hppa_skip_trampoline_code(), i386_displaced_step_copy_insn(), i386_displaced_step_fixup(), i386_mpx_get_bt_entry(), i386_process_record(), i386_record_lea_modrm(), i386_relocate_instruction(), ia64_dummy_id(), ia64_frame_this_id(), ia64_memory_insert_breakpoint(), ia64_memory_remove_breakpoint(), ia64_sigtramp_frame_this_id(), info_address_command(), info_cb(), info_checkpoints_command(), info_exceptions_command(), info_frame_command_core(), core_target::info_proc_mappings(), info_program_command(), info_scope_command(), info_task(), insert_bp_location(), insert_exception_resume_from_probe(), insert_longjmp_resume_breakpoint(), insert_step_resume_breakpoint_at_sal_1(), call_site_target::iterate_over_addresses(), jit_bfd_try_read_symtab(), jit_breakpoint_re_set_internal(), jit_event_handler(), jit_object_close_impl(), jit_read_descriptor(), jit_register_code(), jump_command(), keep_going_stepped_thread(), linux_core_info_proc_mappings(), linux_info_proc(), list_command(), list_overlays_command(), lm_addr_check(), lm_info_read(), load_progress(), loclist_describe_location(), m32c_m16c_address_to_pointer(), macho_add_oso_symfile(), maintenance_check_psymtabs(), maintenance_info_psymtabs(), tui_locator_window::make_status_line(), mbpy_str(), memory_error_message(), memory_tag_check_command(), merge_uploaded_tracepoints(), microblaze_analyze_prologue(), mips_eabi_push_dummy_call(), mips_n32n64_push_dummy_call(), mips_o32_push_dummy_call(), mips_o64_push_dummy_call(), mips_show_dr(), moxie_process_readu(), moxie_process_record(), nios2_analyze_prologue(), or1k_frame_cache(), or1k_unwind_pc(), or1k_unwind_sp(), ppc_displaced_step_fixup(), ppc_process_prefix_instruction(), ppc_process_record(), ppc_process_record_op19(), ppc_process_record_op31(), ppc_process_record_op4(), ppc_process_record_op59(), ppc_process_record_op60(), ppc_process_record_op61(), ppc_process_record_op63(), displaced_step_buffers::prepare(), print_address(), print_address_demangle(), print_disassembly(), print_function_pointer_address(), print_go_string(), ranged_breakpoint::print_mention(), print_one_vtable(), print_partial_symbols(), print_ref_address(), print_section_info(), print_symbol(), print_unpacked_pointer(), print_unpacked_pointer(), print_unpacked_pointer(), print_variable_at_address(), proceed(), process_event_stop_test(), pyuw_sniffer(), read_call_site_scope(), read_memory_backward(), record_full_arch_list_add_mem(), record_full_exec_insn(), record_full_restore(), record_full_wait_1(), lnp_state_machine::record_line(), record_read_memory(), displaced_step_buffers::restore_in_ptid(), restore_one_section(), resume_1(), resume_stopped_resumed_lwps(), riscv_breakpoint_kind_from_pc(), riscv_push_dummy_code(), s12z_frame_cache(), s390_displaced_step_copy_insn(), s390_displaced_step_fixup(), s390_process_record(), save_bookmark_command(), record_full_base_target::save_record(), code_breakpoint::say_where(), setup_sections_data::setup_one_section(), should_be_inserted(), show_addr_not_tagged(), skip_function_command(), status_callback(), store_regs(), collection_list::stringify(), stub_gnu_ifunc_resolve_addr(), svr4_create_probe_breakpoints(), svr4_create_solib_event_breakpoints(), svr4_exec_displacement(), svr4_read_so_list(), tailcall_dump(), thumb_analyze_prologue(), thumb_record_misc(), update_global_location_list(), f_language::value_print_inner(), pascal_language::value_print_inner(), rust_language::value_print_inner(), windows_xfer_shared_library(), and record_full_target::xfer_partial().

◆ parse_escape()

int parse_escape ( struct gdbarch * gdbarch,
const char ** string_ptr )

Definition at line 996 of file utils.c.

References host_char_to_target(), and target_charset().

Referenced by do_set_command(), echo_command(), and yylex().

◆ parse_pid_to_attach()

int parse_pid_to_attach ( const char * args)

◆ perror_warning_with_name()

void perror_warning_with_name ( const char * string)

Definition at line 616 of file utils.c.

Referenced by captured_main_1(), detach_one_lwp(), and source_script_with_search().

◆ print_core_address()

const char * print_core_address ( struct gdbarch * gdbarch,
CORE_ADDR address )

◆ print_spaces()

void print_spaces ( int n,
struct ui_file * stream )

◆ printf_unfiltered()

void printf_unfiltered ( const char * format,
... )

Definition at line 1922 of file utils.c.

References gdb_stdout.

Referenced by __attribute__(), annotate_arg_begin(), annotate_arg_end(), annotate_arg_name_end(), annotate_arg_value(), annotate_array_section_begin(), annotate_array_section_end(), annotate_breakpoint(), annotate_breakpoints_headers(), annotate_breakpoints_invalid(), annotate_breakpoints_table(), annotate_breakpoints_table_end(), annotate_catchpoint(), annotate_display_begin(), annotate_display_end(), annotate_display_expression(), annotate_display_expression_end(), annotate_display_format(), annotate_display_number_end(), annotate_display_value(), annotate_elt(), annotate_elt_rep(), annotate_elt_rep_end(), annotate_error(), annotate_exited(), annotate_field(), annotate_field_begin(), annotate_field_end(), annotate_field_name_end(), annotate_field_value(), annotate_frame_address(), annotate_frame_address_end(), annotate_frame_args(), annotate_frame_begin(), annotate_frame_end(), annotate_frame_function_name(), annotate_frame_source_begin(), annotate_frame_source_end(), annotate_frame_source_file(), annotate_frame_source_file_end(), annotate_frame_source_line(), annotate_frame_where(), annotate_frames_invalid(), annotate_function_call(), annotate_new_thread(), annotate_quit(), annotate_record(), annotate_signal(), annotate_signal_handler_caller(), annotate_signal_name(), annotate_signal_name_end(), annotate_signal_string(), annotate_signal_string_end(), annotate_signalled(), annotate_source(), annotate_starting(), annotate_stopped(), annotate_thread_changed(), annotate_thread_exited(), annotate_value_begin(), annotate_value_end(), annotate_value_history_begin(), annotate_value_history_end(), annotate_value_history_value(), annotate_watchpoint(), command_line_handler(), command_line_input(), complete_command(), decode_line_2(), display_gdb_prompt(), gdb_readline_no_editing(), gdb_rl_deprep_term_function(), handle_line_of_input(), print_value_flags(), read_command_lines(), and go32_nat_target::resume().

◆ puts_tabular()

void puts_tabular ( char * string,
int width,
int right )

Definition at line 1546 of file utils.c.

References chars_per_line, chars_printed, and gdb_puts().

Referenced by info_classes_command(), and info_selectors_command().

◆ query()

int query ( const char * ctlstr,
... )

◆ quit()

void quit ( void )

◆ readline_initialized()

static bool readline_initialized ( struct ui * ui)
static

Definition at line 310 of file utils.c.

References ui::call_readline.

Referenced by ATTRIBUTE_PRINTF().

◆ reinitialize_more_filter()

void reinitialize_more_filter ( void )

◆ reset_prompt_for_continue_wait_time()

void reset_prompt_for_continue_wait_time ( void )

Definition at line 1453 of file utils.c.

References prompt_for_continue_wait_time.

Referenced by scoped_command_stats::scoped_command_stats().

◆ set_height_command()

static void set_height_command ( const char * args,
int from_tty,
struct cmd_list_element * c )
static

Definition at line 1281 of file utils.c.

References set_screen_size().

◆ set_screen_size()

static void set_screen_size ( void )
static

◆ set_screen_width_and_height()

void set_screen_width_and_height ( int width,
int height )

Definition at line 1289 of file utils.c.

References chars_per_line, lines_per_page, set_screen_size(), and set_width().

Referenced by tui_update_gdb_sizes().

◆ set_width()

static void set_width ( void )
static

◆ set_width_command()

static void set_width_command ( const char * args,
int from_tty,
struct cmd_list_element * c )
static

Definition at line 1274 of file utils.c.

References set_screen_size(), and set_width().

◆ show_chars_per_line()

static void show_chars_per_line ( struct ui_file * file,
int from_tty,
struct cmd_list_element * c,
const char * value )
static

Definition at line 1085 of file utils.c.

References gdb_printf().

◆ show_debug_timestamp()

static void show_debug_timestamp ( struct ui_file * file,
int from_tty,
struct cmd_list_element * c,
const char * value )
static

Definition at line 3157 of file utils.c.

References gdb_printf().

◆ show_lines_per_page()

static void show_lines_per_page ( struct ui_file * file,
int from_tty,
struct cmd_list_element * c,
const char * value )
static

Definition at line 1074 of file utils.c.

References gdb_printf().

◆ show_pagination_enabled()

static void show_pagination_enabled ( struct ui_file * file,
int from_tty,
struct cmd_list_element * c,
const char * value )
static

Definition at line 124 of file utils.c.

References gdb_printf().

◆ show_sevenbit_strings()

static void show_sevenbit_strings ( struct ui_file * file,
int from_tty,
struct cmd_list_element * c,
const char * value )
static

Definition at line 110 of file utils.c.

References gdb_printf().

◆ skip_abi_tag()

static bool skip_abi_tag ( const char ** name)
static

Definition at line 2095 of file utils.c.

References name, and valid_identifier_name_char().

Referenced by strncmp_iw_with_mode().

◆ skip_template_parameter_list()

static bool skip_template_parameter_list ( const char ** name)
static

Definition at line 2120 of file utils.c.

References find_toplevel_char(), and name.

Referenced by strncmp_iw_with_mode().

◆ skip_ws()

static void skip_ws ( const char *& string1,
const char *& string2,
const char * end_str2 )
static

Definition at line 2068 of file utils.c.

Referenced by strncmp_iw_with_mode().

◆ strcmp_iw()

int strcmp_iw ( const char * string1,
const char * string2 )

◆ strcmp_iw_ordered()

int strcmp_iw_ordered ( const char * string1,
const char * string2 )

Definition at line 3077 of file utils.c.

References c1, c2, case_sensitive_off, and case_sensitive_on.

Referenced by compare_names_with_case(), and lookup_partial_symbol().

◆ string_to_core_addr()

CORE_ADDR string_to_core_addr ( const char * my_string)

Definition at line 3205 of file utils.c.

Referenced by mi_cmd_var_create().

◆ strip_leading_path_elements()

const char * strip_leading_path_elements ( const char * path,
int n )

Definition at line 3552 of file utils.c.

Referenced by compare_glob_filenames_for_search().

◆ strncmp_iw()

int strncmp_iw ( const char * string1,
const char * string2,
size_t string2_len )

◆ strncmp_iw_with_mode()

int strncmp_iw_with_mode ( const char * string1,
const char * string2,
size_t string2_len,
strncmp_iw_mode mode,
enum language language language ,
completion_match_for_lcd * match_for_lcd,
bool ignore_template_params )

◆ substitute_path_component()

void substitute_path_component ( char ** stringp,
const char * from,
const char * to )

Definition at line 3354 of file utils.c.

References xrealloc().

Referenced by auto_load_expand_dir_vars(), and selftests::utils::test_substitute_path_component().

◆ valid_identifier_name_char()

static bool valid_identifier_name_char ( int ch)
static

◆ verror()

void verror ( const char * string,
va_list args )

Definition at line 164 of file utils.c.

Referenced by range_error().

◆ vwarning()

void vwarning ( const char * string,
va_list args )

◆ warn_cant_dump_core()

void warn_cant_dump_core ( const char * reason)

Definition at line 235 of file utils.c.

References gdb_printf(), and gdb_stderr.

Referenced by can_dump_core_warn().

◆ warning_filename_and_errno()

void warning_filename_and_errno ( const char * filename,
int saved_errno )

◆ yquery()

int yquery ( const char * ctlstr,
... )

Variable Documentation

◆ _rl_term_autowrap

EXTERN_C int _rl_term_autowrap

Definition at line 1115 of file utils.c.

Referenced by init_page_info().

◆ chars_per_line

unsigned int chars_per_line
static

◆ chars_printed

unsigned int chars_printed
static

◆ debug_timestamp

bool debug_timestamp = false

Definition at line 102 of file utils.c.

Referenced by timestamped_file::write().

◆ demangler_warning_problem

struct internal_problem demangler_warning_problem
static
Initial value:
= {
"demangler-warning", true, internal_problem_ask, false, internal_problem_no,
false, false
}
const char internal_problem_ask[]
Definition utils.c:261
const char internal_problem_no[]
Definition utils.c:263

Definition at line 491 of file utils.c.

Referenced by demangler_vwarning().

◆ deprecated_error_begin_hook

void(* deprecated_error_begin_hook) (void) ( void )

Definition at line 85 of file utils.c.

Referenced by clear_interpreter_hooks(), and print_flush().

◆ filter_initialized

bool filter_initialized = false
static

Definition at line 1109 of file utils.c.

Referenced by filtered_printing_initialized(), set_width(), and pager_file::wrap_here().

◆ internal_error_problem

struct internal_problem internal_error_problem
static
Initial value:
= {
"internal-error", true, internal_problem_ask, true, internal_problem_ask,
}
#define GDB_PRINT_INTERNAL_BACKTRACE_INIT_ON
Definition bt-utils.h:51

Definition at line 468 of file utils.c.

Referenced by internal_verror().

◆ internal_problem_ask

const char internal_problem_ask[] = "ask"

Definition at line 261 of file utils.c.

Referenced by ATTRIBUTE_PRINTF().

◆ internal_problem_modes

const char* const internal_problem_modes[]
static
Initial value:
=
{
NULL
}
const char internal_problem_yes[]
Definition utils.c:262

Definition at line 264 of file utils.c.

Referenced by add_internal_problem_command().

◆ internal_problem_no

const char internal_problem_no[] = "no"

Definition at line 263 of file utils.c.

Referenced by ATTRIBUTE_PRINTF().

◆ internal_problem_yes

const char internal_problem_yes[] = "yes"

Definition at line 262 of file utils.c.

Referenced by ATTRIBUTE_PRINTF().

◆ internal_warning_problem

struct internal_problem internal_warning_problem
static
Initial value:
= {
"internal-warning", true, internal_problem_ask, true, internal_problem_ask,
true, false
}

Definition at line 480 of file utils.c.

Referenced by internal_vwarning().

◆ lines_per_page

unsigned int lines_per_page
static

◆ lines_printed

unsigned int lines_printed
static

Definition at line 1095 of file utils.c.

Referenced by pager_file::puts(), and reinitialize_more_filter().

◆ pagination_disabled_for_command

bool pagination_disabled_for_command
static

◆ pagination_enabled

bool pagination_enabled = true

◆ prompt_for_continue_wait_time

std::chrono::steady_clock::duration prompt_for_continue_wait_time
static

◆ readline_hidden_cols

int readline_hidden_cols = 0

Definition at line 1119 of file utils.c.

Referenced by init_page_info(), and tui_resize_all().

◆ sevenbit_strings

bool sevenbit_strings = false

◆ sqrt_int_max

const int sqrt_int_max = INT_MAX >> (sizeof (int) * 8 / 2)
static

Definition at line 1225 of file utils.c.

Referenced by maintenance_info_screen(), and set_screen_size().

◆ warning_pre_print

const char* warning_pre_print = "\nwarning: "

Definition at line 120 of file utils.c.

Referenced by captured_main_1(), check_thread_db(), and vwarning().