GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Enumerations | Functions | Variables
utils.h File Reference
#include "exceptions.h"
#include "gdbsupport/array-view.h"
#include "gdbsupport/scoped_restore.h"
#include <chrono>

Go to the source code of this file.

Classes

struct  set_batch_flag_and_restore_page_info
 
struct  deferred_warnings
 

Macros

#define gdb_stdout   (*current_ui_gdb_stdout_ptr ())
 
#define gdb_stdin   (*current_ui_gdb_stdin_ptr ())
 
#define gdb_stderr   (*current_ui_gdb_stderr_ptr ())
 
#define gdb_stdlog   (*current_ui_gdb_stdlog_ptr ())
 

Enumerations

enum class  strncmp_iw_mode { NORMAL , MATCH_PARAMS }
 
enum  resource_limit_kind { LIMIT_CUR , LIMIT_MAX }
 

Functions

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=NULL, bool ignore_template_params=false)
 
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 *, const char *)
 
void reset_prompt_for_continue_wait_time (void)
 
std::chrono::steady_clock::duration get_prompt_for_continue_wait_time ()
 
int parse_pid_to_attach (const char *args)
 
int parse_escape (struct gdbarch *, const char **)
 
void init_page_info (void)
 
int gdb_filename_fnmatch (const char *pattern, const char *string, int flags)
 
void substitute_path_component (char **stringp, const char *from, const char *to)
 
std::string ldirname (const char *filename)
 
int count_path_elements (const char *path)
 
const char * strip_leading_path_elements (const char *path, int n)
 
