|
GDB (xrefs)
|
#include "defs.h"#include <ctype.h>#include "gdb_wait.h"#include "event-top.h"#include "gdbthread.h"#include "fnmatch.h"#include "gdb_bfd.h"#include <sys/resource.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 "gdb_obstack.h"#include "gdbcore.h"#include "top.h"#include "main.h"#include "solist.h"#include "inferior.h"#include "gdb_curses.h"#include "readline/readline.h"#include <chrono>#include "gdb_usleep.h"#include "interps.h"#include "gdb_regex.h"#include "job-control.h"#include "common/selftest.h"#include "common/gdb_optional.h"#include "cp-support.h"#include <algorithm>Go to the source code of this file.
Classes | |
| struct | internal_problem |
| class | scoped_input_handler |
Macros | |
| #define | AMBIGUOUS_MESS1 ".\nMatching formats:" |
| #define | AMBIGUOUS_MESS2 ".\nUse \"set gnutarget format-name\" to specify the format." |
Functions | |
| static void | vfprintf_maybe_filtered (static void fputs_maybe_filtered(const char struct ui_file *, const char *, va_list, int) |
| static void | show_pagination_enabled (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
| static void | do_free_section_addr_info (void *arg) |
| struct cleanup * | make_cleanup_free_section_addr_info (struct section_addr_info *addrs) |
| static void | do_unpush_target (void *arg) |
| struct cleanup * | make_cleanup_unpush_target (struct target_ops *ops) |
| static void | do_value_free_to_mark (void *value) |
| struct cleanup * | make_cleanup_value_free_to_mark (struct value *mark) |
| void | free_current_contents (void *ptr) |
| void | vwarning (const char *string, va_list args) |
| void | verror (const char *string, va_list args) |
| void | error_stream (const string_file &stream) |
| 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 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 | set_internal_problem_cmd (const char *args, int from_tty) |
| static void | show_internal_problem_cmd (const char *args, int from_tty) |
| static void | add_internal_problem_command (struct internal_problem *problem) |
| static std::string | perror_string (const char *prefix) |
| void | throw_perror_with_name (enum errors errcode, const char *string) |
| void | perror_with_name (const char *string) |
| void | perror_warning_with_name (const char *string) |
| void | print_sys_errmsg (const char *string, int errcode) |
| void | quit (void) |
| void | maybe_quit (void) |
| void | malloc_failure (long size) |
| int | myread (int desc, char *addr, int len) |
| void | print_spaces (int n, struct ui_file *file) |
| void | gdb_print_host_address_1 (const void *addr, struct ui_file *stream) |
| char * | make_hex_string (const gdb_byte *data, size_t length) |
| 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 | printchar (int c, void(*do_fputs)(const char *, struct ui_file *), void(*do_fprintf)(struct ui_file *, const char *,...) ATTRIBUTE_FPTR_PRINTF_2, struct ui_file *stream, int quoter) |
| void | fputstr_filtered (const char *str, int quoter, struct ui_file *stream) |
| void | fputstr_unfiltered (const char *str, int quoter, struct ui_file *stream) |
| void | fputstrn_filtered (const char *str, int n, int quoter, struct ui_file *stream) |
| void | fputstrn_unfiltered (const char *str, int n, int quoter, struct ui_file *stream) |
| 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_screen_size (void) |
| static void | set_width (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 | prompt_for_continue (void) |
| 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 | wrap_here (const char *indent) |
| void | puts_filtered_tabular (char *string, int width, int right) |
| void | begin_line (void) |
| static void | fputs_maybe_filtered (const char *linebuffer, struct ui_file *stream, int filter) |
| void | fputs_filtered (const char *linebuffer, struct ui_file *stream) |
| int | putchar_unfiltered (int c) |
| int | putchar_filtered (int c) |
| int | fputc_unfiltered (int c, struct ui_file *stream) |
| int | fputc_filtered (int c, struct ui_file *stream) |
| void | puts_debug (char *prefix, char *string, char *suffix) |
| static void | vfprintf_maybe_filtered (struct ui_file *stream, const char *format, va_list args, int filter) |
| void | vfprintf_filtered (struct ui_file *stream, const char *format, va_list args) |
| void | vfprintf_unfiltered (struct ui_file *stream, const char *format, va_list args) |
| void | vprintf_filtered (const char *format, va_list args) |
| void | vprintf_unfiltered (const char *format, va_list args) |
| void | fprintf_filtered (struct ui_file *stream, const char *format,...) |
| void | fprintf_unfiltered (struct ui_file *stream, const char *format,...) |
| void | fprintfi_filtered (int spaces, struct ui_file *stream, const char *format,...) |
| void | printf_filtered (const char *format,...) |
| void | printf_unfiltered (const char *format,...) |
| void | printfi_filtered (int spaces, const char *format,...) |
| void | puts_filtered (const char *string) |
| void | puts_unfiltered (const char *string) |
| char * | n_spaces (int n) |
| void | print_spaces_filtered (int n, struct ui_file *stream) |
| void | fprintf_symbol_filtered (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) |
| 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) |
| 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) |
| int | streq (const char *lhs, const char *rhs) |
| int | subset_compare (const char *string_to_compare, const char *template_string) |
| static void | show_debug_timestamp (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
| void | initialize_utils (void) |
| CORE_ADDR | address_significant (gdbarch *gdbarch, CORE_ADDR addr) |
| const char * | paddress (struct gdbarch *gdbarch, CORE_ADDR addr) |
| const char * | print_core_address (struct gdbarch *gdbarch, CORE_ADDR address) |
| hashval_t | core_addr_hash (const void *ap) |
| int | core_addr_eq (const void *ap, const void *bp) |
| CORE_ADDR | string_to_core_addr (const char *my_string) |
| gdb::unique_xmalloc_ptr< char > | gdb_realpath (const char *filename) |
| gdb::unique_xmalloc_ptr< char > | gdb_realpath_keepfile (const char *filename) |
| gdb::unique_xmalloc_ptr< char > | gdb_abspath (const char *path) |
| ULONGEST | align_up (ULONGEST v, int n) |
| ULONGEST | align_down (ULONGEST v, int n) |
| void * | hashtab_obstack_allocate (void *data, size_t size, size_t count) |
| void | dummy_obstack_deallocate (void *object, void *data) |
| std::string | ldirname (const char *filename) |
| int | compare_positive_ints (const void *ap, const void *bp) |
| int | compare_strings (const void *arg1, const void *arg2) |
| const char * | gdb_bfd_errmsg (bfd_error_type error_tag, char **matching) |
| int | parse_pid_to_attach (const char *args) |
| static void | do_bpstat_clear_actions_cleanup (void *unused) |
| struct cleanup * | make_bpstat_clear_actions_cleanup (void) |
| static void | do_free_char_ptr_vec (void *arg) |
| struct cleanup * | make_cleanup_free_char_ptr_vec (VEC(char_ptr) *char_ptr_vec) |
| void | substitute_path_component (char **stringp, const char *from, const char *to) |
| pid_t | wait_to_die_with_timeout (pid_t pid, int *status, int timeout) |
| 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 | _initialize_utils (void) |
Variables | |
| void(* | deprecated_error_begin_hook )(void) |
| const char * | warning_pre_print = "\nwarning: " |
| int | pagination_enabled = 1 |
| 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 char * | wrap_buffer |
| static char * | wrap_pointer |
| static const char * | wrap_indent |
| static int | wrap_column |
| #define AMBIGUOUS_MESS1 ".\nMatching formats:" |
Definition at line 3095 of file utils.c.
Referenced by gdb_bfd_errmsg().
| #define AMBIGUOUS_MESS2 ".\nUse \"set gnutarget format-name\" to specify the format." |
Definition at line 3096 of file utils.c.
Referenced by gdb_bfd_errmsg().
| void _initialize_utils | ( | void | ) |
Definition at line 3435 of file utils.c.
References add_internal_problem_command(), demangler_warning_problem, internal_error_problem, internal_warning_problem, and selftests::register_test().
|
static |
Definition at line 263 of file utils.c.
References current_ui, fputs_unfiltered(), and gdb_stderr.
Referenced by ATTRIBUTE_PRINTF().
|
static |
Definition at line 580 of file utils.c.
References _, add_prefix_cmd(), add_setshow_enum_cmd(), class_maintenance, internal_problem_modes, maintenance_set_cmdlist, maintenance_show_cmdlist, internal_problem::name, set_internal_problem_cmd(), internal_problem::should_dump_core, internal_problem::should_quit, show_internal_problem_cmd(), internal_problem::user_settable_should_dump_core, internal_problem::user_settable_should_quit, xfree(), XNEW, and xstrprintf().
Referenced by _initialize_utils().
Definition at line 2730 of file utils.c.
References gdbarch_significant_addr_bit(), and HOST_CHAR_BIT.
Referenced by adjust_breakpoint_address(), memory_xfer_partial(), and update_watchpoint().
Definition at line 3005 of file utils.c.
References gdb_assert.
Referenced by aarch64_push_dummy_call(), arc_frame_align(), arc_insn_get_branch_target(), frv_frame_align(), frv_push_dummy_call(), h8300_push_dummy_call(), hppa_linux_sigtramp_find_sigcontext(), i386_darwin_push_dummy_call(), m88k_store_arguments(), mips_eabi_push_dummy_call(), mips_frame_align(), mips_n32n64_push_dummy_call(), mips_o32_push_dummy_call(), mips_o64_push_dummy_call(), msp430_frame_align(), msp430_push_dummy_call(), mt_frame_align(), nds32_frame_align(), nds32_push_dummy_call(), nios2_frame_align(), or1k_frame_align(), ppc64_sysv_abi_push_dummy_call(), ppc_sysv_abi_push_dummy_call(), rl78_frame_align(), rs6000_lynx178_push_dummy_call(), rx_push_dummy_call(), s390_handle_arg(), s390_push_dummy_call(), score_adjust_breakpoint_address(), score_frame_align(), score_push_dummy_call(), tic6x_frame_align(), tic6x_push_dummy_call(), and xtensa_push_dummy_call().
Definition at line 2997 of file utils.c.
References gdb_assert.
Referenced by arc_push_dummy_call(), ctf_save_align_write(), frv_push_dummy_call(), h8300_push_dummy_call(), hppa32_frame_align(), hppa32_push_dummy_call(), hppa64_frame_align(), hppa64_push_dummy_call(), i386_darwin_push_dummy_call(), i386_push_dummy_call(), mips_eabi_push_dummy_call(), mips_n32n64_push_dummy_call(), mips_o32_push_dummy_call(), mips_o64_push_dummy_call(), nds32_push_dummy_call(), nios2_push_dummy_call(), or1k_push_dummy_call(), pass_on_stack(), ppc64_sysv_abi_push_param(), ppc64_sysv_abi_push_val(), ppc_linux_spe_context(), ppc_sysv_abi_push_dummy_call(), rs6000_lynx178_push_dummy_call(), rx_push_dummy_call(), s390_handle_arg(), s390_sigtramp_frame_unwind_cache(), score_push_dummy_call(), spu_push_dummy_call(), store_register(), tic6x_push_dummy_call(), and tilegx_push_dummy_call().
|
static |
Definition at line 374 of file utils.c.
References _, abort_with_message(), begin_line(), can_dump_core_warn(), confirm, current_ui, dump_core(), gdb::optional< T >::emplace(), filtered_printing_initialized(), fprintf_unfiltered(), fputs_unfiltered(), gdb_stderr, internal_error(), internal_problem_ask, internal_problem_no, internal_problem_yes, LIMIT_MAX, target_terminal::ours_for_output(), query(), REPORT_BUGS_TO, string, string_printf(), string_vprintf(), and target_supports_terminal_ours().
|
static |
Definition at line 890 of file utils.c.
References _, annotation_level, confirm, current_ui, deprecated_query_hook, gdb_flush(), gdb_readline_wrapper(), gdb_stdout, input_interactive_p(), ui::instream, main_ui, target_terminal::ours_for_output(), printf_filtered(), server_command, ui::stdin_stream, string, string_printf(), string_vprintf(), vfprintf_filtered(), wrap_here(), and xfree().
| void begin_line | ( | void | ) |
Definition at line 1682 of file utils.c.
References chars_printed, and puts_filtered().
Referenced by ATTRIBUTE_PRINTF(), gdb_demangle(), gdbpy_print_stack(), info_classes_command(), and info_selectors_command().
| int can_dump_core | ( | enum resource_limit_kind | limit_kind | ) |
Definition at line 293 of file utils.c.
References LIMIT_CUR, and LIMIT_MAX.
Referenced by can_dump_core_warn(), and gdb_demangle().
|
static |
Definition at line 332 of file utils.c.
References can_dump_core(), and warn_cant_dump_core().
Referenced by ATTRIBUTE_PRINTF().
| int compare_positive_ints | ( | const void * | ap, |
| const void * | bp | ||
| ) |
| int compare_strings | ( | const void * | arg1, |
| const void * | arg2 | ||
| ) |
Definition at line 3087 of file utils.c.
Referenced by uniquify_strings().
| int core_addr_eq | ( | const void * | ap, |
| const void * | bp | ||
| ) |
| hashval_t core_addr_hash | ( | const void * | ap | ) |
Definition at line 2785 of file utils.c.
Referenced by read_call_site_scope().
| int count_path_elements | ( | const char * | path | ) |
Definition at line 3365 of file utils.c.
Referenced by compare_glob_filenames_for_search().
|
static |
Definition at line 2239 of file utils.c.
References CP_OPERATOR_LEN, CP_OPERATOR_STR, and valid_identifier_name_char().
Referenced by strncmp_iw_with_mode().
|
static |
Definition at line 2171 of file utils.c.
References token, and valid_identifier_name_char().
Referenced by strncmp_iw_with_mode().
| void demangler_vwarning | ( | const char * | file, |
| int | line, | ||
| const char * | fmt, | ||
| va_list | ap | ||
| ) |
Definition at line 537 of file utils.c.
References demangler_warning_problem.
Referenced by demangler_warning().
| void demangler_warning | ( | const char * | file, |
| int | line, | ||
| const char * | string, | ||
| ... | |||
| ) |
Definition at line 543 of file utils.c.
References demangler_vwarning().
Referenced by gdb_demangle(), and maintenance_demangler_warning().
|
static |
Definition at line 3159 of file utils.c.
References bpstat_clear_actions().
Referenced by make_bpstat_clear_actions_cleanup().
|
static |
Definition at line 3177 of file utils.c.
References cleanup::arg, free_char_ptr_vec(), and VEC.
Referenced by make_cleanup_free_char_ptr_vec().
|
static |
Definition at line 144 of file utils.c.
References free_section_addr_info().
Referenced by make_cleanup_free_section_addr_info().
|
static |
Definition at line 158 of file utils.c.
References unpush_target().
Referenced by make_cleanup_unpush_target().
|
static |
Definition at line 176 of file utils.c.
References value_free_to_mark().
Referenced by make_cleanup_value_free_to_mark().
| void dummy_obstack_deallocate | ( | void * | object, |
| void * | data | ||
| ) |
Definition at line 3031 of file utils.c.
Referenced by allocate_dwo_file_hash_table(), allocate_dwo_unit_table(), allocate_dwp_loaded_cutus_table(), allocate_signatured_type_table(), allocate_type_unit_groups_table(), create_copied_types_hash(), dwarf2_add_dependence(), elf_gnu_ifunc_record_cache(), handle_DW_AT_stmt_list(), load_full_comp_unit_reader(), load_partial_dies(), read_signatured_type_reader(), and set_die_type().
| void dump_core | ( | void | ) |
Definition at line 276 of file utils.c.
Referenced by ATTRIBUTE_PRINTF(), and gdb_demangle_signal_handler().
| void error_stream | ( | const string_file & | stream | ) |
Definition at line 255 of file utils.c.
References string_file::c_str(), and error().
Referenced by insert_breakpoint_locations(), mi_cmd_execute(), and update_inserted_breakpoint_locations().
| int filtered_printing_initialized | ( | void | ) |
Definition at line 1399 of file utils.c.
References wrap_buffer.
Referenced by ATTRIBUTE_PRINTF(), print_flush(), and vwarning().
| void fprintf_filtered | ( | struct ui_file * | stream, |
| const char * | format, | ||
| ... | |||
| ) |
Definition at line 2008 of file utils.c.
References vfprintf_filtered().
Referenced by ada_dump_subexp_body(), ada_emit_char(), ada_print_array_index(), ada_print_floating(), ada_print_scalar(), ada_print_subexp(), ada_print_symbol_signature(), ada_print_type(), ada_print_typedef(), ada_val_print(), ada_val_print_array(), ada_val_print_enum(), ada_val_print_gnat_array(), ada_val_print_num(), ada_val_print_ptr(), ada_val_print_struct_union(), ada_value_print(), annotate_error_begin(), arm_print_float_info(), arm_show_abi(), arm_show_fallback_mode(), arm_show_force_mode(), ax_print(), build_table(), c_print_type_struct_field_offset(), c_print_type_union_field_offset(), 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_val_print_array(), c_val_print_union(), c_value_print(), cmd_show_replay_memory_access(), complaints_show_value(), cp_print_class_member(), cp_print_value(), cp_print_value_fields(), cp_type_print_derivation_info(), cp_type_print_method_args(), debug_qf_dump(), debug_qf_expand_all_symtabs(), debug_qf_expand_symtabs_for_function(), debug_qf_expand_symtabs_matching(), debug_qf_expand_symtabs_with_fullname(), debug_qf_find_compunit_symtab_by_address(), debug_qf_find_last_source_symtab(), debug_qf_find_pc_sect_compunit_symtab(), debug_qf_forget_cached_source_info(), debug_qf_has_symbols(), debug_qf_lookup_symbol(), debug_qf_map_matching_symbols(), debug_qf_map_symbol_filenames(), debug_qf_map_symtabs_matching_filename(), debug_qf_print_stats(), debug_qf_relocate(), 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_read_psymbols(), debug_sym_relocate(), default_print_array_index(), default_print_float_info(), default_print_one_register_info(), disassemble_dwarf_expression(), do_attach(), do_one_display(), dump_msymbols(), dump_prefix_expression(), dump_psymtab(), dump_psymtab_addrmap(), dump_psymtab_addrmap_1(), dump_raw_expression(), dump_subexp(), dump_subexp_body_standard(), dump_symtab_1(), emit_octal_digit(), f77_print_array_1(), f_type_print_base(), f_type_print_varspec_prefix(), f_type_print_varspec_suffix(), f_val_print(), fbsd_find_memory_regions(), find_oload_champ(), follow_fork_inferior(), fprint_auxv_entry(), fputstr_filtered(), fputstrn_filtered(), gcore_command(), gcore_create_callback(), gdb_print_host_address_1(), gdbpy_print_stack(), gdbpy_write(), gdbscm_execute_objfile_script(), gdbscm_source_objfile_script(), gen_ret_current_ui_field_ptr(), generate_register_struct(), generic_val_print(), generic_val_print_char(), generic_val_print_complex(), generic_val_print_func(), get_core_registers(), get_set_value(), get_show_value(), gnuv3_print_method_ptr(), h8300_print_register(), handle_inferior_event_1(), handle_vfork_child_exec_or_exit(), hardwire_print_tty_state(), help_all(), help_cmd(), help_list(), i387_print_float_info(), info_frame_command(), info_macro_command(), info_scope_command(), insert_bp_location(), locexpr_describe_location_1(), locexpr_describe_location_piece(), loclist_describe_location(), m2_array(), m2_emit_char(), m2_enum(), m2_long_set(), m2_pointer(), m2_print_array_contents(), m2_print_long_set(), m2_print_typedef(), m2_print_unbounded_array(), m2_printstr(), m2_procedure(), m2_range(), m2_record_fields(), m2_ref(), m2_short_set(), m2_union(), m2_unknown(), m2_val_print(), m68hc11_print_register(), m68hc11_print_registers_info(), maint_show_target_async_command(), maint_show_target_non_stop_command(), mips_eabi_push_dummy_call(), mips_n32n64_push_dummy_call(), mips_o32_push_dummy_call(), mips_o64_push_dummy_call(), mips_print_float_info(), mips_print_fp_register(), mips_print_register(), mips_print_registers_info(), mt_registers_info(), output_access_specifier(), pascal_object_print_value(), pascal_object_print_value_fields(), pascal_one_char(), pascal_print_func_args(), pascal_print_typedef(), pascal_printstr(), pascal_type_print_base(), pascal_type_print_derivation_info(), pascal_type_print_func_varspec_suffix(), pascal_type_print_varspec_prefix(), pascal_type_print_varspec_suffix(), pascal_val_print(), pascal_value_print(), pascm_set_func(), pascm_show_func(), ppscm_print_children(), ppscm_print_exception_unless_memory_error(), print_address_symbolic(), print_array_type(), print_children(), print_choices(), print_decimal_chars(), print_dynamic_range_bound(), print_enum_type(), print_exception(), print_field_values(), print_fixed_point_type(), print_fp_register_row(), print_frame_arg_vars(), print_frame_local_vars(), print_frame_nameless_args(), print_func_type(), print_gdb_configuration(), print_gdb_version(), print_gp_register_row(), print_help_for_command(), print_hex_chars(), print_i387_control_word(), print_i387_ext(), print_i387_status_word(), print_i387_value(), print_inferior_quit_action(), print_macro_definition(), print_one_macro(), print_optional_low_bound(), print_partial_symbols(), print_range(), print_range_bound(), print_range_type(), print_record_type(), print_recreate_exception(), print_ref_address(), print_selected_record_field_types(), print_stack_unless_memory_error(), print_subexp_standard(), print_symbol(), print_type_scalar(), print_unchecked_union_type(), print_unpacked_pointer(), print_variable_and_value(), print_variable_at_address(), print_variant_clauses(), print_variant_part(), print_vector_info(), printf_c_string(), printf_pointer(), printf_wide_c_string(), printstr(), range_error(), rank_one_type(), rust_dump_subexp_body(), rust_emitchar(), rust_print_struct_def(), rust_print_subexp(), rust_print_type(), rust_print_typedef(), rust_val_print(), serial_baud_show_cmd(), set_disassembler_options(), sh64_do_cr_c_register_info(), sh64_do_fp_register(), sh64_do_pseudo_register(), sh64_do_register(), show_aarch64_debug(), show_addressprint(), show_always_inserted_mode(), show_annotation_level(), show_architecture(), 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_bfd_cache_debug(), show_bfd_sharing(), 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_compile_args(), show_compile_debug(), show_compile_gcc(), show_condition_evaluation_mode(), show_convenience(), show_cwd_command(), show_dcache_enabled_p(), show_debug_auto_load(), show_debug_coff_pe_read(), show_debug_displaced(), show_debug_file_directory(), show_debug_infrun(), show_debug_linux_nat(), show_debug_symfile(), show_debug_timestamp(), show_debug_xml(), show_demangle(), show_demangling_style_names(), show_disable_randomization(), show_disassemble_next_line(), show_disassembler_options_sfunc(), show_dsbt_debug(), show_dump_excluded_mappings(), show_dwarf_always_disassemble(), show_dwarf_max_cache_age(), show_editing(), show_entry_values_debug(), show_exec_direction_func(), show_exec_done_display_p(), show_expressiondebug(), show_ext_args(), show_filename_display_string(), show_follow_exec_mode_string(), show_follow_fork_mode_string(), show_fp_model(), show_frame_debug(), show_gdb_datadir(), show_gdbarch_debug(), show_gnutarget_string(), show_history_expansion_p(), show_history_filename(), show_history_remove_duplicates(), show_history_size(), show_host_charset_name(), show_inaccessible_by_default(), 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_filename(), show_logging_overwrite(), show_logging_redirect(), show_maint_btrace_pt_skip_pad(), show_maint_show_all_tib(), show_maintenance_profile_p(), show_max_symbolic_offset(), show_max_user_call_depth(), show_max_value_size(), show_mi_async_command(), show_mips_abi(), show_mips_compression(), 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_pagination_enabled(), show_parserdebug(), show_pascal_static_field_print(), show_pending_break_support(), show_powerpc_exact_watchpoints(), show_pp_source_pos(), show_prettyformat_arrays(), show_prettyformat_structs(), show_print_array_indexes(), show_print_inferior_events(), show_print_max(), show_print_symbol_filename(), show_print_thread_events(), show_print_type_methods(), show_print_type_nested_types(), show_print_type_typedefs(), show_prompt(), 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_timeout(), show_repeat_count_threshold(), show_schedule_multiple(), show_scheduler_mode(), show_script_ext_mode(), show_solib_aix_debug(), show_solib_search_path(), show_spu_auto_flush_cache(), show_spu_stop_on_load(), show_stack_cache(), show_stapexpressiondebug(), 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_strict_type_checking(), show_symbol_print(), show_target_charset_name(), show_target_file_system_kind_command(), show_target_wide_charset_name(), show_targetdebug(), show_trust_readonly(), show_tui_active_border_mode(), show_tui_border_kind(), show_tui_border_mode(), show_unionprint(), show_unwind_on_signal_p(), show_unwind_on_terminating_exception_p(), show_use_coredump_filter(), show_user_1(), show_varobjdebug(), show_vtblprint(), show_watchdog(), show_write_files(), show_write_history_p(), type_print_unknown_return_type(), ui_printf(), val_print(), val_print_array_elements(), val_print_invalid_address(), val_print_not_allocated(), val_print_not_associated(), val_print_not_saved(), val_print_optimized_out(), val_print_packed_array_elements(), val_print_string(), val_print_struct(), val_print_type_code_flags(), val_print_unavailable(), value_check_printable(), and whatis_exp().
| void fprintf_symbol_filtered | ( | struct ui_file * | stream, |
| const char * | name, | ||
| enum language | lang, | ||
| int | arg_mode | ||
| ) |
Definition at line 2134 of file utils.c.
References demangle, fputs_filtered(), language_def(), language_demangle(), name, and xfree().
Referenced by cp_print_value_fields(), cp_type_print_method_args(), info_address_command(), info_frame_command(), pascal_object_print_value_fields(), print_frame(), print_frame_arg(), and py_print_single_arg().
| void fprintf_unfiltered | ( | struct ui_file * | stream, |
| const char * | format, | ||
| ... | |||
| ) |
Definition at line 2018 of file utils.c.
References vfprintf_unfiltered().
Referenced by _initialize_sol_thread(), aarch64_dump_tdep(), aarch64_linux_insert_hw_breakpoint(), aarch64_linux_insert_watchpoint(), aarch64_linux_remove_hw_breakpoint(), aarch64_linux_remove_watchpoint(), line_header::add_file_name(), line_header::add_include_dir(), add_path(), add_pe_exported_sym(), add_pe_forwarded_sym(), allocate_compunit_symtab(), allocate_psymtab(), allocate_symtab(), 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(), arc_dump_tdep(), arc_insn_get_branch_target(), arm_analyze_prologue(), arm_copy_alu_imm(), arm_copy_alu_reg(), arm_copy_alu_shifted_reg(), arm_copy_b_bl_blx(), arm_copy_block_xfer(), arm_copy_bx_blx_reg(), arm_copy_copro_load_store(), arm_copy_extra_ld_st(), arm_copy_ldr_str_ldrb_strb(), arm_copy_preload(), arm_copy_preload_reg(), arm_copy_svc(), arm_copy_undef(), arm_copy_unmodified(), arm_copy_unpred(), arm_displaced_init_closure(), arm_dump_tdep(), arm_linux_cleanup_svc(), arm_linux_copy_svc(), arm_linux_displaced_step_copy_insn(), arm_pc_is_thumb(), arm_process_displaced_insn(), arm_process_record(), arm_push_dummy_call(), attach_proc_task_lwp_callback(), ATTRIBUTE_PRINTF(), auto_load_objfile_script(), auto_load_objfile_script_1(), auto_load_safe_path_vec_update(), avr_io_reg_read_command(), avr_scan_prologue(), bkpt_print_recreate(), BP_MANIPULATION_ENDIAN(), build_table(), build_type_psymtabs_1(), captured_main_1(), captured_mi_execute_command(), chain_candidate(), check_binary_download(), check_zombie_leaders(), child_terminal_ours_1(), cleanup_block_load_all(), cleanup_block_load_pc(), cleanup_block_store_pc(), cleanup_svc(), clear_proceed_status_thread(), clear_step_over_info(), compile_object_load(), compile_to_object(), compute_frame_id(), context_switch(), convert_symbol_sym(), cp_lookup_nested_symbol(), cp_lookup_symbol_imports_or_template(), cp_lookup_symbol_namespace(), cp_lookup_symbol_nonlocal(), create_cus_hash_table(), create_debug_type_hash_table(), create_dwo_cu_reader(), create_dwo_unit_in_dwp_v1(), create_dwo_unit_in_dwp_v2(), create_new_frame(), create_sentinel_frame(), cris_dump_tdep(), cris_supply_gregset(), darwin_execvp(), dbx_psymtab_to_symtab_1(), dbx_read_symtab(), debug_always_non_stop_p(), debug_async(), debug_augmented_libraries_svr4_read(), debug_auxv_parse(), debug_btrace_conf(), debug_call_history(), debug_call_history_from(), debug_call_history_range(), debug_can_accel_watchpoint_condition(), debug_can_async_p(), debug_can_do_single_step(), debug_can_download_tracepoint(), debug_can_execute_reverse(), debug_can_run(), debug_can_run_breakpoint_commands(), debug_can_use_agent(), debug_can_use_hw_breakpoint(), debug_commit_resume(), debug_core_of_thread(), debug_delete_record(), debug_detach(), debug_disable_btrace(), debug_disable_tracepoint(), debug_disconnect(), debug_done_generating_core(), debug_download_trace_state_variable(), debug_download_tracepoint(), debug_enable_btrace(), debug_enable_tracepoint(), debug_execution_direction(), debug_extra_thread_info(), debug_fetch_registers(), debug_files_info(), debug_filesystem_is_local(), debug_find_memory_regions(), debug_flash_done(), debug_flash_erase(), debug_follow_exec(), debug_follow_fork(), debug_get_ada_task_ptid(), debug_get_bookmark(), debug_get_memory_xfer_limit(), debug_get_min_fast_tracepoint_insn_len(), debug_get_raw_trace_data(), debug_get_section_table(), debug_get_tailcall_unwinder(), debug_get_thread_local_address(), debug_get_tib_address(), debug_get_trace_state_variable_value(), debug_get_trace_status(), debug_get_tracepoint_status(), debug_get_unwinder(), debug_goto_bookmark(), debug_goto_record(), debug_goto_record_begin(), debug_goto_record_end(), debug_has_exited(), debug_info_record(), debug_insert_breakpoint(), debug_insert_exec_catchpoint(), debug_insert_fork_catchpoint(), debug_insert_hw_breakpoint(), debug_insert_mask_watchpoint(), debug_insert_vfork_catchpoint(), debug_insert_watchpoint(), debug_insn_history(), debug_insn_history_from(), debug_insn_history_range(), debug_interrupt(), debug_is_async_p(), debug_kill(), debug_load(), debug_log_command(), debug_make_corefile_notes(), debug_masked_watch_num_registers(), debug_memory_map(), debug_mourn_inferior(), debug_pass_ctrlc(), debug_pass_signals(), debug_pid_to_exec_file(), debug_pid_to_str(), debug_post_attach(), debug_post_startup_inferior(), debug_prepare_to_generate_core(), debug_prepare_to_store(), regcache::debug_print_register(), debug_program_signals(), debug_ranged_break_num_registers(), debug_rcmd(), debug_read_btrace(), debug_read_description(), debug_record_is_replaying(), debug_record_method(), debug_record_stop_replaying(), debug_record_will_replay(), debug_region_ok_for_hw_watchpoint(), debug_remove_breakpoint(), debug_remove_exec_catchpoint(), debug_remove_fork_catchpoint(), debug_remove_hw_breakpoint(), debug_remove_mask_watchpoint(), debug_remove_vfork_catchpoint(), debug_remove_watchpoint(), debug_resume(), debug_save_record(), debug_save_trace_data(), debug_search_memory(), debug_set_circular_trace_buffer(), debug_set_disconnected_tracing(), debug_set_permissions(), debug_set_syscall_catchpoint(), debug_set_trace_buffer_size(), debug_set_trace_notes(), debug_static_tracepoint_marker_at(), debug_stop(), debug_stop_recording(), debug_stopped_by_hw_breakpoint(), debug_stopped_by_sw_breakpoint(), debug_stopped_by_watchpoint(), debug_stopped_data_address(), debug_store_registers(), debug_supports_btrace(), debug_supports_enable_disable_tracepoint(), debug_supports_evaluation_of_breakpoint_conditions(), debug_supports_multi_process(), debug_supports_non_stop(), debug_supports_stopped_by_hw_breakpoint(), debug_supports_stopped_by_sw_breakpoint(), debug_supports_string_tracing(), debug_teardown_btrace(), debug_terminal_inferior(), debug_terminal_info(), debug_terminal_init(), debug_terminal_ours(), debug_terminal_ours_for_output(), debug_thread_address_space(), debug_thread_alive(), debug_thread_architecture(), debug_thread_events(), debug_thread_handle_to_thread_info(), debug_thread_name(), debug_trace_find(), debug_trace_init(), debug_trace_set_readonly_regions(), debug_trace_start(), debug_trace_stop(), debug_traceframe_info(), debug_update_thread_list(), debug_upload_trace_state_variables(), debug_upload_tracepoints(), debug_use_agent(), debug_verify_memory(), debug_wait(), debug_watchpoint_addr_within_range(), debug_xfer_partial(), detach_one_lwp(), disable_current_display(), displaced_read_reg(), displaced_step_dump_bytes(), displaced_step_prepare(), displaced_step_prepare_throw(), displaced_step_restore(), displaced_write_reg(), mi_ui_out::do_field_fmt(), mi_ui_out::do_field_string(), do_target_wait(), dos_close(), dos_setbaudrate(), dprintf_print_recreate(), dsbt_current_sos(), regcache::dump(), dump_die_1(), dump_die_shallow(), dump_mem(), dump_psymtab(), dwarf2_build_psymtabs_hard(), dwarf_finish_line(), dwarf_record_line_1(), elf_read_minimal_symbols(), enable_break(), enable_break2(), fetch_register(), fetch_regs_kernel_thread(), fetch_regs_user_thread(), filename_is_in_auto_load_safe_path_vec(), filename_is_in_pattern_1(), find_new_threads_callback(), find_new_threads_once(), find_unwind_entry(), finish_step_over(), fixup_riprel(), fprint_dummy_frames(), fprint_field(), fprint_frame(), fprint_frame_id(), fprint_frame_type(), fputstr_unfiltered(), fputstrn_unfiltered(), frame_debug_got_null_frame(), frame_id_eq(), frame_id_inner(), frame_id_p(), frame_unwind_arch(), frame_unwind_pc(), frame_unwind_register_value(), frv_current_sos(), gcc_convert_symbol(), gcc_symbol_address(), gdb_bfd_open(), gdb_bfd_ref(), gdb_bfd_unref(), gdb_demangle(), 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_bits_big_endian(), 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_thread_name(), gdbarch_core_xfer_shared_libraries(), gdbarch_core_xfer_shared_libraries_aix(), gdbarch_core_xfer_siginfo(), gdbarch_decr_pc_after_break(), gdbarch_deprecated_fp_regnum(), gdbarch_deprecated_function_start_offset(), gdbarch_disassembler_options(), gdbarch_displaced_step_copy_insn(), gdbarch_displaced_step_fixup(), gdbarch_displaced_step_hw_singlestep(), gdbarch_displaced_step_location(), 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_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_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_siginfo_type(), gdbarch_get_syscall_number(), gdbarch_gnu_triplet_regexp(), gdbarch_guess_tracepoint_registers(), gdbarch_half_bit(), gdbarch_half_format(), gdbarch_handle_segmentation_fault(), 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_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_align_bit(), 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_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_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_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_return_in_first_hidden_param_p(), gdbarch_return_value(), gdbarch_sdb_reg_to_regnum(), gdbarch_short_bit(), gdbarch_significant_addr_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_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_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_static_transform_name(), gdbarch_sw_breakpoint_from_kind(), gdbarch_syscalls_info(), gdbarch_target_desc(), gdbarch_tdep(), gdbarch_unwind_pc(), gdbarch_unwind_sp(), gdbarch_update_p(), 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_close(), gdbsim_create_inferior(), gdbsim_detach(), gdbsim_fetch_register(), gdbsim_files_info(), gdbsim_kill(), gdbsim_load(), gdbsim_mourn_inferior(), gdbsim_open(), gdbsim_resume_inferior(), gdbsim_store_register(), gdbsim_wait(), gdbsim_xfer_memory(), generate_register_struct(), get_detach_signal(), get_frame_func_if_available(), get_prev_frame_always_1(), get_prev_frame_if_no_cycle(), get_prev_frame_raw(), getpkt_or_notif_sane_1(), handle_inferior_event_1(), handle_jit_event(), handle_no_resumed(), handle_notification(), handle_redirections(), handle_signal_stop(), handle_syscall_event(), handle_vfork_child_exec_or_exit(), hardwire_raw(), hppa_dump_tdep(), hppa_fallback_frame_cache(), hppa_frame_cache(), i386_displaced_step_copy_insn(), i386_displaced_step_fixup(), i386_process_record(), i386_relocate_instruction(), ia64_dummy_id(), ia64_frame_this_id(), ia64_sigtramp_frame_this_id(), inf_ptrace_wait(), infrun_async(), init_cutu_and_read_dies(), init_cutu_and_read_dies_no_follow(), insert_bp_location(), insert_exception_resume_breakpoint(), insert_exception_resume_from_probe(), insert_longjmp_resume_breakpoint(), insert_step_resume_breakpoint_at_sal_1(), minimal_symbol_reader::install(), jit_bfd_try_read_symtab(), jit_breakpoint_re_set_internal(), jit_frame_sniffer(), jit_inferior_init(), jit_read_descriptor(), jit_reader_load(), jit_reader_try_read_symtab(), jit_register_code(), jit_unwind_reg_set_impl(), keep_going_pass_signal(), keep_going_stepped_thread(), kill_one_lwp(), kill_wait_one_lwp(), language_lookup_primitive_type_as_symbol(), libunwind_load(), linux_child_follow_fork(), linux_handle_extended_wait(), linux_handle_syscall_trap(), linux_nat_attach(), linux_nat_filter_event(), linux_nat_post_attach_wait(), linux_nat_resume(), linux_nat_stop_lwp(), linux_nat_wait(), linux_nat_wait_1(), lm_base(), lookup_dwo_cutu(), lookup_language_this(), lookup_minimal_symbol(), lookup_symbol_aux(), lookup_symbol_in_block(), lookup_symbol_in_objfile(), lookup_symbol_in_objfile_symtabs(), lookup_symbol_in_static_block(), lookup_symbol_via_quick_fns(), maintenance_print_user_registers(), maybe_clear_ignore_sigint(), mi_breakpoint_created(), mi_breakpoint_deleted(), mi_breakpoint_modified(), mi_cmd_var_create(), mi_command_param_changed(), mi_execute_cli_command(), mi_inferior_added(), mi_inferior_appeared(), mi_inferior_exit(), mi_inferior_removed(), mi_memory_changed(), mi_new_thread(), mi_on_resume_1(), mi_output_running_pid(), mi_record_changed(), mi_solib_loaded(), mi_solib_unloaded(), mi_thread_exit(), mi_traceframe_changed(), mi_tsv_created(), mi_tsv_deleted(), mi_tsv_modified(), mi_user_selected_context_changed(), 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_xfer_register(), mn10300_dump_tdep(), moxie_process_record(), net_open(), nios2_analyze_prologue(), mi_ui_out::open(), open_and_init_dwo_file(), open_and_init_dwp_file(), open_target(), or1k_dump_tdep(), or1k_frame_cache(), or1k_unwind_pc(), or1k_unwind_sp(), packet_ok(), parser_fprintf(), pdc_alloc(), pdc_dealloc(), pdc_read_data(), pdc_read_regs(), pdc_realloc(), pdc_symbol_addrs(), pdc_write_data(), pdc_write_regs(), ppc_displaced_step_fixup(), 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(), prepare_for_detach(), prepare_to_wait(), print_children(), print_diff(), print_gdb_help(), print_recreate_catch_exec(), print_recreate_catch_fork(), print_recreate_catch_solib(), print_recreate_catch_syscall(), print_recreate_catch_vfork(), print_recreate_exception_catchpoint(), print_recreate_masked_watchpoint(), print_recreate_ranged_breakpoint(), print_recreate_thread(), print_recreate_watchpoint(), print_subexp_standard(), print_sys_errmsg(), print_target_wait_results(), print_tu_stats(), proceed(), proceed_after_vfork_done(), process_event_stop_test(), process_initial_stop_replies(), process_psymtab_comp_unit_reader(), process_queue(), procfs_pidlist(), procfs_store_registers(), ptrace_check(), push_stop_reply(), push_target(), putpkt_binary(), puts_debug(), pyuw_this_id(), random_pending_event_thread(), read_comp_units_from_section(), read_cutu_die_from_dwo(), read_dbx_symtab(), read_die_and_siblings(), read_frame(), read_full_die(), read_pe_exported_syms(), 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_close(), record_full_core_kill(), record_full_exec_insn(), record_full_get_bookmark(), record_full_goto_bookmark(), record_full_open(), record_full_open_1(), record_full_restore(), record_full_save(), record_full_sig_handler(), record_full_wait_1(), record_full_xfer_partial(), lnp_state_machine::record_line(), record_linux_msghdr(), record_linux_sockaddr(), record_linux_system_call(), reggroups_dump(), reinit_frame_cache(), remote_current_thread(), remote_hostio_pread(), remote_interrupt(), remote_notif_ack(), remote_notif_get_pending_events(), remote_notif_parse(), remote_notif_remove_queued_reply(), remote_pass_ctrlc(), remote_set_syscall_catchpoint(), remote_start_remote(), remote_stop(), report_initial_inferior(), reschedule(), restart_threads(), resume_1(), resume_lwp(), resume_stopped_resumed_lwps(), rs6000_wait(), rust_lookup_symbol_nonlocal(), s390_displaced_step_copy_insn(), s390_displaced_step_fixup(), s390_process_record(), s390_record_address_mask(), s390_remove_hw_breakpoint(), s390_remove_watchpoint(), save_stop_reason(), save_trace_state_variables(), save_waitstatus(), select_event_lwp(), send_g_packet(), ser_base_async(), serial_logchar(), serial_readchar(), serial_write(), set_gdb_data_directory(), set_logging_off(), setup_sections(), shell_escape(), should_be_inserted(), show_disassembly_style_sfunc(), show_endian(), signal_catchpoint_print_recreate(), solib_aix_free_library_list(), solib_aix_free_so(), solib_aix_get_toc_value(), start_step_over(), status_callback(), stop_all_threads(), stop_callback(), stop_wait_callback(), stop_waiting(), store_register(), store_regs_kernel_thread(), store_regs_user_thread(), switch_back_to_stepped_thread(), symbol_cache_lookup(), tailcall_dump(), target_close(), target_debug_print_signals(), target_fileio_close(), target_fileio_fstat(), target_fileio_open_1(), target_fileio_pread(), target_fileio_pwrite(), target_fileio_readlink(), target_fileio_unlink(), target_info_proc(), target_is_pushed(), target_xfer_partial(), thread_db_load_search(), thumb2_copy_alu_imm(), thumb2_copy_b_bl_blx(), thumb2_copy_block_xfer(), thumb2_copy_copro_load_store(), thumb2_copy_load_literal(), thumb2_copy_load_reg_imm(), thumb2_copy_preload(), thumb2_copy_table_branch(), thumb_32bit_copy_undef(), thumb_analyze_prologue(), thumb_copy_16bit_ldr_literal(), thumb_copy_alu_reg(), thumb_copy_b(), thumb_copy_bx_blx_reg(), thumb_copy_cbnz_cbz(), thumb_copy_pc_relative_32bit(), thumb_copy_pop_pc_16bit(), thumb_copy_svc(), thumb_copy_unmodified_16bit(), thumb_copy_unmodified_32bit(), thumb_decode_pc_relative_16bit(), thumb_process_displaced_insn(), tracepoint_print_recreate(), try_thread_db_load(), try_thread_db_load_1(), uninstall_variable(), unpush_target_and_assert(), value_fetch_lazy(), varobj_create(), gdb_xml_parser::vdebug(), VEC(), vwarning(), wait_for_inferior(), wait_lwp(), warn_cant_dump_core(), watchpoint_value_print(), xcoff_psymtab_to_symtab_1(), xcoff_read_symtab(), and xtensa_push_dummy_call().
| void fprintfi_filtered | ( | int | spaces, |
| struct ui_file * | stream, | ||
| const char * | format, | ||
| ... | |||
| ) |
Definition at line 2031 of file utils.c.
References print_spaces_filtered(), and vfprintf_filtered().
Referenced by binary(), c_type_print_base_1(), c_type_print_base_struct_union(), do_compile_dwarf_expr_to_c(), f_type_print_base(), m2_record_fields(), pascal_type_print_base(), push(), pushf(), rust_print_struct_def(), rust_print_type(), and unary().
| int fputc_filtered | ( | int | c, |
| struct ui_file * | stream | ||
| ) |
Definition at line 1844 of file utils.c.
References fputs_filtered().
Referenced by c_printchar(), disassemble_dwarf_expression(), cli_ui_out::field_separator(), fputsn_filtered(), mips_print_float_info(), pascal_type_print_method_args(), ppscm_print_string_repr(), print_binary_chars(), print_fpu_flags(), putchar_filtered(), and rust_emitchar().
| int fputc_unfiltered | ( | int | c, |
| struct ui_file * | stream | ||
| ) |
Definition at line 1835 of file utils.c.
References ui_file_write().
Referenced by chain_candidate(), mi_ui_out::close(), mi_ui_out::field_separator(), mi_console_file::flush(), fputs_maybe_filtered(), mep_gdbarch_init(), mi_ui_out::open(), ui_file::putc(), putpkt_binary(), puts_debug(), remote_rcmd(), serial_logchar(), signal_catchpoint_print_recreate(), and target_xfer_partial().
| void fputs_filtered | ( | const char * | linebuffer, |
| struct ui_file * | stream | ||
| ) |
Definition at line 1811 of file utils.c.
References fputs_maybe_filtered().
Referenced by ada_print_scalar(), ada_print_subexp(), ada_printchar(), ada_val_print_enum(), ada_val_print_num(), ada_val_print_ref(), arm_print_float_info(), ax_print(), c_print_type_1(), c_printstr(), c_type_print_base_1(), c_type_print_base_struct_union(), c_type_print_template_args(), c_val_print_int(), cp_print_class_member(), cp_print_static_field(), cp_print_value(), cp_print_value_fields(), cp_type_print_derivation_info(), cp_type_print_method_args(), dbx_psymtab_to_symtab_1(), default_print_one_register_info(), describe_other_breakpoints(), do_examine(), cli_ui_out::do_text(), dump_die_shallow(), dump_msymbols(), dump_prefix_expression(), dump_psymtab(), dump_subexp_body_standard(), dump_symtab_1(), f_print_type(), f_printchar(), f_printstr(), f_type_print_base(), f_val_print(), fprintf_symbol_filtered(), fputc_filtered(), fputsn_filtered(), fputstr_filtered(), fputstrn_filtered(), generic_emit_char(), generic_printstr(), generic_val_print(), generic_val_print_array(), generic_val_print_bool(), generic_val_print_char(), generic_val_print_enum_1(), generic_val_print_ref(), getpkt_or_notif_sane_1(), gnuv3_print_method_ptr(), go_print_type(), help_cmd(), help_list(), i387_print_float_info(), info_address_command(), info_checkpoints_command(), info_frame_command(), jump_command(), list_overlays_command(), m2_emit_char(), m2_enum(), m2_long_set(), m2_print_type(), m2_printchar(), m2_printstr(), m2_procedure(), m2_record_fields(), m2_type_name(), m2_typedef(), m2_unbounded_array(), m2_val_print(), macro_expand_command(), macro_expand_once_command(), maintenance_check_psymtabs(), maintenance_info_psymtabs(), mips_print_float_info(), mips_print_register(), mt_registers_info(), output_source_filename(), pascal_emit_char(), pascal_object_print_static_field(), pascal_object_print_value(), pascal_object_print_value_fields(), pascal_one_char(), pascal_print_func_args(), pascal_print_type(), pascal_printchar(), pascal_printstr(), pascal_type_print_base(), pascal_type_print_derivation_info(), pascal_type_print_method_args(), pascal_val_print(), ppscm_print_children(), ppscm_print_string_repr(), print_address(), print_address_demangle(), print_address_symbolic(), print_callback(), print_children(), print_decimal_chars(), print_doc_line(), print_enum_type(), print_exception(), print_field_values(), print_floating(), print_fpu_flags(), print_func_type(), print_function_pointer_address(), 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_name_maybe_canonical(), print_octal_chars(), print_one_macro(), print_partial_symbols(), print_ref_address(), print_spaces_filtered(), print_string_repr(), print_subexp_standard(), print_symbol(), print_symbol_info(), print_type_scalar(), print_unpacked_pointer(), print_variable_at_address(), printf_floating(), printstr(), psymtab_to_symtab_1(), puts_filtered(), puts_filtered_tabular(), read_frame(), rust_emitchar(), rust_print_struct_def(), rust_print_subexp(), rust_print_type(), rust_printchar(), rust_val_print(), say_where(), sh64_do_fp_register(), sh64_do_register(), show_disable_randomization(), show_user_1(), target_command(), tui_make_status_line(), val_print_string(), val_print_struct(), val_print_type_code_flags(), valprint_check_validity(), and xcoff_psymtab_to_symtab_1().
|
static |
Definition at line 1705 of file utils.c.
References batch_flag, chars_per_line, chars_printed, fputc_unfiltered(), fputs_unfiltered(), gdb_stdout, interp_ui_out(), lines_per_page, lines_printed, pagination_enabled, prompt_for_continue(), top_level_interpreter(), UINT_MAX, wrap_buffer, wrap_column, wrap_here(), wrap_indent, and wrap_pointer.
Referenced by fputs_filtered(), and vfprintf_maybe_filtered().
| void fputstr_filtered | ( | const char * | str, |
| int | quoter, | ||
| struct ui_file * | stream | ||
| ) |
Definition at line 1254 of file utils.c.
References fprintf_filtered(), fputs_filtered(), and printchar().
Referenced by print_packet().
| void fputstr_unfiltered | ( | const char * | str, |
| int | quoter, | ||
| struct ui_file * | stream | ||
| ) |
Definition at line 1261 of file utils.c.
References fprintf_unfiltered(), fputs_unfiltered(), and printchar().
Referenced by mi_ui_out::do_field_string(), mi_print_exception(), and ui_file::putstr().
| void fputstrn_filtered | ( | const char * | str, |
| int | n, | ||
| int | quoter, | ||
| struct ui_file * | stream | ||
| ) |
Definition at line 1268 of file utils.c.
References fprintf_filtered(), fputs_filtered(), and printchar().
| void fputstrn_unfiltered | ( | const char * | str, |
| int | n, | ||
| int | quoter, | ||
| struct ui_file * | stream | ||
| ) |
Definition at line 1278 of file utils.c.
References fprintf_unfiltered(), fputs_unfiltered(), and printchar().
Referenced by mi_console_file::flush(), and ui_file::putstrn().
| void free_current_contents | ( | void * | ptr | ) |
Definition at line 199 of file utils.c.
References _, internal_error(), and xfree().
Referenced by c_parse(), coff_symfile_read(), dbx_read_symtab(), displaced_step_prepare_throw(), dwarf2_add_member_fn(), elfstab_build_psymtabs(), expand(), gather_arguments(), info_macro_command(), info_macros_command(), linespec_parse_basic(), macro_define_command(), macro_expand_command(), macro_expand_once_command(), print_address_symbolic(), read_pe_exported_syms(), read_string(), remote_check_symbols(), remote_query_supported(), trace_dump_actions(), and try_open_exec_file().
| gdb::unique_xmalloc_ptr<char> gdb_abspath | ( | const char * | path | ) |
Definition at line 2978 of file utils.c.
References current_directory, gdb_assert, and SLASH_STRING.
Referenced by compile_file_command(), objfile::objfile(), openp(), and set_gdb_data_directory().
| const char* gdb_bfd_errmsg | ( | bfd_error_type | error_tag, |
| char ** | matching | ||
| ) |
Definition at line 3100 of file utils.c.
References AMBIGUOUS_MESS1, AMBIGUOUS_MESS2, make_cleanup(), xfree(), and xmalloc().
Referenced by compile_object_load(), and exec_file_attach().
| int gdb_filename_fnmatch | ( | const char * | pattern, |
| const char * | string, | ||
| int | flags | ||
| ) |
Definition at line 3321 of file utils.c.
References flags, and gdb_assert.
Referenced by compare_glob_filenames_for_search(), skiplist_entry::do_skip_gfile_p(), and filename_is_in_pattern_1().
| void gdb_print_host_address_1 | ( | const void * | addr, |
| struct ui_file * | stream | ||
| ) |
Definition at line 818 of file utils.c.
References fprintf_filtered(), and host_address_to_string.
| gdb::unique_xmalloc_ptr<char> gdb_realpath | ( | const char * | filename | ) |
Definition at line 2842 of file utils.c.
Referenced by auto_load_objfile_script(), auto_load_safe_path_vec_update(), captured_main_1(), dw2_get_real_path(), dw2_map_symbol_filenames(), dwarf2_get_dwz_file(), exec_file_attach(), filename_is_in_auto_load_safe_path_vec(), find_and_open_source(), gdb_realpath_keepfile(), gdbscm_safe_source_script(), iterate_over_symtabs(), nto_find_and_open_solib(), openp(), set_gdb_data_directory(), and try_thread_db_load().
| gdb::unique_xmalloc_ptr<char> gdb_realpath_keepfile | ( | const char * | filename | ) |
Definition at line 2932 of file utils.c.
References gdb_realpath(), and SLASH_STRING.
Referenced by exec_file_attach().
| std::chrono::steady_clock::duration get_prompt_for_continue_wait_time | ( | ) |
Definition at line 1560 of file utils.c.
Referenced by scoped_command_stats::~scoped_command_stats().
| void* hashtab_obstack_allocate | ( | void * | data, |
| size_t | size, | ||
| size_t | count | ||
| ) |
Definition at line 3016 of file utils.c.
References memset(), and size.
Referenced by allocate_dwo_file_hash_table(), allocate_dwo_unit_table(), allocate_dwp_loaded_cutus_table(), allocate_signatured_type_table(), allocate_type_unit_groups_table(), create_copied_types_hash(), dwarf2_add_dependence(), elf_gnu_ifunc_record_cache(), handle_DW_AT_stmt_list(), load_full_comp_unit_reader(), load_partial_dies(), read_call_site_scope(), read_signatured_type_reader(), and set_die_type().
|
static |
Definition at line 1080 of file utils.c.
References convert_between_encodings(), host_charset(), target_charset(), and translit_none.
Referenced by parse_escape().
| void init_page_info | ( | void | ) |
Definition at line 1342 of file utils.c.
References batch_flag, chars_per_line, gdb_stdout, lines_per_page, set_screen_size(), set_width(), tgetnum(), tui_get_command_dimension(), ui_file_isatty(), and UINT_MAX.
Referenced by gdb_init(), set_batch_flag_and_restore_page_info::set_batch_flag_and_restore_page_info(), and set_width().
| void initialize_utils | ( | void | ) |
Definition at line 2677 of file utils.c.
References _, add_setshow_boolean_cmd(), add_setshow_uinteger_cmd(), chars_per_line, class_maintenance, class_support, lines_per_page, pagination_enabled, set_height_command(), set_width_command(), setdebuglist, setlist, setprintlist, sevenbit_strings, show_chars_per_line(), show_debug_timestamp(), show_lines_per_page(), show_pagination_enabled(), showdebuglist, showlist, and showprintlist.
Referenced by gdb_init().
| void internal_verror | ( | const char * | file, |
| int | line, | ||
| const char * | fmt, | ||
| va_list | ap | ||
| ) |
Definition at line 516 of file utils.c.
References _, internal_error_problem, and throw_quit().
| void internal_vwarning | ( | const char * | file, |
| int | line, | ||
| const char * | fmt, | ||
| va_list | ap | ||
| ) |
Definition at line 527 of file utils.c.
References internal_warning_problem.
| std::string ldirname | ( | const char * | filename | ) |
Definition at line 3040 of file utils.c.
References string.
Referenced by do_start_initialization(), dwarf2_get_dwz_file(), file_read_description_xml(), find_file_and_directory(), open_and_init_dwp_file(), and xml_init_syscalls_info().
| struct cleanup* make_bpstat_clear_actions_cleanup | ( | void | ) |
Definition at line 3168 of file utils.c.
References do_bpstat_clear_actions_cleanup(), and make_cleanup().
Referenced by bpstat_do_actions(), execute_command(), and fetch_inferior_event().
Definition at line 3192 of file utils.c.
References do_free_char_ptr_vec(), and make_cleanup().
Referenced by add_path(), auto_load_objfile_script_1(), build_id_to_debug_bfd(), find_separate_debug_file(), openp(), and thread_db_load_search().
| struct cleanup* make_cleanup_free_section_addr_info | ( | struct section_addr_info * | addrs | ) |
Definition at line 150 of file utils.c.
References do_free_section_addr_info(), and make_cleanup().
Referenced by addr_info_make_relative(), jit_bfd_try_read_symtab(), and symbol_file_add_separate().
| struct cleanup* make_cleanup_unpush_target | ( | struct target_ops * | ops | ) |
Definition at line 168 of file utils.c.
References do_unpush_target(), and make_cleanup().
Referenced by inf_ptrace_attach(), and inf_ptrace_create_inferior().
Definition at line 185 of file utils.c.
References do_value_free_to_mark(), and make_cleanup().
Referenced by gdbscm_make_lazy_value(), gdbscm_make_value(), gdbscm_parse_and_eval(), gdbscm_value_address(), gdbscm_value_call(), gdbscm_value_dereference(), gdbscm_value_dynamic_type(), gdbscm_value_field(), gdbscm_value_referenced_value(), gdbscm_value_subscript(), gdbscm_value_to_lazy_string(), vlscm_binop(), vlscm_do_cast(), vlscm_rich_compare(), and vlscm_unop().
| char* make_hex_string | ( | const gdb_byte * | data, |
| size_t | length | ||
| ) |
Definition at line 826 of file utils.c.
References xmalloc(), and xsnprintf().
Referenced by objfpy_get_build_id().
| void malloc_failure | ( | long | size | ) |
Definition at line 773 of file utils.c.
References _, internal_error(), and size.
Referenced by gdb_xml_parser::gdb_xml_parser(), operator new(), gdb_argv::reset(), xcalloc(), xmalloc(), xmalloc_failed(), xml_fetch_content_from_file(), and xrealloc().
| void maybe_quit | ( | void | ) |
Definition at line 757 of file utils.c.
References deprecated_interactive_hook, quit(), quit_handler, and sync_quit_force_run.
| int myread | ( | int | desc, |
| char * | addr, | ||
| int | len | ||
| ) |
| char* n_spaces | ( | int | n | ) |
Definition at line 2099 of file utils.c.
References xfree(), and xmalloc().
Referenced by cp_print_value_fields(), pascal_object_print_value_fields(), ppscm_print_children(), print_children(), print_field_values(), print_spaces(), print_spaces_filtered(), print_variable_and_value(), val_print_array_elements(), and val_print_packed_array_elements().
| int nquery | ( | const char * | ctlstr, |
| ... | |||
| ) |
Definition at line 1028 of file utils.c.
Referenced by create_breakpoint().
Definition at line 2745 of file utils.c.
References gdbarch_addr_bit(), hex_string(), and HOST_CHAR_BIT.
Referenced by aarch64_displaced_step_copy_insn(), aarch64_displaced_step_fixup(), aarch64_dump_tdep(), aarch64_process_record(), aarch64_push_dummy_call(), ada_val_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_print_frame_cache(), arc_unwind_pc(), arc_unwind_sp(), 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(), call_site_find_chain_1(), call_site_for_pc(), call_site_to_target_addr(), check_fast_tracepoint_sals(), collection_list::collect_symbol(), compare_sections_command(), compile_object_load(), copy_sections(), darwin_debug_regions(), dcache_info_1(), dcache_print_line(), decode_insn(), describe_other_breakpoints(), displaced_step_prepare_throw(), displaced_step_restore(), display_one_tib(), do_assign(), do_examine(), do_target_wait(), dump_msymbols(), dump_psymtab(), dump_psymtab_addrmap_1(), dump_symtab_1(), dw2_find_pc_sect_compunit_symtab(), 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(), f_val_print(), fbsd_find_memory_regions(), filter_overlapping_sections(), finish_block_internal(), finish_step_over(), fixup_riprel(), flash_erase_command(), fprint_auxv_entry(), frame_unwind_register_value(), func_addr_to_tail_call_list(), func_verify_no_selftailcall(), gcore_copy_callback(), gcore_create_callback(), gdbsim_xfer_memory(), generic_load(), gnu_xfer_auxv(), gnu_xfer_memory(), gnuv3_get_typename_from_type_info(), handle_inferior_event_1(), handle_signal_stop(), heuristic_proc_start(), hppa_frame_cache(), hppa_skip_trampoline_code(), i386_displaced_step_copy_insn(), i386_displaced_step_fixup(), i386_linux_handle_segmentation_fault(), 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(), 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(), jit_bfd_try_read_symtab(), jit_breakpoint_re_set_internal(), jit_event_handler(), 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(), mbpy_str(), memory_error_message(), 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(), pascal_val_print(), ppc_displaced_step_fixup(), 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(), print_address(), print_address_demangle(), print_disassembly(), print_function_pointer_address(), print_go_string(), print_mention_ranged_breakpoint(), print_one_vtable(), print_partial_symbols(), print_ref_address(), print_section_info(), print_symbol(), print_unpacked_pointer(), print_variable_at_address(), proceed(), process_event_stop_test(), process_psymtab_comp_unit_reader(), psym_find_pc_sect_compunit_symtab(), pyuw_sniffer(), read_call_site_scope(), read_memory_backward(), read_partial_die(), record_full_arch_list_add_mem(), record_full_exec_insn(), record_full_restore(), record_full_save(), record_full_wait_1(), record_full_xfer_partial(), lnp_state_machine::record_line(), record_read_memory(), restore_section_callback(), resume_1(), resume_stopped_resumed_lwps(), rust_val_print(), s390_displaced_step_copy_insn(), s390_displaced_step_fixup(), s390_process_record(), save_bookmark_command(), say_where(), setup_sections(), should_be_inserted(), skip_function_command(), sparc64_linux_handle_segmentation_fault(), spu_software_single_step(), status_callback(), stop_all_threads(), store_regs(), collection_list::stringify(), stub_gnu_ifunc_resolve_addr(), svr4_exec_displacement(), svr4_read_so_list(), tailcall_dump(), thumb_analyze_prologue(), thumb_record_misc(), tui_make_status_line(), value_fetch_lazy(), and windows_xfer_shared_library().
| int parse_escape | ( | struct gdbarch * | gdbarch, |
| const char ** | string_ptr | ||
| ) |
Definition at line 1116 of file utils.c.
References _, error(), host_char_to_target(), host_hex_value(), and target_charset().
Referenced by do_set_command(), echo_command(), and yylex().
| int parse_pid_to_attach | ( | const char * | args | ) |
Definition at line 3139 of file utils.c.
References _, dummy, error(), error_no_arg(), and pid.
Referenced by darwin_attach(), extended_remote_attach(), gnu_attach(), inf_ptrace_attach(), linux_nat_attach(), procfs_attach(), and windows_attach().
|
static |
Definition at line 663 of file utils.c.
References err, cmd_list_element::prefix, safe_strerror(), and string.
Referenced by perror_warning_with_name(), and throw_perror_with_name().
| void perror_warning_with_name | ( | const char * | string | ) |
Definition at line 701 of file utils.c.
References _, perror_string(), string, and warning().
Referenced by captured_main_1(), and source_script_with_search().
| void perror_with_name | ( | const char * | string | ) |
Definition at line 692 of file utils.c.
References GENERIC_ERROR, and throw_perror_with_name().
Referenced by aarch64_fbsd_fetch_inferior_registers(), aarch64_fbsd_store_inferior_registers(), aarch64_point_encode_ctrl_reg(), alphabsd_fetch_inferior_registers(), alphabsd_store_inferior_registers(), amd64_linux_fetch_inferior_registers(), amd64_linux_store_inferior_registers(), amd64bsd_fetch_inferior_registers(), amd64bsd_store_inferior_registers(), amd64fbsd_read_description(), arm_fbsd_fetch_inferior_registers(), arm_fbsd_store_inferior_registers(), arm_linux_prepare_to_resume(), cd_command(), coff_symtab_read(), coffstab_build_psymtabs(), compile_to_object(), convert_between_encodings(), core_open(), darwin_bfd_open(), dbx_symfile_init(), dbx_symfile_read(), dump_binary_file(), elfstab_build_psymtabs(), exec_file_attach(), fetch_all_fp_regs(), fetch_all_gp_regs(), fetch_altivec_register(), fetch_altivec_registers(), fetch_fpregs(), fetch_fpregs_from_thread(), fetch_fpxregs(), fetch_gregs(), fetch_gregs_from_thread(), fetch_inferior_registers(), fetch_ppc_register(), fetch_register(), fetch_regs(), fetch_regset(), fetch_vfp_regs(), fetch_vsx_register(), fetch_vsx_registers(), fetch_wmmx_regs(), fetch_xstateregs(), fetch_xtregs(), fill_symbuf(), find_source_lines(), fork_inferior(), forward_search_command(), gdb_readline_no_editing(), gdb_wait_for_event(), generic_load(), get_compile_file_tempdir(), get_spe_registers(), handle_redirections(), hppanbsd_fetch_registers(), hppanbsd_store_registers(), hppaobsd_fetch_registers(), hppaobsd_store_registers(), hwdebug_insert_point(), hwdebug_remove_point(), i386_linux_resume(), i386bsd_fetch_inferior_registers(), i386bsd_store_inferior_registers(), i386fbsd_resume(), iconv_wrapper::iconv_wrapper(), inf_ptrace_attach(), inf_ptrace_detach(), inf_ptrace_resume(), inf_ptrace_wait(), wchar_iterator::iterate(), kill_lwp(), linux_check_ptrace_features(), linux_child_follow_fork(), linux_fork_to_function(), linux_handle_extended_wait(), linux_ns_same(), m68kbsd_fetch_inferior_registers(), m68kbsd_store_inferior_registers(), m88kbsd_fetch_inferior_registers(), m88kbsd_store_inferior_registers(), maintenance_print_architecture(), maintenance_print_dummy_frames(), maintenance_print_msymbols(), maintenance_print_psymbols(), maintenance_print_reggroups(), maintenance_print_symbols(), mips64_linux_regsets_fetch_registers(), mips64_linux_regsets_store_registers(), mips64obsd_fetch_inferior_registers(), mips64obsd_store_inferior_registers(), mips_fbsd_fetch_inferior_registers(), mips_fbsd_store_inferior_registers(), mips_linux_new_thread(), mips_linux_read_description(), mipsnbsd_fetch_inferior_registers(), mipsnbsd_store_inferior_registers(), open_terminal_stream(), ppc_linux_read_description(), ppcfbsd_fetch_inferior_registers(), ppcfbsd_store_inferior_registers(), ppcnbsd_fetch_inferior_registers(), ppcnbsd_store_inferior_registers(), ppcobsd_fetch_registers(), ppcobsd_store_registers(), print_source_lines_base(), proc_error(), procfs_set_exec_trap(), regcache_print(), remote_file_get(), remote_file_put(), remote_open_1(), restore_binary_file(), restore_original_signals_state(), reverse_search_command(), rs6000_ptrace_ldinfo(), s390_prepare_to_resume(), s390_show_debug_regs(), s390_stopped_by_watchpoint(), save_original_signals_state(), serial_open_ops_1(), set_spe_registers(), shnbsd_fetch_inferior_registers(), shnbsd_store_inferior_registers(), solib_aix_bfd_open(), solib_bfd_open(), source_script_with_search(), sparc_fetch_inferior_registers(), sparc_store_inferior_registers(), sparc_xfer_wcookie(), stabsect_build_psymtabs(), store_all_fp_regs(), store_all_gp_regs(), store_altivec_register(), store_altivec_registers(), store_fpregs(), store_fpregs_to_thread(), store_fpxregs(), store_gregs(), store_gregs_to_thread(), store_inferior_registers(), store_register(), store_regs(), store_regset(), store_vfp_regs(), store_vsx_register(), store_vsx_registers(), store_wmmx_regs(), store_xstateregs(), store_xtregs(), symfile_bfd_open(), tfile_end(), tfile_open(), tfile_read(), tfile_write_header(), tfile_write_raw_data(), tui_set_source_content(), vaxbsd_fetch_inferior_registers(), vaxbsd_store_inferior_registers(), wchar_iterator::wchar_iterator(), write_psymtabs_to_index(), write_watchpoint_regs(), x86_linux_dr_get(), x86_linux_dr_set(), x86_linux_read_description(), xcoff_initial_scan(), and xml_fetch_content_from_file().
Definition at line 2766 of file utils.c.
References gdbarch_addr_bit(), hex_string_custom(), and HOST_CHAR_BIT.
Referenced by arc_push_dummy_call(), dsbt_print_loadmap(), ui_out::field_core_addr(), stap_probe::gen_info_probes_table_values(), and print_one_detail_ranged_breakpoint().
| void print_spaces | ( | int | n, |
| struct ui_file * | file | ||
| ) |
Definition at line 810 of file utils.c.
References fputs_unfiltered(), and n_spaces().
Referenced by do_compile_dwarf_expr_to_c(), dump_die_1(), dump_die_shallow(), dump_symtab_1(), and print_symbol().
| void print_spaces_filtered | ( | int | n, |
| struct ui_file * | stream | ||
| ) |
Definition at line 2121 of file utils.c.
References fputs_filtered(), and n_spaces().
Referenced by ada_val_print_string(), ada_val_print_struct_union(), c_type_print_base_1(), c_type_print_base_struct_union(), c_val_print_array(), cp_print_value(), cp_print_value_fields(), default_print_one_register_info(), cli_ui_out::do_spaces(), fprintfi_filtered(), generic_val_print_array(), m2_print_array_contents(), m2_record_fields(), m2_val_print(), mt_registers_info(), pascal_object_print_value(), pascal_object_print_value_fields(), pascal_type_print_base(), pascal_val_print(), ppscm_print_children(), print_children(), print_field_values(), print_spaces_filtered_with_print_options(), print_unpacked_pointer(), printfi_filtered(), rust_print_struct_def(), sh64_do_fp_register(), sh64_do_register(), val_print_array_elements(), val_print_packed_array_elements(), and val_print_struct().
| void print_sys_errmsg | ( | const char * | string, |
| int | errcode | ||
| ) |
Definition at line 711 of file utils.c.
References err, fprintf_unfiltered(), gdb_flush(), gdb_stderr, gdb_stdout, and safe_strerror().
Referenced by add_path(), check_syscall(), dead_procinfo(), print_source_lines_base(), proc_warn(), set_gdb_data_directory(), tui_set_source_content(), and windows_create_inferior().
|
static |
Definition at line 1202 of file utils.c.
References sevenbit_strings.
Referenced by fputstr_filtered(), fputstr_unfiltered(), fputstrn_filtered(), and fputstrn_unfiltered().
| void printf_filtered | ( | const char * | format, |
| ... | |||
| ) |
Definition at line 2045 of file utils.c.
References gdb_stdout, and vfprintf_filtered().
Referenced by ada_resolve_function(), add_inferior_command(), collection_list::add_memrange(), collection_list::add_register(), collection_list::add_static_trace_data(), adi_print_versions(), alpha_heuristic_proc_start(), 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_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_function_call(), 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_value_begin(), annotate_value_end(), annotate_value_history_begin(), annotate_value_history_end(), annotate_value_history_value(), annotate_watchpoint(), ATTRIBUTE_PRINTF(), avr_io_reg_read_command(), backtrace_command_1(), bkpt_print_mention(), bookmark_1(), bpstat_check_watchpoint(), bsd_kvm_files_info(), captured_main_1(), check(), check_frame_language_change(), checkpoint_command(), child_terminal_info(), clone_inferior_command(), cmdpy_function(), collection_list::collect_symbol(), compare_sections_command(), continue_command(), core_detach(), core_open(), darwin_debug_regions(), dbx_psymtab_to_symtab_1(), dbx_read_symtab(), dcache_info_1(), dcache_print_line(), delete_checkpoint_command(), demangle_command(), deprecated_cmd_warning(), deprecated_show_value_hack(), describe_other_breakpoints(), detach_checkpoint_command(), disp_exception(), display_current_task_id(), display_descriptor(), display_one_tib(), display_page_table(), display_ptable_entry(), display_selector(), display_selectors(), do_examine(), do_one_display(), dsbt_print_loadmap(), dump_fn_fieldlists(), dump_objfile(), dw2_debug_names_dump(), dw2_dump(), dw2_print_stats(), dwarf2_read_symtab(), echo_command(), edit_command(), encode_actions_1(), file_is_auto_load_safe(), find_command(), find_instruction_backward(), finish_command(), fnpy_call(), forward_search_command(), func_command(), gdbsim_detach(), gdbsim_open(), get_number_trailer(), get_tracepoint_by_number(), gnuv3_print_vtable(), go32_pte_for_address(), go32_sldt(), heuristic_proc_start(), ignore_command(), inf_child_open_target(), inf_ptrace_files_info(), 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(), info_line_command(), info_mappings_callback(), info_mem_command(), info_proc_mappings(), info_program_command(), info_record_command(), info_scope_command(), info_selectors_command(), info_serial_command(), info_signals_command(), info_source_command(), info_sources_command(), info_spu_dma_cmdlist(), info_spu_dma_command(), info_spu_event_command(), info_spu_mailbox_list(), info_spu_proxydma_command(), info_spu_signal_command(), info_symbol_command(), info_task(), init_breakpoint_sal(), internal_bkpt_print_it(), jump_command(), kill_command(), 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(), maint_print_section_info(), maintenance_check_psymtabs(), maintenance_check_symtabs(), maintenance_check_xml_descriptions(), maintenance_demangle(), maintenance_do_deprecate(), maintenance_info_psymtabs(), maintenance_info_sections(), maintenance_info_selftests(), maintenance_info_symtabs(), maintenance_print_one_line_table(), maintenance_print_symbol_cache(), maintenance_print_symbol_cache_statistics(), maintenance_print_target_stack(), maintenance_selftest(), maintenance_translate_address(), maybe_remove_breakpoints(), mdebug_read_symtab(), mention(), merge_uploaded_trace_state_variables(), merge_uploaded_tracepoints(), normal_stop(), output_source_filename(), parse_external(), parse_find_args(), prepare_one_step(), print_bcache_statistics(), print_bfd_flags(), print_bfd_section_info(), print_bit_vector(), print_command_trace(), print_cplus_stuff(), print_disassembly(), print_mem(), print_mention_catch_exec(), print_mention_catch_fork(), print_mention_catch_solib(), print_mention_catch_syscall(), print_mention_catch_vfork(), print_mention_ranged_breakpoint(), print_msymbol_info(), print_object_command(), print_objfile_statistics(), print_one_vtable(), print_percentage(), print_program_space(), print_sal_location(), print_section_info(), print_source_lines_base(), print_symbol_bcache_statistics(), print_symbol_info(), print_value(), print_value_flags(), procfs_attach(), procfs_detach(), procfs_files_info(), procfs_info_proc(), procfs_meminfo(), procfs_open_1(), procfs_pidlist(), procfs_wait(), psym_dump(), psym_print_stats(), psymtab_to_symtab_1(), rbreak_command(), read_frame(), read_memory_backward(), record_full_goto_entry(), record_full_info(), record_full_restore(), record_full_save(), recursive_dump_type(), reg_flush_command(), remote_btrace_maybe_reopen(), remote_file_delete(), remote_file_get(), remote_file_put(), remote_start_remote(), remote_wait_as(), remove_threaded_breakpoints(), resolve_subexp(), restore_binary_file(), restore_command(), restore_section_callback(), reverse_search_command(), save_bookmark_command(), save_breakpoints(), say_where(), set_breakpoint_condition(), set_environment_command(), set_ignore_count(), set_input_radix_1(), set_observer_mode(), set_output_radix_1(), set_radix(), show_commands(), show_convenience(), show_copying_command(), show_language_command(), show_mask_address(), show_memory_packet_size(), show_packet_config_cmd(), show_radix(), show_substitute_path_command(), show_tdesc_filename_cmd(), show_values(), show_version(), show_warranty_command(), sig_print_header(), sig_print_info(), signal_catchpoint_print_it(), signal_catchpoint_print_mention(), signal_command(), skip_command(), skip_file_command(), skip_function(), stop_command(), stopat_command(), stopin_command(), collection_list::stringify(), symbol_cache_dump(), symbol_cache_stats(), symtab_symbol_info(), task_command_1(), tdump_command(), tfile_files_info(), tfind_1(), tfind_line_command(), tfind_outside_command(), tfind_range_command(), thread_apply_all_command(), thread_apply_command(), thread_command(), thread_find_command(), trace_dump_actions(), trace_pass_set_count(), trace_variable_command(), tracepoint_print_mention(), tsave_command(), tstatus_command(), tui_all_windows_info(), tui_set_focus(), tui_set_win_height(), tvariables_info_1(), unset_command(), update_global_location_list(), update_observer_mode(), update_watchpoint(), whatis_exp(), xcoff_psymtab_to_symtab_1(), and xcoff_read_symtab().
| void printf_unfiltered | ( | const char * | format, |
| ... | |||
| ) |
Definition at line 2056 of file utils.c.
References gdb_stdout, and vfprintf_unfiltered().
Referenced by aarch64_linux_syscall_record(), aarch64_process_record(), add_inferior(), add_symbol_file_command(), add_thread_with_info(), amd64_linux_syscall_record_common(), annotate_breakpoints_invalid(), annotate_frames_invalid(), annotate_new_thread(), annotate_thread_changed(), append_command(), arm_linux_syscall_record(), arm_process_record(), arm_record_coproc_data_proc(), arm_record_unsupported_insn(), ATTRIBUTE_PRINTF(), avr_io_reg_read_command(), binary_append_command(), binary_dump_command(), btrace_maint_print_packets(), build_id_to_debug_bfd(), check_for_thread_db(), clear_command(), cmd_record_delete(), cmd_record_stop(), cmd_set_record_btrace_bts(), cmd_set_record_btrace_pt(), command_line_handler(), complete_command(), core_process_module_section(), create_user_mem_region(), darwin_attach(), darwin_debug_port_info(), darwin_decode_message(), darwin_detach(), darwin_dump_message(), darwin_set_sstep(), decode_insn(), decode_line_2(), default_terminal_info(), detach_inferior(), disable_display(), disp_exception(), dump_command(), exec_file_attach(), exec_file_clear(), exit_inferior(), exit_lwp(), extended_remote_attach(), fetch_inferior_event(), find_separate_debug_file(), find_separate_debug_file_by_buildid(), first_component_command(), follow_exec(), get_task_from_args(), get_tracepoint_by_number(), get_windows_debug_event(), getpkt_or_notif_sane_1(), gnu_attach(), gnu_detach(), go32_files_info(), go32_resume(), go32_terminal_info(), handle_command(), handle_exception(), handle_file_event(), handle_line_of_input(), i386_darwin_fetch_inferior_registers(), i386_linux_intx80_sysenter_syscall_record(), i386_mpx_info_bounds(), i386_process_record(), ihex_dump_command(), inf_ptrace_attach(), inferior_debug(), inferior_event_handler(), info_adi_command(), info_command(), info_display_command(), info_guile_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_mem_command(), info_spu_command(), info_target_command(), jit_bfd_try_read_symtab(), jit_event_handler(), jit_inferior_init(), jit_read_descriptor(), language_info(), lm_addr_check(), macho_add_oso_symfile(), macho_symfile_read(), macho_symfile_relocate(), macro_command(), maint_btrace_packet_history_cmd(), maint_cplus_command(), maint_info_btrace_cmd(), maintenance_check_command(), maintenance_command(), maintenance_cplus_namespace(), maintenance_deprecate(), maintenance_info_command(), maintenance_print_command(), maintenance_set_cmd(), maintenance_space_display(), maintenance_time_display(), maintenance_undeprecate(), map_breakpoint_number_range(), map_display_numbers(), map_overlay_command(), mdebug_build_psymtabs(), mem_delete(), mem_disable(), mem_enable(), mips_show_dr(), moxie_process_readu(), new_ui_command(), overlay_auto_command(), overlay_command(), overlay_manual_command(), overlay_off_command(), ppc_linux_syscall_record(), ppc_process_record(), print_c_tdesc::print_c_tdesc(), print_c_tdesc::printf_field_type_assignment(), procfs_attach(), procfs_files_info(), procfs_wait(), prompt_for_continue(), pwd_command(), read_command_lines(), record_btrace_call_history(), record_btrace_info(), record_btrace_insn_history(), record_btrace_print_bts_conf(), record_btrace_print_conf(), record_btrace_print_pt_conf(), record_linux_system_call(), reload_shared_libraries_1(), remote_hostio_open(), require_partial_symbols(), reread_symbols(), s390_linux_syscall_record(), save_command(), separate_debug_file_exists(), serial_set_cmd(), set_ada_command(), set_architecture(), set_arm_command(), set_check(), set_dcache_command(), set_debug(), set_endian(), set_history(), set_logging_command(), set_mips_command(), set_mipsfpu_command(), set_powerpc_command(), set_print(), set_print_raw(), set_print_type(), set_ravenscar_command(), set_record_command(), set_record_full_command(), set_sh_command(), set_task_cmd(), set_thread_cmd(), set_thread_default_cmd(), show_convenience(), show_exceptions_cmd(), show_logging_command(), show_mipsfpu_command(), show_sig_thread_cmd(), show_signals_cmd(), show_stopped_cmd(), show_system_call_allowed(), show_task_detach_sc_cmd(), show_task_pause_cmd(), show_thread_cmd(), show_thread_default_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(), signal_command(), solib_add(), srec_dump_command(), stdin_event_handler(), svr4_exec_displacement(), symbol_file_add_with_addrs(), symbol_file_clear(), target_announce_detach(), tekhex_dump_command(), tfind_1(), thread_takeover_sc_cmd(), thumb_record_ldm_stm_swi(), thumb_record_misc(), try_thread_db_load_1(), tui_command(), tui_reg_command(), tui_set_source_content(), unwind_command(), update_breakpoint_locations(), user_select_syms(), verilog_dump_command(), print_c_tdesc::visit(), print_c_feature::visit(), print_c_tdesc::visit_post(), print_c_feature::visit_post(), print_c_tdesc::visit_pre(), print_c_feature::visit_pre(), windows_attach(), windows_delete_thread(), windows_detach(), windows_files_info(), and scoped_command_stats::~scoped_command_stats().
| void printfi_filtered | ( | int | spaces, |
| const char * | format, | ||
| ... | |||
| ) |
Definition at line 2069 of file utils.c.
References gdb_stdout, print_spaces_filtered(), and vfprintf_filtered().
Referenced by display_descriptor(), dump_fn_fieldlists(), print_args(), print_cplus_stuff(), print_gnat_stuff(), and recursive_dump_type().
|
static |
Definition at line 1491 of file utils.c.
References annotation_level, do_cleanups(), dont_repeat(), gdb_readline_wrapper(), ignore(), make_cleanup(), null_cleanup(), printf_unfiltered(), reinitialize_more_filter(), throw_quit(), and xfree().
Referenced by fputs_maybe_filtered().
| int putchar_filtered | ( | int | c | ) |
Definition at line 1829 of file utils.c.
References fputc_filtered(), and gdb_stdout.
Referenced by info_checkpoints_command(), and info_common_command_for_block().
| int putchar_unfiltered | ( | int | c | ) |
Definition at line 1817 of file utils.c.
References gdb_stdout, and ui_file_write().
Referenced by clear_command(), putpkt_binary(), and unwind_command().
| void puts_debug | ( | char * | prefix, |
| char * | string, | ||
| char * | suffix | ||
| ) |
Definition at line 1858 of file utils.c.
References fprintf_unfiltered(), fputc_unfiltered(), fputs_unfiltered(), and gdb_stdlog.
| void puts_filtered | ( | const char * | string | ) |
Definition at line 2085 of file utils.c.
References fputs_filtered(), and gdb_stdout.
Referenced by begin_line(), display_descriptor(), display_page_table(), display_ptable_entry(), display_selector(), display_selectors(), do_one_display(), environment_info(), exec_files_info(), go32_pde(), go32_pte(), go32_pte_for_address(), go32_sldt(), info_display_command(), info_frame_command(), linux_info_proc(), list_overlays_command(), macro_inform_no_debuginfo(), maintenance_check_psymtabs(), packet_command(), path_info(), print_bit_vector(), print_cplus_stuff(), print_mem(), print_packet(), recursive_dump_type(), remote_detach_1(), remote_disconnect(), remote_files_info(), remote_open_1(), restore_section_callback(), show_directories_1(), and wrap_here().
| void puts_filtered_tabular | ( | char * | string, |
| int | width, | ||
| int | right | ||
| ) |
Definition at line 1639 of file utils.c.
References chars_per_line, chars_printed, fputs_filtered(), gdb_assert, gdb_stdout, and UINT_MAX.
Referenced by info_classes_command(), and info_selectors_command().
| void puts_unfiltered | ( | const char * | string | ) |
Definition at line 2091 of file utils.c.
References fputs_unfiltered(), and gdb_stdout.
Referenced by command_line_input(), handle_line_of_input(), jit_bfd_try_read_symtab(), and mips_show_dr().
| int query | ( | const char * | ctlstr, |
| ... | |||
| ) |
Definition at line 1063 of file utils.c.
Referenced by add_symbol_file_command(), attach_command(), ATTRIBUTE_PRINTF(), avr_io_reg_read_command(), cmd_record_delete(), define_command(), delete_bookmark_command(), delete_command(), delete_mem_command(), delete_trace_command(), delete_trace_variable_command(), directory_command(), do_detach(), exec_file_command(), find_definition(), finish_command(), handle_command(), inf_validate_task_sc(), interrupt_query(), jump_command(), kill_command(), kill_if_already_running(), maintenance_dump_me(), open_symbol_file_object(), query_if_trace_running(), quit_confirm(), record_full_store_registers(), record_full_xfer_partial(), remote_open_1(), remote_serial_quit_handler(), remove_symbol_file_command(), return_command(), set_memory_packet_size(), signal_command(), symbol_file_add_with_addrs(), symbol_file_clear(), target_preopen(), tstart_command(), undisplay_command(), unset_environment_command(), and unset_substitute_path_command().
| void quit | ( | void | ) |
Definition at line 731 of file utils.c.
References job_control, quit_force(), sync_quit_force_run, target_supports_terminal_ours(), and throw_quit().
Referenced by default_quit_handler(), gdbsim_interrupt_inferior(), gdbsim_wait(), interrupt_query(), maybe_quit(), pyuw_sniffer(), remote_fileio_quit_handler(), remote_pass_ctrlc(), and remote_serial_quit_handler().
| void reinitialize_more_filter | ( | void | ) |
Definition at line 1568 of file utils.c.
References chars_printed, and lines_printed.
Referenced by avr_io_reg_read_command(), command_handler(), prompt_for_continue(), and tui_rl_command_key().
| void reset_prompt_for_continue_wait_time | ( | void | ) |
Definition at line 1550 of file utils.c.
Referenced by scoped_command_stats::scoped_command_stats().
|
static |
Definition at line 1468 of file utils.c.
References set_screen_size().
Referenced by initialize_utils().
|
static |
Definition at line 555 of file utils.c.
Referenced by add_internal_problem_command().
|
static |
Definition at line 1426 of file utils.c.
References chars_per_line, INT_MAX, and lines_per_page.
Referenced by init_page_info(), set_height_command(), set_screen_width_and_height(), set_width_command(), and set_batch_flag_and_restore_page_info::~set_batch_flag_and_restore_page_info().
| void set_screen_width_and_height | ( | int | width, |
| int | height | ||
| ) |
Definition at line 1476 of file utils.c.
References chars_per_line, lines_per_page, set_screen_size(), and set_width().
Referenced by tui_update_gdb_sizes().
|
static |
Definition at line 1445 of file utils.c.
References chars_per_line, init_page_info(), wrap_buffer, wrap_pointer, xmalloc(), and xrealloc().
Referenced by init_page_info(), set_screen_width_and_height(), set_width_command(), and set_batch_flag_and_restore_page_info::~set_batch_flag_and_restore_page_info().
|
static |
Definition at line 1461 of file utils.c.
References set_screen_size(), and set_width().
Referenced by initialize_utils().
|
static |
Definition at line 1302 of file utils.c.
References _, and fprintf_filtered().
Referenced by initialize_utils().
|
static |
Definition at line 2668 of file utils.c.
References _, and fprintf_filtered().
Referenced by initialize_utils().
|
static |
Definition at line 560 of file utils.c.
Referenced by add_internal_problem_command().
|
static |
Definition at line 1291 of file utils.c.
References _, and fprintf_filtered().
Referenced by initialize_utils().
|
static |
Definition at line 130 of file utils.c.
References _, and fprintf_filtered().
Referenced by initialize_utils().
|
static |
Definition at line 2253 of file utils.c.
References name, startswith(), and valid_identifier_name_char().
Referenced by strncmp_iw_with_mode().
|
static |
Definition at line 2226 of file utils.c.
Referenced by strncmp_iw_with_mode().
| int strcmp_iw | ( | const char * | string1, |
| const char * | string2 | ||
| ) |
Definition at line 2517 of file utils.c.
References language_minimal, MATCH_PARAMS, and strncmp_iw_with_mode().
Referenced by check_field(), do_search_struct_field(), dw2_debug_names_lookup_symbol(), find_method_list(), gdbscm_type_field(), gdbscm_type_has_field_p(), lookup_struct_elt_type(), read_member_functions(), search_struct_method(), skiplist_entry::skip_function_p(), skip_prologue_sal(), typy_getitem(), and typy_has_key().
| int strcmp_iw_ordered | ( | const char * | string1, |
| const char * | string2 | ||
| ) |
Definition at line 2561 of file utils.c.
References case_sensitive_off, and case_sensitive_on.
Referenced by compare_names_with_case(), lookup_partial_symbol(), and sort_pst_symbols().
| int streq | ( | const char * | lhs, |
| const char * | rhs | ||
| ) |
Definition at line 2641 of file utils.c.
Referenced by _initialize_ada_language(), ambiguous_names_p(), completion_tracker::completion_tracker(), cp_find_type_baseclass_by_name(), and completion_tracker::discard_completions().
| CORE_ADDR string_to_core_addr | ( | const char * | my_string | ) |
Definition at line 2805 of file utils.c.
Referenced by mi_cmd_var_create().
| const char* strip_leading_path_elements | ( | const char * | path, |
| int | n | ||
| ) |
Definition at line 3401 of file utils.c.
References gdb_assert.
Referenced by compare_glob_filenames_for_search().
| int strncmp_iw | ( | const char * | string1, |
| const char * | string2, | ||
| size_t | string2_len | ||
| ) |
Definition at line 2508 of file utils.c.
References language_minimal, NORMAL, and strncmp_iw_with_mode().
Referenced by completion_tracker::completes_to_completion_word().
| 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 | ||
| ) |
Definition at line 2277 of file utils.c.
References case_sensitive_off, case_sensitive_on, cp_is_operator(), CP_OPERATOR_LEN, cp_skip_operator_token(), language_cplus, language_fortran, language_rust, completion_match_for_lcd::mark_ignored_range(), NORMAL, skip_abi_tag(), skip_spaces(), skip_ws(), and valid_identifier_name_char().
Referenced by cp_fq_symbol_name_matches(), cp_symbol_name_matches_1(), default_symbol_name_matcher(), strcmp_iw(), and strncmp_iw().
| int subset_compare | ( | const char * | string_to_compare, |
| const char * | template_string | ||
| ) |
Definition at line 2654 of file utils.c.
References startswith().
Referenced by backtrace_command(), tui_set_focus(), and tui_set_layout_by_name().
| void substitute_path_component | ( | char ** | stringp, |
| const char * | from, | ||
| const char * | to | ||
| ) |
Definition at line 3203 of file utils.c.
References DIRNAME_SEPARATOR, string, and xrealloc().
Referenced by VEC().
| void throw_perror_with_name | ( | enum errors | errcode, |
| const char * | string | ||
| ) |
Definition at line 676 of file utils.c.
References _, perror_string(), string, and throw_error().
Referenced by perror_with_name().
|
static |
Definition at line 2162 of file utils.c.
Referenced by cp_is_operator(), cp_skip_operator_token(), skip_abi_tag(), and strncmp_iw_with_mode().
| void verror | ( | const char * | string, |
| va_list | args | ||
| ) |
Definition at line 249 of file utils.c.
References GENERIC_ERROR, and throw_verror().
| void vfprintf_filtered | ( | struct ui_file * | stream, |
| const char * | format, | ||
| va_list | args | ||
| ) |
Definition at line 1963 of file utils.c.
References vfprintf_maybe_filtered().
Referenced by ATTRIBUTE_PRINTF(), cli_ui_out::do_field_fmt(), exception_fprintf(), fprintf_filtered(), fprintfi_filtered(), gdb_os_evprintf_filtered(), gdb_os_printf_filtered(), gdb_os_vprintf_filtered(), cli_ui_out::out_field_fmt(), printf_filtered(), printfi_filtered(), ps_plog(), and range_error().
|
static |
Definition at line 88 of file utils.c.
Referenced by vfprintf_filtered(), and vprintf_filtered().
|
static |
Definition at line 1954 of file utils.c.
References fputs_maybe_filtered(), string, and string_vprintf().
| void vfprintf_unfiltered | ( | struct ui_file * | stream, |
| const char * | format, | ||
| va_list | args | ||
| ) |
Definition at line 1969 of file utils.c.
References fputs_unfiltered(), gdb_stdlog, gdb.printer.bound_registers::long, string, string_printf(), string_vprintf(), and timestamp().
Referenced by debug_vprintf(), mi_ui_out::do_field_fmt(), cli_ui_out::do_message(), file_is_auto_load_safe(), fprintf_unfiltered(), parser_fprintf(), ui_file::printf(), printf_unfiltered(), ui_file::vprintf(), vprintf_unfiltered(), and vwarning().
| void vprintf_filtered | ( | const char * | format, |
| va_list | args | ||
| ) |
Definition at line 1996 of file utils.c.
References gdb_stdout, and vfprintf_maybe_filtered().
Referenced by ambiguous_line_spec().
| void vprintf_unfiltered | ( | const char * | format, |
| va_list | args | ||
| ) |
Definition at line 2002 of file utils.c.
References gdb_stdout, and vfprintf_unfiltered().
Referenced by ATTRIBUTE_PRINTF(), inferior_debug(), and print_c_tdesc::printf_field_type_assignment().
| void vwarning | ( | const char * | string, |
| va_list | args | ||
| ) |
Definition at line 222 of file utils.c.
References deprecated_warning_hook, gdb::optional< T >::emplace(), filtered_printing_initialized(), fprintf_unfiltered(), fputs_unfiltered(), gdb_flush(), gdb_stderr, gdb_stdout, target_terminal::ours_for_output(), string, target_supports_terminal_ours(), vfprintf_unfiltered(), warning_pre_print, and wrap_here().
| pid_t wait_to_die_with_timeout | ( | pid_t | pid, |
| int * | status, | ||
| int | timeout | ||
| ) |
Definition at line 3266 of file utils.c.
References gdb_assert, ofunc, pid, status, and WNOHANG.
Referenced by pipe_close().
| void warn_cant_dump_core | ( | const char * | reason | ) |
Definition at line 320 of file utils.c.
References _, fprintf_unfiltered(), and gdb_stderr.
Referenced by can_dump_core_warn(), and gdb_demangle().
| void wrap_here | ( | const char * | indent | ) |
Definition at line 1596 of file utils.c.
References _, chars_per_line, chars_printed, fputs_unfiltered(), gdb_stdout, internal_error(), puts_filtered(), UINT_MAX, wrap_buffer, wrap_column, wrap_indent, and wrap_pointer.
Referenced by ATTRIBUTE_PRINTF(), c_type_print_args(), c_type_print_base_1(), c_type_print_template_args(), captured_main_1(), command_line_input(), cp_print_value_fields(), cp_type_print_derivation_info(), cp_type_print_method_args(), dbx_psymtab_to_symtab_1(), cli_ui_out::do_wrap_hint(), mi_ui_out::do_wrap_hint(), dump_objfile(), echo_command(), f_type_print_base(), find_instruction_backward(), fputs_maybe_filtered(), help_list(), info_frame_command(), info_line_command(), m2_enum(), m2_print_type(), m2_procedure(), m2_record_fields(), maintenance_check_symtabs(), maintenance_info_psymtabs(), maintenance_info_sections(), maintenance_info_symtabs(), output_command_const(), output_source_filename(), pascal_object_print_value_fields(), pascal_print_func_args(), pascal_type_print_base(), ppscm_print_children(), print_array_type(), print_children(), print_enum_type(), print_field_values(), print_flush(), print_formatted(), print_func_type(), print_section_info(), psym_dump(), psymtab_to_symtab_1(), require_partial_symbols(), reread_symbols(), show_disassembler_options_sfunc(), symbol_file_add_with_addrs(), tfind_line_command(), val_print_array_elements(), val_print_packed_array_elements(), vwarning(), and xcoff_psymtab_to_symtab_1().
| int yquery | ( | const char * | ctlstr, |
| ... | |||
| ) |
Definition at line 1046 of file utils.c.
Referenced by i386_process_record(), i386_record_lea_modrm(), record_full_check_insn_num(), and record_linux_system_call().
|
static |
Definition at line 1300 of file utils.c.
Referenced by fputs_maybe_filtered(), init_page_info(), initialize_utils(), puts_filtered_tabular(), set_screen_size(), set_screen_width_and_height(), set_width(), wrap_here(), and set_batch_flag_and_restore_page_info::~set_batch_flag_and_restore_page_info().
|
static |
Definition at line 1312 of file utils.c.
Referenced by begin_line(), fputs_maybe_filtered(), puts_filtered_tabular(), reinitialize_more_filter(), and wrap_here().
|
static |
Definition at line 532 of file utils.c.
Referenced by _initialize_utils(), and demangler_vwarning().
| void(* deprecated_error_begin_hook) (void) |
Definition at line 84 of file utils.c.
Referenced by clear_interpreter_hooks(), and print_flush().
|
static |
Definition at line 511 of file utils.c.
Referenced by _initialize_utils(), and internal_verror().
| const char internal_problem_ask[] = "ask" |
Definition at line 346 of file utils.c.
Referenced by ATTRIBUTE_PRINTF().
|
static |
Definition at line 349 of file utils.c.
Referenced by add_internal_problem_command().
| const char internal_problem_no[] = "no" |
Definition at line 348 of file utils.c.
Referenced by ATTRIBUTE_PRINTF().
| const char internal_problem_yes[] = "yes" |
Definition at line 347 of file utils.c.
Referenced by ATTRIBUTE_PRINTF().
|
static |
Definition at line 522 of file utils.c.
Referenced by _initialize_utils(), and internal_vwarning().
|
static |
Definition at line 1289 of file utils.c.
Referenced by fputs_maybe_filtered(), init_page_info(), initialize_utils(), set_screen_size(), set_screen_width_and_height(), and set_batch_flag_and_restore_page_info::~set_batch_flag_and_restore_page_info().
|
static |
Definition at line 1312 of file utils.c.
Referenced by fputs_maybe_filtered(), and reinitialize_more_filter().
| int pagination_enabled = 1 |
Definition at line 128 of file utils.c.
Referenced by fputs_maybe_filtered(), gdb_display_match_list_1(), initialize_utils(), set_observer_mode(), and tui_register_format().
| const char* warning_pre_print = "\nwarning: " |
Definition at line 126 of file utils.c.
Referenced by captured_main_1(), and vwarning().
|
static |
Definition at line 1325 of file utils.c.
Referenced by filtered_printing_initialized(), fputs_maybe_filtered(), set_width(), and wrap_here().
|
static |
Definition at line 1336 of file utils.c.
Referenced by fputs_maybe_filtered(), and wrap_here().
|
static |
Definition at line 1332 of file utils.c.
Referenced by fputs_maybe_filtered(), print_one_static_tracepoint_marker(), wrap_here(), and wrap_indent_at_field().
|
static |
Definition at line 1328 of file utils.c.
Referenced by fputs_maybe_filtered(), set_width(), and wrap_here().
1.8.14