int query (const char *,...) ATTRIBUTE_PRINTF(1
 
int int nquery (const char *,...) ATTRIBUTE_PRINTF(1
 
int int int yquery (const char *,...) ATTRIBUTE_PRINTF(1
 
int int int void begin_line (void)
 
void wrap_here (int)
 
void reinitialize_more_filter (void)
 
int get_chars_per_line ()
 
struct ui_file ** current_ui_gdb_stdout_ptr (void)
 
struct ui_file ** current_ui_gdb_stdin_ptr (void)
 
struct ui_file ** current_ui_gdb_stderr_ptr (void)
 
struct ui_file ** current_ui_gdb_stdlog_ptr (void)
 
void gdb_flush (struct ui_file *stream)
 
void set_screen_width_and_height (int width, int height)
 
void gdb_puts (const char *, struct ui_file *)
 
void gdb_putc (int c, struct ui_file *)
 
void gdb_putc (int c)
 
void gdb_puts (const char *)
 
void puts_tabular (char *string, int width, int right)
 
void gdb_vprintf (const char *, va_list) ATTRIBUTE_PRINTF(1
 
void void gdb_vprintf (struct ui_file *, const char *, va_list) ATTRIBUTE_PRINTF(2
 
void void void gdb_printf (struct ui_file *, const char *,...) ATTRIBUTE_PRINTF(2
 
void void void void gdb_printf (const char *,...) ATTRIBUTE_PRINTF(1
 
void void void void void printf_unfiltered (const char *,...) ATTRIBUTE_PRINTF(1
 
void void void void void void print_spaces (int, struct ui_file *)
 
const char * n_spaces (int)
 
int filtered_printing_initialized (void)
 
void fprintf_styled (struct ui_file *stream, const ui_file_style &style, const char *fmt,...) ATTRIBUTE_PRINTF(3
 
void 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)
 
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)
 
void fprintf_symbol (struct ui_file *, const char *, enum language, int)
 
void perror_warning_with_name (const char *string)
 
void warning_filename_and_errno (const char *filename, int saved_errno)
 
void demangler_vwarning (const char *file, int line, const char *, va_list ap) ATTRIBUTE_PRINTF(3
 
void void demangler_warning (const char *file, int line, const char *,...) ATTRIBUTE_PRINTF(3
 
void void int myread (int, char *, int)
 
int can_dump_core (enum resource_limit_kind limit_kind)
 
void warn_cant_dump_core (const char *reason)
 
void dump_core (void)
 
void copy_bitwise (gdb_byte *dest, ULONGEST dest_offset, const gdb_byte *source, ULONGEST source_offset, ULONGEST nbits, int bits_big_endian)
 
template<typename T >
void assign_set_if_changed (T &lval, const T &val, bool &changed)
 
template<typename T >
bool assign_return_if_changed (T &lval, const T &val)
 

Variables

bool sevenbit_strings
 
bool pagination_enabled
 
bool debug_timestamp
 
struct ui_filegdb_stdtarg
 
struct ui_filegdb_stdtargerr
 
struct ui_filegdb_stdtargin
 
void(* deprecated_error_begin_hook )(void)
 
const char * warning_pre_print
 
int readline_hidden_cols
 

Macro Definition Documentation

◆ gdb_stderr

#define gdb_stderr   (*current_ui_gdb_stderr_ptr ())

Definition at line 187 of file utils.h.

Referenced by _initialize_sol_thread(), aarch64_linux_report_signal_info(), aarch64_linux_syscall_record(), aarch64_process_record(), abort_with_message(), add_vsyscall_page(), amd64_linux_syscall_record_common(), amd_dbgapi_log_message_callback(), annotate_error_begin(), arc_insn_get_branch_target(), arm_linux_syscall_record(), arm_record_coproc_data_proc(), arm_record_unsupported_insn(), ATTRIBUTE_PRINTF(), avr_io_reg_read_command(), avr_scan_prologue(), bpstat_check_breakpoint_conditions(), bpstat_check_watchpoint(), breakpoint_notify(), breakpoint_re_set(), captured_main(), captured_main_1(), exception_catchpoint::check_status(), check_syscall(), check_thread_db(), child_terminal_inferior(), child_terminal_ours_1(), command_line_input(), complaint_internal(), core_target_open(), create_breakpoint(), cris_supply_gregset(), darwin_execvp(), disable_current_display(), do_gdb_disassembly(), dos_close(), dos_setbaudrate(), dump_symtab_1(), dwarf2_build_psymtabs(), dwarf2_build_psymtabs_hard(), elf_none_make_corefile_notes(), enable_breakpoint_disp(), die_info::error_dump(), cli_interp::exec(), execute_fn_to_ui_file(), fbsd_make_corefile_notes(), fetch_register(), core_target::fetch_registers(), gdbsim_target::fetch_registers(), find_objc_msgcall_submethod(), find_oload_champ(), flush_streams(), follow_fork_inferior(), gdb_internal_backtrace(), gdb_main(), gdbscm_execute_objfile_script(), gdbscm_source_objfile_script(), remote_target::get_trace_status(), windows_nat_target::get_windows_debug_event(), handle_command_errors(), handle_fatal_signal(), hardwire_raw(), i386_linux_intx80_sysenter_syscall_record(), i386_process_record(), inferior_event_handler(), interpreter_exec_cmd(), ioscm_read_from_port(), ioscm_with_output_to_port_worker(), ioscm_write(), jit_bfd_try_read_symtab(), jit_event_handler(), jit_inferior_init(), jit_read_descriptor(), keep_going_pass_signal(), libunwind_load(), linux_make_corefile_notes(), mep_gdbarch_init(), mi_print_breakpoint_for_event(), mips_eabi_return_value(), mips_n32n64_return_value(), mips_o32_return_value(), mips_o64_return_value(), mips_xfer_register(), moxie_process_readu(), net_open(), normal_stop(), parser_fprintf(), ppc_linux_syscall_record(), ppc_process_record(), print_callback(), print_children(), print_command_1(), print_flush(), procfs_pidlist(), procfs_set_exec_trap(), ps_plog(), quit_command(), quit_force(), range_error(), rank_one_type(), read_dbx_symtab(), record_full_message_wrapper_safe(), record_linux_system_call(), reload_shared_libraries_1(), remote_target::remote_get_noisy_reply(), s390_linux_nat_target::remove_hw_breakpoint(), s390_linux_nat_target::remove_watchpoint(), mi_interp::resume(), run_under_shell(), s390_linux_syscall_record(), s390_process_record(), safe_parse_type(), save_gdb_index_command(), ser_base_read_error_fd(), set_architecture(), set_disassembler_options(), set_endian(), cli_interp_base::set_logging(), ada_catchpoint::should_stop_exception(), solib_event_probe_action(), solib_read_symbols(), solib_svr4_r_ldsomap(), solib_svr4_r_map(), solib_svr4_r_next(), start_event_loop(), stdin_event_handler(), store_register(), nto_procfs_target::store_registers(), svr4_find_and_create_probe_breakpoints(), svr4_handle_solib_event(), thread_db_find_new_threads_silently(), thumb_record_ldm_stm_swi(), thumb_record_misc(), tui_enable(), tui_getc(), tui_rl_switch_mode(), tui_setup_io(), update_breakpoint_locations(), update_solib_list(), varobj_create(), vwarning(), inf_ptrace_target::wait(), rs6000_nat_target::wait(), deferred_warnings::warn(), warn_cant_dump_core(), nbsd_nat_target::xfer_partial(), and complaint_interceptor::~complaint_interceptor().

◆ gdb_stdin

#define gdb_stdin   (*current_ui_gdb_stdin_ptr ())

Definition at line 184 of file utils.h.

Referenced by captured_main_1(), and ioscm_read_from_port().

◆ gdb_stdlog

#define gdb_stdlog   (*current_ui_gdb_stdlog_ptr ())

Definition at line 190 of file utils.h.

Referenced by aarch64_insert_hw_breakpoint(), aarch64_insert_watchpoint(), aarch64_remove_hw_breakpoint(), aarch64_remove_watchpoint(), line_header::add_file_name(), line_header::add_include_dir(), add_pe_exported_sym(), add_pe_forwarded_sym(), debug_target::always_non_stop_p(), amd_dbgapi_debug_module(), amd_dbgapi_lib_debug_module(), arm_process_record(), debug_target::async(), debug_target::async_wait_fd(), debug_target::attach_no_wait(), debug_target::augmented_libraries_svr4_read(), debug_target::auxv_parse(), bpf_push_dummy_call(), bpf_skip_prologue(), debug_target::btrace_conf(), gcc_cp_plugin::build_decl(), build_id_to_debug_bfd_1(), 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_callback(), record_full_base_target::close(), gdbsim_target::close(), debug_target::commit_resumed(), compile_cplus_debug_output(), compile_cplus_debug_output_1(), compile_cplus_debug_output_1(), compile_object_load(), compile_to_object(), convert_symbol_sym(), convert_symbol_sym(), debug_target::core_of_thread(), gdbsim_target::create_inferior(), csky_analyze_prologue(), csky_push_dummy_call(), cutu_reader::cutu_reader(), cutu_reader::cutu_reader(), darwin_dump_message(), debug_exp(), 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(), debug_val(), debug_vprintf(), target_ops_ref_policy::decref(), debug_target::delete_record(), debug_target::detach(), gdbsim_target::detach(), debug_target::disable_btrace(), debug_target::disable_tracepoint(), debug_target::disconnect(), skiplist_entry::do_skip_file_p(), skiplist_entry::do_skip_gfile_p(), debug_target::done_generating_core(), debug_target::download_trace_state_variable(), debug_target::download_tracepoint(), dsbt_current_sos(), objfile::dump(), die_info::dump(), dump_mem(), debug_target::dumpcore(), dwarf_finish_line(), dwarf_record_line_1(), enable_break(), debug_target::enable_btrace(), debug_target::enable_tracepoint(), compile_cplus_instance::enter_scope(), execute_fn_to_ui_file(), debug_target::execution_direction(), objfile::expand_all_symtabs(), objfile::expand_matching_symbols(), objfile::expand_symtabs_for_function(), objfile::expand_symtabs_matching(), objfile::expand_symtabs_with_fullname(), debug_target::extra_thread_info(), debug_target::fetch_memtags(), gdbsim_target::fetch_registers(), debug_target::fetch_registers(), fetch_regs_kernel_thread(), fetch_regs_user_thread(), debug_target::fetch_x86_xsave_layout(), gdbsim_target::files_info(), debug_target::files_info(), debug_target::filesystem_is_local(), objfile::find_compunit_symtab_by_address(), objfile::find_last_source_symtab(), debug_target::find_memory_regions(), find_new_threads_callback(), find_new_threads_once(), objfile::find_pc_sect_compunit_symtab(), find_separate_debug_file(), find_separate_debug_file_by_buildid(), find_unwind_entry(), gcc_cp_plugin::finish_class_type(), debug_target::flash_done(), debug_target::flash_erase(), debug_target::follow_exec(), debug_target::follow_fork(), objfile::forget_cached_source_info(), gcc_convert_symbol(), gcc_cplus_convert_symbol(), gcc_cplus_symbol_address(), gcc_symbol_address(), 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_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(), gdbsim_target_open(), gdbsim_xfer_memory(), 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(), 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(), record_full_base_target::goto_bookmark(), debug_target::goto_bookmark(), debug_target::goto_record(), debug_target::goto_record_begin(), debug_target::goto_record_end(), handle_notification(), objfile::has_partial_symbols(), debug_target::has_pending_events(), objfile::has_unexpanded_symtabs(), debug_target::have_steppable_watchpoint(), hppa_fallback_frame_cache(), hppa_frame_cache(), i386_process_record(), ia64_dummy_id(), ia64_frame_this_id(), ia64_sigtramp_frame_this_id(), ignore_probe_p(), inferior_debug(), 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(), interpreter_exec_cmd(), debug_target::interrupt(), debug_target::is_async_p(), record_full_core_target::kill(), gdbsim_target::kill(), debug_target::kill(), compile_cplus_instance::leave_scope(), lm_base(), gdbsim_target::load(), debug_target::load(), debug_target::log_command(), objfile::lookup_symbol(), debug_target::make_corefile_notes(), objfile::map_symbol_filenames(), objfile::map_symtabs_matching_filename(), mark_async_signal_handler(), debug_target::masked_watch_num_registers(), debug_target::memory_map(), mi_cmd_var_create(), mi_execute_cli_command(), mips_eabi_push_dummy_call(), mips_gdbarch_init(), mips_n32n64_push_dummy_call(), mips_o32_push_dummy_call(), mips_o64_push_dummy_call(), mips_show_dr(), mips_xfer_register(), gdbsim_target::mourn_inferior(), debug_target::mourn_inferior(), moxie_process_record(), nios2_analyze_prologue(), open_target(), or1k_frame_cache(), or1k_unwind_pc(), or1k_unwind_sp(), stap_probe::parse_arguments(), parse_exp_in_context(), 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_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(), debug_target::prepare_to_generate_core(), debug_target::prepare_to_store(), selftests::print_one_insn_test(), print_savedreg_msg(), objfile::print_stats(), scoped_command_stats::print_time(), debug_target::program_signals(), ptrace_check(), remote_target::push_stop_reply(), debug_target::ranged_break_num_registers(), debug_target::rcmd(), debug_target::read_btrace(), debug_target::read_description(), read_die_and_siblings(), read_pe_exported_syms(), read_toplevel_die(), 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_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(), debug_target::region_ok_for_hw_watchpoint(), 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(), debug_target::remove_hw_breakpoint(), debug_target::remove_mask_watchpoint(), debug_target::remove_vfork_catchpoint(), debug_target::remove_watchpoint(), reschedule(), mi_interp::resume(), debug_target::resume(), gdbsim_target::resume_one_inferior(), s390_process_record(), s390_record_address_mask(), debug_target::save_record(), record_full_base_target::save_record(), debug_target::save_trace_data(), debug_target::search_memory(), separate_debug_file_exists(), ser_base_async(), serial_readchar(), serial_write(), debug_target::set_circular_trace_buffer(), debug_target::set_disconnected_tracing(), cli_interp_base::set_logging(), debug_target::set_permissions(), debug_target::set_syscall_catchpoint(), debug_target::set_trace_buffer_size(), debug_target::set_trace_notes(), setup_sections_data::setup_one_section(), sigchld_handler(), skiplist_entry::skip_function_p(), gcc_cp_plugin::start_class_type(), 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(), gdbsim_target::store_registers(), debug_target::store_registers(), store_regs_kernel_thread(), store_regs_user_thread(), 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(), tailcall_dump(), target_debug_print_gdb_array_view_const_gdb_byte(), target_debug_print_signals(), target_debug_print_size_t(), target_debug_print_target_wait_flags(), target_debug_print_target_waitstatus_p(), 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(), 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(), thread_db_find_new_threads_silently(), thread_db_load_search(), 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(), try_thread_db_load(), try_thread_db_load_1(), tui_setup_io(), uninstall_variable(), debug_target::update_thread_list(), debug_target::upload_trace_state_variables(), debug_target::upload_tracepoints(), debug_target::use_agent(), debug_target::verify_memory(), debug_target::wait(), gdbsim_target::wait(), debug_target::watchpoint_addr_within_range(), debug_target::xfer_partial(), record_full_target::xfer_partial(), xtensa_push_dummy_call(), and scoped_command_stats::~scoped_command_stats().

◆ gdb_stdout

#define gdb_stdout   (*current_ui_gdb_stdout_ptr ())

Definition at line 182 of file utils.h.

Referenced by agent_eval_command_one(), apropos_command(), ATTRIBUTE_PRINTF(), ATTRIBUTE_PRINTF(), ATTRIBUTE_PRINTF(), backtrace_command_1(), call_site_find_chain(), captured_main_1(), child_terminal_info(), command_line_input(), deprecated_show_value_hack(), directory_command(), display_gdb_prompt(), do_examine(), do_one_display(), do_prefix_cmd(), do_show_command(), dwarf2_evaluate_loc_desc_full(), dwarf2_locexpr_baton_eval(), dwarf2_tailcall_sniffer_first(), echo_command(), source_cache::ensure(), cli_interp::exec(), execute_command(), execute_fn_to_ui_file(), partial_symtab::expand_dependencies(), find_command(), find_instruction_backward(), flush_streams(), frame_apply_command_count(), gcore_create_memtag_section_callback(), gdb_disassembly(), gdb_printf(), gdb_putc(), gdb_puts(), gdb_readline_no_editing(), gdb_vprintf(), generic_load(), handle_inferior_event(), handle_redirections(), help_command(), ignore_probes_command(), info_address_command(), info_args_command(), info_auxv_command(), info_command(), info_common_command_for_block(), info_float_command(), info_frame_command_core(), info_line_command(), info_locals_command(), info_macro_command(), info_scope_command(), info_task(), info_vector_command(), mi_interp::init(), tui_interp::init(), init_page_info(), interpreter_exec_cmd(), ioscm_read_from_port(), ioscm_with_output_to_port_worker(), ioscm_write(), language_info(), maint_agent_printf_command(), maint_print_all_sections(), maintenance_check_symtabs(), maintenance_info_psymtabs(), maintenance_info_screen(), maintenance_info_symtabs(), maintenance_print_architecture(), maintenance_print_dummy_frames(), maintenance_print_msymbols(), maintenance_print_psymbols(), maintenance_print_record_instruction(), maintenance_print_reggroups(), maintenance_print_symbols(), maintenance_test_options_command_mode(), memory_tag_command(), output_command(), print_flush(), print_frame_info(), print_gdb_help(), print_macro_definition(), print_one_vtable(), print_return_value(), print_section_info(), print_value(), printf_command(), printf_unfiltered(), proceed(), psymtab_to_symtab(), stderr_file::puts(), regcache_print(), registers_info(), reread_symbols(), cli_interp::resume(), mi_interp::resume(), tui_interp::resume(), set_architecture(), set_endian(), cli_interp_base::set_logging(), set_source(), show_configuration(), show_convenience(), show_source(), show_user(), show_user_1(), show_values(), show_version(), symbol_file_add_with_addrs(), tfind_line_command(), thread_try_catch_cmd(), tui_disassemble(), tui_initialize_io(), tui_layout_command(), tui_setup_io(), tui_window_command(), user_select_syms(), whatis_exp(), and stderr_file::write().

Enumeration Type Documentation

◆ resource_limit_kind

Enumerator
LIMIT_CUR 
LIMIT_MAX 

Definition at line 312 of file utils.h.

◆ strncmp_iw_mode

enum class strncmp_iw_mode
strong
Enumerator
NORMAL 
MATCH_PARAMS 

Definition at line 36 of file utils.h.

Function Documentation

◆ assign_return_if_changed()

template<typename T >
bool assign_return_if_changed ( T & lval,
const T & val )

Definition at line 367 of file utils.h.

◆ assign_set_if_changed()

template<typename T >
void assign_set_if_changed ( T & lval,
const T & val,
bool & changed )

Definition at line 354 of file utils.h.

◆ begin_line()

int int int void begin_line ( void )
extern

◆ can_dump_core()

int can_dump_core ( enum resource_limit_kind limit_kind)
extern

Definition at line 207 of file utils.c.

References LIMIT_CUR, and LIMIT_MAX.

Referenced by can_dump_core_warn().

◆ copy_bitwise()

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

◆ count_path_elements()

int count_path_elements ( const char * path)
extern

Definition at line 3516 of file utils.c.

Referenced by compare_glob_filenames_for_search().

◆ current_ui_gdb_stderr_ptr()

struct ui_file ** current_ui_gdb_stderr_ptr ( void )
extern

Definition at line 112 of file top.c.

References current_ui, and ui::m_gdb_stderr.

◆ current_ui_gdb_stdin_ptr()

struct ui_file ** current_ui_gdb_stdin_ptr ( void )
extern

Definition at line 106 of file top.c.

References current_ui, and ui::m_gdb_stdin.

◆ current_ui_gdb_stdlog_ptr()

struct ui_file ** current_ui_gdb_stdlog_ptr ( void )
extern

Definition at line 118 of file top.c.

References current_ui, and ui::m_gdb_stdlog.

◆ current_ui_gdb_stdout_ptr()

struct ui_file ** current_ui_gdb_stdout_ptr ( void )
extern

Definition at line 100 of file top.c.

References current_ui, and ui::m_gdb_stdout.

◆ demangler_vwarning()

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

◆ demangler_warning()

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

◆ dump_core()

void dump_core ( void )
extern

Definition at line 185 of file utils.c.

Referenced by ATTRIBUTE_PRINTF().

◆ filtered_printing_initialized()

int filtered_printing_initialized ( void )
extern

Definition at line 1194 of file utils.c.

References filter_initialized.

Referenced by ATTRIBUTE_PRINTF().

◆ fprintf_styled()

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

◆ fprintf_symbol()

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

◆ fputs_highlighted()

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

◆ fputs_styled()

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

◆ gdb_filename_fnmatch()

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

◆ gdb_flush()

void gdb_flush ( struct ui_file * stream)
extern

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 void void void gdb_printf ( const char * ,
... )
extern

◆ gdb_printf() [2/2]

void void void gdb_printf ( struct ui_file * ,
const char * ,
... )
extern

◆ gdb_putc() [1/2]

void gdb_putc ( int c)
extern

◆ gdb_putc() [2/2]

void gdb_putc ( int c,
struct ui_file * stream )
extern

Definition at line 1868 of file utils.c.

References ui_file::putc().

◆ gdb_puts() [1/2]

void gdb_puts ( const char * string)
extern

Definition at line 1939 of file utils.c.

References gdb_stdout.

◆ gdb_puts() [2/2]

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

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_vprintf() [1/2]

void gdb_vprintf ( const char * ,
va_list  )
extern

◆ gdb_vprintf() [2/2]

void void gdb_vprintf ( struct ui_file * ,
const char * ,
va_list  )
extern

◆ get_chars_per_line()

int get_chars_per_line ( )
extern

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().

◆ init_page_info()

void init_page_info ( void )
extern

◆ ldirname()

std::string ldirname ( const char * filename)

◆ myread()

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

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)
extern

◆ nquery()

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

◆ paddress()

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

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 )
extern

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)
extern

◆ perror_warning_with_name()

void perror_warning_with_name ( const char * string)
extern

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 )
extern

◆ print_spaces()

void void void void void void print_spaces ( int n,
struct ui_file * stream )
extern

◆ printf_unfiltered()

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

◆ puts_tabular()

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

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 * ,
... )
extern

◆ reinitialize_more_filter()

void reinitialize_more_filter ( void )
extern

◆ 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_screen_width_and_height()

void set_screen_width_and_height ( int width,
int height )
extern

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().

◆ strcmp_iw()

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

◆ strcmp_iw_ordered()

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

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)
extern

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 )
extern

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 )
extern

◆ 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,
completion_match_for_lcd * match_for_lcd = NULL,
bool ignore_template_params = false )
extern

◆ substitute_path_component()

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

Definition at line 3354 of file utils.c.

References xrealloc().

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

◆ warn_cant_dump_core()

void warn_cant_dump_core ( const char * reason)
extern

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 )
extern

◆ wrap_here()

void wrap_here ( int )
extern

◆ yquery()

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

Variable Documentation

◆ debug_timestamp

bool debug_timestamp
extern

Definition at line 102 of file utils.c.

Referenced by timestamped_file::write().

◆ deprecated_error_begin_hook

void(* deprecated_error_begin_hook) (void) ( void )
extern

Definition at line 85 of file utils.c.

Referenced by clear_interpreter_hooks(), and print_flush().

◆ gdb_stdtarg

struct ui_file* gdb_stdtarg
extern

◆ gdb_stdtargerr

struct ui_file* gdb_stdtargerr
extern

◆ gdb_stdtargin

struct ui_file* gdb_stdtargin
extern

Definition at line 79 of file main.c.

Referenced by captured_main_1(), and remote_fileio_func_read().

◆ pagination_enabled

bool pagination_enabled
extern

◆ readline_hidden_cols

int readline_hidden_cols
extern

Definition at line 1119 of file utils.c.

Referenced by init_page_info(), and tui_resize_all().

◆ sevenbit_strings

bool sevenbit_strings
extern

◆ warning_pre_print

const char* warning_pre_print
extern

Definition at line 120 of file utils.c.

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