GDB (xrefs)
Macros | Functions
common-utils.c File Reference
#include "common-defs.h"
#include "host-defs.h"
#include <ctype.h>

Go to the source code of this file.

Macros

#define HIGH_BYTE_POSN   ((sizeof (ULONGEST) - 1) * HOST_CHAR_BIT)
 

Functions

PTR xmalloc (size_t size)
 
PTR xrealloc (PTR ptr, size_t size)
 
PTR xcalloc (size_t number, size_t size)
 
void * xzalloc (size_t size)
 
void xfree (void *ptr)
 
char * xstrprintf (const char *format,...)
 
char * xstrvprintf (const char *format, va_list ap)
 
int xsnprintf (char *str, size_t size, const char *format,...)
 
char * savestring (const char *ptr, size_t len)
 
static int is_digit_in_base (unsigned char digit, int base)
 
static int digit_to_int (unsigned char c)
 
ULONGEST strtoulst (const char *num, const char **trailer, int base)
 
char * skip_spaces (char *chp)
 
const char * skip_spaces_const (const char *chp)
 
const char * skip_to_space_const (const char *chp)
 

Macro Definition Documentation

#define HIGH_BYTE_POSN   ((sizeof (ULONGEST) - 1) * HOST_CHAR_BIT)

Definition at line 160 of file common-utils.c.

Referenced by strtoulst().

Function Documentation

static int digit_to_int ( unsigned char  c)
static

Definition at line 177 of file common-utils.c.

Referenced by strtoulst().

static int is_digit_in_base ( unsigned char  digit,
int  base 
)
static

Definition at line 166 of file common-utils.c.

Referenced by strtoulst().

char* savestring ( const char *  ptr,
size_t  len 
)
char* skip_spaces ( char *  chp)
const char* skip_spaces_const ( const char *  chp)
const char* skip_to_space_const ( const char *  chp)
ULONGEST strtoulst ( const char *  num,
const char **  trailer,
int  base 
)
PTR xcalloc ( size_t  number,
size_t  size 
)

Definition at line 71 of file common-utils.c.

References malloc_failure().

Referenced by _initialize_ada_language(), _initialize_demangler(), _initialize_gdb_bfd(), _initialize_record_btrace(), _initialize_tailcall_frame(), aarch64_add_process(), aarch64_gdbarch_init(), add_displaced_stepping_state(), add_thread_db_info(), ambiguous_names_p(), arm_gdbarch_init(), arm_linux_add_process(), compute_compunit_symtab_includes(), create_demangled_names_hash(), create_filename_seen_cache(), create_quick_file_names_table(), create_strtab(), create_symbol_hash_table(), create_typedef_hash(), dict_create_hashed_expandable(), dsbt_current_sos(), dsbt_relocate_main_executable(), dw2_expand_symtabs_matching(), dw2_map_symbol_filenames(), dwarf_decode_macros(), expand_hashtable(), frv_current_sos(), frv_relocate_main_executable(), gdb_bfd_open(), gdbscm_create_eqable_gsmob_ptr_map(), gdbscm_initialize_smobs(), generate_c_for_for_one_variable(), generate_c_for_variable_locations(), gnuv3_print_vtable(), init_collection_list(), linespec_state_constructor(), linux_xfer_osdata_processes(), load_section_callback(), m32c_gdbarch_init(), mi_cmd_data_read_memory(), new_compile_instance(), new_completion_tracker(), new_dwarf_expr_context(), new_thread(), nios2_gdbarch_init(), nto_parse_redirection(), record_full_end_alloc(), record_full_mem_alloc(), record_full_reg_alloc(), register_solib_event_probe(), remote_register_number_and_offset(), resize_symbol_cache(), save_bookmark_command(), tic6x_gdbarch_init(), VEC(), write_psymtabs_to_index(), x86_add_process(), and xzalloc().

void xfree ( void *  ptr)

Definition at line 97 of file common-utils.c.

Referenced by _initialize_ada_language(), _initialize_auto_load(), _initialize_gdb_bfd(), _initialize_record_btrace(), _initialize_tailcall_frame(), _initialize_tui_interp(), _proc_free(), aarch64_forget_process(), abbrev_table_free(), abbrev_table_read_table(), ada_catchpoint_location_dtor(), ada_free_symbol_cache(), ada_inferior_data_cleanup(), ada_main_name(), ada_print_floating(), ada_pspace_data_cleanup(), ada_unhandled_exception_name_addr_from_raise(), ada_varobj_describe_simple_array_child(), ada_varobj_get_value_of_array_variable(), add_angle_brackets(), add_auto_load_dir(), add_auto_load_safe_path(), add_inferior_command(), add_internal_problem_command(), add_language(), add_msglist(), add_packet_config_cmd(), add_partial_symbol(), add_path(), add_pe_exported_sym(), add_pe_forwarded_sym(), add_solib_catchpoint(), add_symbol_file_command(), addr_info_make_relative(), advance_command(), aix_thread_extra_thread_info(), aix_thread_pid_to_str(), alias_command(), all_tracepoint_actions_and_cleanup(), allocate_objfile(), allocate_psymtab(), allocate_symtab(), ambiguous_names_p(), apropos_command(), archpy_disassemble(), arg_cleanup(), arm_adjust_breakpoint_address(), arm_exidx_new_objfile(), arm_linux_forget_process(), arrange_linetable(), attach_command(), attach_command_continuation_free_args(), ATTRIBUTE_PRINTF(), auto_load_objfile_script(), auto_load_objfile_script_1(), auto_load_pspace_data_cleanup(), auto_load_safe_path_vec_update(), auto_load_section_scripts(), auxv_inferior_data_cleanup(), avr_io_reg_read_command(), backtrace_command(), base_breakpoint_dtor(), bcache_xfree(), bfd_lookup_symbol_from_dyn_symtab(), bfd_uses_spe_extensions(), bp_location_dtor(), bppy_get_commands(), bppy_init(), bppy_set_condition(), bpstat_check_watchpoint(), bpstat_free(), break_range_command(), breakpoint_re_set(), breakpoint_re_set_default(), bsd_kvm_open(), btrace_clear(), btrace_clear_history(), btrace_data_append(), btrace_data_fini(), btrace_maint_clear(), btrace_read_config(), buffer_free(), buffer_xml_printf(), build_error_marker_type(), build_id_to_debug_bfd(), build_section_table(), build_type_psymtabs_1(), c_compute_program(), c_get_string(), c_type_print_base(), cache_unref(), call_function_by_hand_dummy(), captured_main(), catch_ada_exception_command_split(), catch_exception_command_1(), catch_syscall_inferior_data_cleanup(), catcher_pop(), cd_command(), chain_candidate(), check_fast_tracepoint_sals(), check_for_redefinition(), check_status_exception_catchpoint(), check_stub_method(), child_terminal_init_with_pgrp(), child_terminal_ours_1(), classify_name(), cleanup_mapped_symtab(), cleanup_request_data(), clear_collection_list(), clear_command(), clear_dangling_display_expressions(), clear_entries(), clear_header_list(), clear_internalvar(), clear_memory_write_data(), clear_parsing_data(), clear_section_table(), clear_so(), clear_table(), clear_threads_listing_context(), cli_uiout_dtor(), cmdpy_destroyer(), cmdpy_function(), cmdpy_init(), cmdscm_function(), coff_free_info(), coff_locate_sections(), coff_symfile_read(), coff_symtab_read(), command_from_pid(), command_line_handler(), command_line_input(), commandline_from_pid(), commands_command_1(), common_open(), compare_sections_command(), compile_file_command(), compile_object_load(), compile_object_run(), compile_rx_or_error(), compile_to_object(), complete_command(), compute_compunit_symtab_includes(), compute_enum_values(), compute_stack_depth(), continue_command(), convert_array(), convert_func(), convert_one_symbol(), convert_value_from_python(), copy_sections(), copy_terminal_info(), core_close(), core_open(), core_process_module_section(), cp_canonicalize_string(), cp_canonicalize_string_full(), cp_class_name_from_physname(), cp_demangled_name_parse_free(), cp_lookup_symbol_imports_or_template(), cp_print_value(), cp_search_static_and_baseclasses(), cppop(), create_all_comp_units(), create_breakpoint(), create_breakpoint_sal(), create_breakpoints_sal(), create_demangled_names_hash(), create_dwo_unit_in_dwp_v1(), create_dwo_unit_in_dwp_v2(), create_excep_cond_exprs(), create_filename_seen_cache(), create_quick_file_names_table(), create_sals_line_offset(), create_strtab(), create_symbol_hash_table(), create_tsv_from_upload(), create_type_unit_group(), create_typedef_hash(), ctf_start(), darwin_bfd_open(), darwin_current_sos(), darwin_mourn_inferior(), darwin_pspace_data_cleanup(), dbx_free_symfile_info(), dcache_free(), deallocate_reg_mem(), decimal_from_floating(), decode_line_2(), decode_line_full(), decode_loadmap(), decode_static_tracepoint_spec(), decref_counted_command_line(), default_make_symbol_completion_list_break_on_1(), define_symbol(), del_objfile_sal(), del_symbol_error(), delete_all_bookmarks(), delete_async_event_handler(), delete_async_signal_handler(), delete_breakpoint(), delete_cmd(), delete_file_handler(), delete_file_name_entry(), delete_filename_seen_cache(), delete_instance(), delete_one_bookmark(), delete_substitute_path_rule(), delete_symtab_entry(), delete_thread_db_info(), delete_thread_object(), delete_timer(), delete_trace_state_variable(), demangle_command(), demangle_for_lookup(), destroy_linespec_result(), destroy_one_procinfo(), dicos_load_module_p(), directory_command(), disable_probes_command(), disable_thread_stack_temporaries(), discard_infcall_control_state(), discard_infcall_suspend_state(), discard_my_cleanups(), discard_my_continuations_1(), displaced_step_fixup(), do_cleanup_end(), do_cleanup_iterator(), do_compile_dwarf_expr_to_c(), do_discard_minimal_symbols_cleanup(), do_map_commands_command(), do_module_cleanup(), do_my_cleanups(), do_my_continuations_1(), do_one_display(), do_serial_close(), do_set_command(), do_show_command(), document_command(), dsbt_clear_solib(), dsbt_current_sos(), dsbt_free_so(), dsbt_pspace_data_cleanup(), dsbt_relocate_main_executable(), dtor_catch_exec(), dtor_catch_solib(), dtor_exception(), dtor_exception_catchpoint(), dtor_watchpoint(), dtrace_get_probes(), dtrace_probe_destroy(), dummy_frame_context_saver_free(), dump_insns(), dump_memory_to_file(), dw2_expand_symtabs_matching(), dw2_free_cached_file_names(), dw2_map_symbol_filenames(), dwarf2_add_field(), dwarf2_add_member_fn(), dwarf2_add_typedef(), dwarf2_build_frame_info(), dwarf2_canonicalize_name(), dwarf2_compile_expr_to_ax(), dwarf2_compute_name(), dwarf2_frame_state_free(), dwarf2_frame_state_free_regs(), dwarf2_get_dwz_file(), dwarf2_name(), dwarf2_per_objfile_free(), dwarf2_physname(), dwarf2_release_queue(), dwarf2_start_subfile(), dwarf2_tailcall_sniffer_first(), dwarf_decode_macros(), edit_command(), elf_read_minimal_symbols(), elf_symfile_read(), enable_break(), enable_break2(), enable_probes_command(), end_arglist(), end_msglist(), end_stabs(), end_symtab_get_static_block(), enumerate_args(), enumerate_locals(), env_execute_cli_command(), error_stream(), error_symbol_once(), eval_command(), eval_compile_command(), evaluate_subexp_standard(), exec_close(), exec_file_attach(), exec_file_command(), exec_reverse_once(), execute_cfa_program(), execute_gdb_command(), execute_script_contents(), expand_hash_table(), expand_hashtable(), extend_buffer_earlier(), fbsd_collect_regset_section_cb(), fbsd_find_memory_regions(), fetch_loadmap(), file_is_auto_load_safe(), file_read_description_xml(), filter_args(), filter_results(), filter_sals(), finalize_symtab(), find_and_open_script(), find_and_open_source(), find_condition_and_thread(), find_file_and_directory(), find_frame_funname(), find_global_typedef(), find_linespec_symbols(), find_oload_champ(), find_oload_champ_namespace_loop(), find_overload_match(), find_separate_debug_file(), find_separate_debug_file_by_debuglink(), find_slot_in_mapped_hash(), find_source_lines(), finish_command(), finish_command_continuation_free_arg(), finish_global_stabs(), fixup_definition(), fixup_go_packaging(), fixup_partial_die(), fnpy_call(), follow_exec(), foreach_macro(), foreach_macro_in_scope(), forget_cached_source_info_for_objfile(), fprintf_symbol_filtered(), frame_info(), frapy_name(), frapy_read_var(), frapy_str(), free_actions_list(), free_address_space(), free_agent_expr(), free_bincl_list(), free_block(), free_bp_location(), free_buffer(), free_buildsym_compunit(), free_char_ptr_vec(), free_command_lines(), free_completion_list(), free_content(), free_content_elements(), free_current_contents(), free_current_marker(), free_display(), free_dwarf_expr_context(), free_environ(), free_ext_lang_type_printers(), free_fork(), free_format_pieces(), free_funcalls(), free_hashed_expandable(), free_header_files(), free_heap_comp_unit(), free_inferior(), free_line_header(), free_linear_expandable(), free_linetab(), free_lzma(), free_macro_definition_ptr(), free_memory_read_result_vector(), free_objfile(), free_objfile_data(), free_one_bfd_section(), free_pieced_value_closure(), free_pipe_state(), free_private_thread_info(), free_pv_area(), free_search_symbols(), free_section_addr_info(), free_so(), free_stringtab(), free_symbol_cache(), free_symfile_segment_data(), free_syscalls_info(), free_target_description(), free_thread(), free_traceframe_info(), free_typedef_hash(), free_uploaded_tps(), free_uploaded_tsvs(), free_variable(), free_xmethod_worker(), frscm_print_frame_smob(), frv_clear_solib(), frv_current_sos(), frv_free_so(), frv_relocate_main_executable(), func_command(), function_destroyer(), gcore_command(), gcore_copy_callback(), gdb_bfd_errmsg(), gdb_bfd_iovec_fileio_close(), gdb_bfd_lookup_symbol_from_symtab(), gdb_bfd_open(), gdb_demangle(), gdb_print_filename(), gdb_readline(), gdb_readline2(), gdb_readline_wrapper_cleanup(), gdb_realpath_keepfile(), gdb_safe_append_history(), gdb_save_tty_state(), gdb_xml_cleanup(), gdb_xml_create_parser_and_cleanup(), gdb_xml_debug(), gdb_xml_end_element(), gdb_xml_values_cleanup(), gdbarch_free(), gdbpy_before_prompt_hook(), gdbpy_decode_line(), gdbpy_eval_from_control_command(), gdbpy_finish_initialization(), gdbpy_free_xmethod_worker_data(), gdbpy_get_xmethod_arg_types(), gdbpy_parameter(), gdbpy_parse_command_name(), gdbpy_print_stack(), gdbpy_run_events(), gdbscm_arch_disassemble(), gdbscm_breakpoint_commands(), gdbscm_create_eqable_gsmob_ptr_map(), gdbscm_dynwind_xfree(), gdbscm_execute_objfile_script(), gdbscm_frame_name(), gdbscm_frame_read_register(), gdbscm_frame_read_var(), gdbscm_gsmob_kind(), gdbscm_initialize_smobs(), gdbscm_lookup_global_symbol(), gdbscm_lookup_symbol(), gdbscm_lookup_type(), gdbscm_make_arg_error(), gdbscm_make_breakpoint(), gdbscm_make_command(), gdbscm_make_parameter(), gdbscm_make_type_error(), gdbscm_memory_port_close(), gdbscm_parameter_value(), gdbscm_parse_and_eval(), gdbscm_parse_command_name(), gdbscm_parse_function_args(), gdbscm_printf(), gdbscm_register_command_x(), gdbscm_register_parameter_x(), gdbscm_safe_source_script(), gdbscm_scm_from_printf(), gdbscm_set_breakpoint_condition_x(), gdbscm_source_objfile_script(), gdbscm_string_to_argv(), gdbscm_type_field(), gdbscm_type_has_field_p(), gdbscm_type_print_name(), gdbscm_value_field(), gdbscm_value_print(), gdbscm_value_to_lazy_string(), gdbscm_value_to_string(), generate_c_for_for_one_variable(), generate_c_for_variable_locations(), generate_register_struct(), generate_vla_size(), generic_load(), get_core_register_section(), get_core_siginfo(), get_function_name(), get_inferior_args(), get_init_files(), get_osdata(), get_set_value(), get_show_value(), getpkt_or_notif_sane_1(), gnuv3_get_type_from_type_info(), gnuv3_get_typeid(), gnuv3_print_method_ptr(), gnuv3_print_vtable(), go32_create_inferior(), go_demangle(), go_symbol_package_name(), guess_full_die_structure_name(), guess_partial_die_structure_name(), h8300_push_dummy_call(), handle_gnu_v3_exceptions(), handle_inferior_event_1(), handle_output_debug_string(), hardwire_get_tty_state(), hash_expand(), hwdebug_insert_point(), hwdebug_remove_point(), i386_gdbarch_init(), inferior_has_bug(), inflow_inferior_data_cleanup(), inflow_inferior_exit(), info_auto_load_libthread_db(), info_mach_tasks_command(), info_probes_for_ops(), infpy_read_memory(), infrun_thread_stop_requested(), inherit_abstract_dies(), init_loaded_scripts_info(), init_psymbol_list(), insert_bp_location(), inspect_type(), install_new_value(), interp_set(), invalidate_linux_cache_inf(), ioscm_file_port_delete(), ioscm_reinit_memory_port(), is_known_support_routine(), iterate_over_symtabs(), java_class_name_from_physname(), java_type_print_base(), jit_dealloc_cache(), jit_object_close_impl(), jit_program_space_data_cleanup(), jit_reader_load_command(), jit_reader_try_read_symtab(), jit_reader_unload_command(), jump_command(), jv_per_objfile_free(), libunwind_load(), line_info(), linespec_parse_basic(), linespec_parser_delete(), linespec_state_constructor(), link_callbacks_einfo(), linux_collect_regset_section_cb(), linux_common_core_of_thread(), linux_core_info_proc_mappings(), linux_corefile_thread_callback(), linux_fill_prpsinfo(), linux_find_memory_regions_full(), linux_get_siginfo_data(), linux_grandchild_function(), linux_info_proc(), linux_make_corefile_notes(), linux_nat_attach(), linux_nat_wait(), linux_ptrace_attach_fail_reason_string(), linux_spu_make_corefile_notes(), linux_xfer_osdata_fds(), linux_xfer_osdata_processes(), linux_xfer_osdata_processgroups(), linux_xfer_osdata_threads(), list_args_or_locals(), list_command(), lm_info_read(), load_command(), load_progress(), local_setattro(), lookup_dwo_cutu(), lookup_minimal_symbol(), lookup_partial_symbol(), lookup_struct_elt_type(), lookup_symbol_from_bfd(), lsscm_free_lazy_string_smob(), lval_func_free_closure(), lwp_free(), lzma_close(), lzma_open(), lzma_pread(), m32c_m16c_address_to_pointer(), m32r_load(), macho_symfile_read(), macho_symfile_read_all_oso(), macro_bcache_free(), macro_free(), macro_include(), macro_lookup_definition(), macro_start_file(), macro_undef(), macro_undef_command(), main_info_cleanup(), maintenance_do_deprecate(), maintenance_print_msymbols(), maintenance_print_psymbols(), maintenance_print_symbols(), make_cleanup_close(), make_cleanup_discard_psymtabs(), make_cleanup_regcache_invalidate(), make_cleanup_restore_integer(), make_cleanup_restore_target_terminal(), make_cleanup_restore_ui_file(), make_command_stats_cleanup(), make_symbol_overload_list(), mangled_name_to_comp(), maybe_expand(), mbpy_dealloc(), mem_bfd_iovec_close(), mem_file_delete(), memory_error(), memory_xfer_partial(), method_name_from_physname(), mi_cmd_break_insert_1(), mi_cmd_data_read_memory(), mi_cmd_data_read_memory_bytes(), mi_cmd_data_write_memory(), mi_cmd_data_write_memory_bytes(), mi_cmd_disassemble(), mi_cmd_env_dir(), mi_cmd_env_path(), mi_cmd_interpreter_exec(), mi_cmd_thread_list_ids(), mi_cmd_thread_select(), mi_cmd_trace_find(), mi_cmd_trace_frame_collected(), mi_cmd_var_assign(), mi_cmd_var_create(), mi_cmd_var_evaluate_expression(), mi_cmd_var_info_expression(), mi_cmd_var_info_type(), mi_cmd_var_list_children(), mi_cmd_var_set_format(), mi_console_file_delete(), mi_execute_async_cli_command(), mi_execute_cli_command(), mi_execute_command(), mi_load_progress(), mi_parse(), mi_parse_free(), mips_error(), mips_linux_close(), mips_linux_remove_watchpoint(), monitor_close(), monitor_load(), monitor_open(), mt_push_dummy_call(), munmap_list_free(), n_spaces(), net_windows_close(), new_compile_instance(), new_completion_tracker(), notif_event_xfree(), objc_demangle(), objfile_relocate(), objfiles_pspace_data_cleanup(), objfpy_get_build_id(), obstack_xml_printf(), old_renaming_is_invisible(), open_and_init_dwp_file(), open_dwo_file(), open_symbol_file_object(), openp(), operator_stoken(), osdata_free(), osdata_item_clear(), output_cores(), overload_list_add_symbol(), parmpy_init(), parse_exp_in_context_1(), parse_expression_for_completion(), parse_float(), parse_frame_specification_1(), parse_linespec(), parse_macro_definition(), parse_number(), parse_partial_symbols(), parse_probes(), parse_scrolling_args(), parse_trace_status(), parse_xml_raw(), pascal_object_print_value(), pascal_val_print(), pascm_set_func(), pascm_set_param_value_x(), pascm_show_func(), pascm_signal_setshow_error(), patch_type(), path_command(), pdc_dealloc(), perror_warning_with_name(), pipe_close(), pmon_end_download(), poll_timers(), pop_current_type(), pop_dummy_frame(), pop_level(), pop_stack_item(), pop_subfile(), ppc_linux_get_syscall_number(), ppc_linux_thread_exit(), ppscm_make_pp_type_error_exception(), ppscm_print_children(), ppscm_print_exception_unless_memory_error(), ppscm_print_string_repr(), print_bcache_statistics(), print_children(), print_converted_chars_to_obstack(), print_decimal_chars(), print_doc_line(), print_frame(), print_frame_args(), print_mention_exception(), print_name_maybe_canonical(), print_one_breakpoint_location(), print_one_catch_solib(), print_one_catch_syscall(), print_one_exception(), print_return_value(), print_stack_unless_memory_error(), print_subexp_standard(), print_target_wait_results(), print_thread_info(), print_varobj(), proc_set_traced_sysentry(), proc_set_traced_sysexit(), process_enumeration_scope(), process_linenos(), process_next_line(), process_queue(), procfs_create_inferior(), procfs_debug_inferior(), procfs_meminfo(), procfs_open_1(), procfs_xfer_auxv(), prompt_for_continue(), psym_forget_cached_source_info(), psymbol_bcache_free(), psymtab_include_file_name(), psymtab_to_fullname(), psymtab_to_symtab_1(), pull_pid_from_list(), pushf_register(), pushf_register_address(), putpkt_binary(), pv_area_store(), py_free_inferior(), py_print_frame(), py_varobj_iter_next(), python_interactive_command(), python_run_simple_file(), pyuw_dealloc_cache(), quit_confirm(), re_set_exception_catchpoint(), read_alphacoff_dynamic_symtab(), read_baseclasses(), read_dbx_dynamic_symtab(), read_dbx_symtab(), read_frame(), read_member_functions(), read_pe_exported_syms(), read_program_header(), read_program_headers_from_bfd(), read_struct_fields(), read_type(), read_whatever_is_readable(), realloc_body_list(), really_free_pendings(), record_btrace_clear_histories(), record_btrace_start_replaying(), record_btrace_stop_replaying(), record_full_close(), record_full_core_open_1(), record_full_core_xfer_partial(), record_full_end_release(), record_full_goto_bookmark(), record_full_mem_release(), record_full_reg_release(), record_full_save_cleanups(), reg_value_free_impl(), regcache_dump(), regcache_xfree(), register_remote_support_xml(), register_solib_event_probe(), registers_changed_ptid(), registry_container_free_data(), release_program_space(), release_static_tracepoint_marker(), reload_shared_libraries_1(), relocate_gdb_directory(), remote_disable_btrace(), remote_file_get(), remote_file_put(), remote_fileio_func_read(), remote_fileio_func_write(), remote_fileio_reset(), remote_get_threads_with_qxfer(), remote_notif_state_xfree(), remote_open_1(), remote_pass_signals(), remote_pid_to_exec_file(), remote_program_signals(), remote_read_btrace(), remote_read_qxfer(), remote_register_number_and_offset(), remote_teardown_btrace(), remote_traceframe_info(), remove_displaced_stepping_state(), remove_dummy_frame(), remove_symbol_file_command(), reopen_exec_file(), replace_operator_with_call(), replace_typedefs(), replace_typedefs_qualified_name(), reread_symbols(), resize_symbol_cache(), restore_active_ext_lang(), restore_binary_file(), restore_current_thread_cleanup_dtor(), restore_current_traceframe_cleanup_dtor(), restore_infcall_control_state(), restore_inferior_ptid(), restore_python_env(), restore_section_callback(), return_command(), rs6000_aix_core_xfer_shared_libraries_aix(), rs6000_aix_shared_library_to_xml(), rs6000_xfer_shared_libraries(), run_command_1(), s390_remove_watchpoint(), salpy_dealloc(), salpy_str(), save_breakpoints(), save_infcall_suspend_state(), scan_dyntag_auxv(), scan_expression_with_cleanup(), scan_filename_with_cleanup(), scan_macro_expansion(), scan_xcoff_symtab(), score7_free_memblock(), sdata_make_value(), search_struct_method(), search_symbols(), select_source_symtab(), ser_console_close(), ser_windows_close(), serial_open(), serial_printf(), serial_unref(), set_auto_load_dir(), set_auto_load_safe_path(), set_breakpoint_condition(), set_cp_abi_as_auto_default(), set_directories_command(), set_environment_command(), set_ext_lang_command(), set_gdb_data_directory(), set_gnutarget(), set_in_environ(), set_inferior_args(), set_inferior_io_terminal(), set_last_source_file(), set_libthread_db_search_path(), set_logging_off(), set_logging_on(), set_main_name(), set_parameter_value(), set_prompt(), set_tdesc_filename_cmd(), show_pp_source_pos(), signal_command(), sim_inferior_data_cleanup(), simple_displaced_step_free_closure(), simple_free_overlay_table(), skip_delete_command(), solib_aix_bfd_open(), solib_aix_solib_create_inferior_hook(), solib_aix_xfree_lm_info(), solib_bfd_fopen(), solib_find_1(), solib_map_sections(), solib_target_current_sos(), solib_target_free_library_list(), solib_target_free_so(), sort_search_symbols_remove_dups(), source_script_file(), source_script_with_search(), source_verbose_cleanup(), spu_bfd_iovec_close(), spu_bfd_open(), spu_get_overlay_table(), stap_probe_destroy(), start_subfile(), startup_inferior(), stdio_file_delete(), step_1(), step_once(), stpy_dealloc(), strace_marker_create_breakpoints_sal(), stringify_collection_list(), svr4_clear_solib(), svr4_current_sos_via_xfer_libraries(), svr4_exec_displacement(), svr4_free_so(), svr4_keep_data_in_core(), svr4_pspace_data_cleanup(), svr4_read_so_list(), sym_info(), symbol_cache_clear_slot(), symbol_file_add_from_memory(), symbol_set_names(), symfile_bfd_open(), symfile_debug_free_objfile(), syms_from_objfile_1(), symtab_to_fullname(), sync_threadlists(), syscalls_info_free_syscalls_desc(), target_bfd_xclose(), target_debug_print_options(), target_debug_print_struct_target_waitstatus_p(), target_desc_info_free(), target_fileio_read_alloc_1(), target_read_alloc_1(), target_read_description_xml(), tdesc_data_cleanup(), tdesc_free_feature(), tdesc_free_reg(), tdesc_free_type(), tdesc_parse_xml(), tdesc_use_registers(), tee_file_delete(), tfile_close(), tfile_dtor(), tfile_open(), tfile_write_uploaded_tsv(), thpy_set_name(), thread_apply_all_command(), thread_apply_command(), thread_db_load_search(), thread_name_command(), throw_perror_with_name(), tilegx_push_dummy_call(), top_level_prompt(), trace_actions_command(), trace_file_writer_xfree(), trace_find_line_command(), trace_variable_command(), try_open_dwop_file(), try_thread_db_load_from_dir(), try_thread_db_load_from_pdir_1(), tui_alloc_content(), tui_alloc_source_buffer(), tui_del_window(), tui_disassemble(), tui_file_delete(), tui_find_disassembly_address(), tui_free_window(), tui_get_register(), tui_prep_terminal(), tui_set_disassem_content(), tui_set_focus(), tui_set_layout_by_name(), tui_set_source_content(), tui_set_win_height(), tui_show_locator_content(), tui_show_register_group(), tvariables_info_1(), type_stack_cleanup(), typy_lookup_type(), typy_str(), ui_file_delete(), ui_out_destroy(), ui_out_field_stream(), unexpected_linespec_error(), uninstall_symfile_debug_logging(), uninstall_variable(), unset_exec_wrapper_command(), unset_in_environ(), unset_tdesc_filename_cmd(), until_break_command(), until_command(), until_next_command(), unwind_infopy_str(), update_dynamic_varobj_children(), update_global_location_list(), update_section_map(), update_static_tracepoint(), update_type_if_necessary(), update_watchpoint(), val_print_string(), valpy_getitem(), valpy_str(), valpy_string(), value_concat(), value_free(), value_of_root(), varobj_clear_saved_item(), varobj_set_display_format(), varobj_set_value(), varobj_update_one(), varobj_value_get_print_value(), VEC(), verify_gdbarch(), vfprintf_maybe_filtered(), vfprintf_unfiltered(), vlscm_convert_typed_value_from_scheme(), vlscm_print_value_smob(), watch_command_1(), watch_main_source_file_lossage(), windows_delete_thread(), windows_free_so(), windows_init_thread_list(), windows_xfer_shared_library(), write_gcore_file_1(), write_psymtabs_to_index(), x86_forget_process(), xcoff_free_info(), xcoff_symfile_finish(), xfree_observer_list_node(), xinclude_start_include(), xml_fetch_content_from_file(), xml_init_syscalls_info(), xml_xinclude_cleanup(), xstormy16_push_dummy_call(), xtensa_register_type(), xtensa_verify_config(), yylex(), and yyparse().

PTR xmalloc ( size_t  size)

Definition at line 34 of file common-utils.c.

References malloc_failure().

Referenced by savestring().

PTR xrealloc ( PTR  ptr,
size_t  size 
)

Definition at line 51 of file common-utils.c.

References malloc_failure().

Referenced by abbrev_table_read_table(), add_aexpr(), add_bincl_to_list(), add_block(), add_cie(), add_fde(), add_file_name(), add_filename_language(), add_include_dir(), add_language(), add_memrange(), add_new_header_file(), add_piece(), add_sal_to_sals(), add_sal_to_sals_basic(), add_symbol_file_command(), add_symbol_linear_expandable(), add_this_object_header_file(), add_type_unit(), add_undefined_type_1(), add_undefined_type_noname(), allocate_include_entry(), append_args(), append_composite_type_field_raw(), append_name(), arrange_linetable(), ATTRIBUTE_PRINTF(), ax_reg_mask(), buffer_grow(), captured_main(), coff_lookup_type(), command_line_handler(), command_line_input(), commandline_from_pid(), completion_list_objc_symbol(), copy_name(), create_file_handler(), dbx_lookup_type(), decoded_type_name(), do_set_command(), do_ui_file_xstrdup(), dwarf2_add_member_fn(), dwarf2_build_frame_info(), dwarf2_frame_state_alloc_regs(), dwarf_expr_grow_stack(), elf_rel_plt_read(), extend_psymbol_list(), find_methods(), find_source_lines(), find_symbol_in_baseclass(), fork_save_infrun_state(), forward_search_command(), gather_arguments(), gdb_readline(), gdb_readline2(), get_memory_packet_size(), grow_expr(), grow_vect(), growbuf_by_size(), increase_expout_size(), init_environ(), init_remote_state(), initialize_current_architecture(), linux_common_core_of_thread(), linux_xfer_osdata_processgroups(), macro_define_command(), mem_file_write(), mi_cmd_trace_frame_collected(), mi_parse_argv(), my_write_child(), overload_list_add_symbol(), parse_find_args(), parse_macro_definition(), parse_partial_symbols(), parse_probes(), pdc_realloc(), process_enumeration_scope(), process_linenos(), push_context(), rbreak_command(), read_array_type(), read_comp_units_from_section(), read_frame(), read_pe_exported_syms(), read_pieced_value(), read_string(), reallocate_expout(), record_line(), ref_add(), remote_fileio_resize_fd_map(), remote_hostio_pread(), remote_query_supported(), resize_buffer(), resize_section_table(), rs6000_ptrace_ldinfo(), set_in_environ(), set_value_enclosing_type(), set_width(), shrink_linetable(), specify_exec_file_hook(), substitute_path_component(), sync_threadlists(), target_fileio_read_alloc_1(), target_read_alloc_1(), target_read_string(), trace_dump_actions(), tui_file_adjust_strbuf(), type_stack_reserve(), ui_printf(), update_section_map(), update_thread_private_data_name(), VEC(), vec_o_reserve(), wchar_iterate(), write_exp_elt(), write_pieced_value(), xml_fetch_content_from_file(), yylex(), and yyparse().

int xsnprintf ( char *  str,
size_t  size,
const char *  format,
  ... 
)

Definition at line 134 of file common-utils.c.

References gdb_assert.

Referenced by _initialize_check_for_gdb_ini(), ada_decode(), ada_enum_name(), ada_to_fixed_type_1(), add_pe_forwarded_sym(), append_ocl_sos(), append_resumption(), arm_dwarf_reg_to_regnum(), arm_neon_quad_read(), arm_neon_quad_write(), arm_pseudo_read(), arm_pseudo_write(), arm_push_dummy_call(), arm_return_value(), bpfinishpy_init(), bsd_kvm_pid_to_str(), bsd_uthread_pid_to_str(), btrace_sync_conf(), cli_field_int(), cmd_record_save(), convert_between_encodings(), convert_char_literal(), core_pid_to_str(), core_xfer_partial(), cp_lookup_nested_symbol(), create_tracepoint_from_upload(), decimal2str(), define_command(), do_compile_dwarf_expr_to_c(), do_set_command(), document_command(), execute_control_command(), extended_remote_attach(), extended_remote_disable_randomization(), extended_remote_restart(), fbsd_pid_to_exec_file(), fetch_ppc_register(), fetch_register(), file_file_name(), find_old_style_renaming_symbol(), find_symbol_in_baseclass(), floatformat_mantissa(), gdb_connect_sync_socket(), gdb_display_match_list(), gdb_mangle_name(), gnu_pid_to_str(), hex_string(), host_address_to_string(), info_auto_load_libthread_db(), info_spu_dma_command(), info_spu_event_command(), info_spu_mailbox_command(), info_spu_proxydma_command(), info_spu_signal_command(), init_source_path(), interp_set(), linux_fill_prpsinfo(), linux_find_memory_regions_full(), linux_info_proc(), linux_nat_detach(), linux_ns_filename(), linux_proc_attach_tgid_threads(), linux_proc_pending_signals(), linux_proc_pid_get_state(), linux_proc_pid_to_exec_file(), linux_proc_task_list_dir_exists(), linux_proc_xfer_partial(), linux_proc_xfer_spu(), linux_spu_make_corefile_notes(), m32r_open(), m32r_pid_to_str(), m68hc11_initialize_register_info(), make_hex_string(), make_types(), mi_argv_to_format(), mi_field_int(), mips_pid_to_str(), monitor_pid_to_str(), nbsd_pid_to_exec_file(), normal_pid_to_str(), nto_find_and_open_solib(), nto_init_solib_absolute_prefix(), octal2str(), op_name_standard(), output_thread_groups(), phex(), phex_nz(), ppu2spu_sniffer(), print_source_lines_base(), print_wchar(), proc_string(), pstring_list(), remote_add_target_side_condition(), remote_check_symbols(), remote_detach_pid(), remote_disable_btrace(), remote_disable_tracepoint(), remote_download_trace_state_variable(), remote_download_tracepoint(), remote_enable_btrace(), remote_enable_tracepoint(), remote_get_min_fast_tracepoint_insn_len(), remote_get_noisy_reply(), remote_get_trace_state_variable_value(), remote_get_tracepoint_status(), remote_hostio_set_filesystem(), remote_insert_breakpoint(), remote_insert_hw_breakpoint(), remote_insert_watchpoint(), remote_pid_to_exec_file(), remote_pid_to_str(), remote_query_attached(), remote_remove_breakpoint(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_set_circular_trace_buffer(), remote_set_disconnected_tracing(), remote_set_permissions(), remote_set_trace_buffer_size(), remote_set_trace_notes(), remote_static_tracepoint_marker_at(), remote_stop_ns(), remote_threads_extra_info(), remote_trace_find(), remote_trace_set_readonly_regions(), remote_use_agent(), remote_vcont_resume(), remote_verify_memory(), remote_vkill(), safe_strerror(), send_g_packet(), set_thread(), set_variant_num_fprs(), set_variant_num_gprs(), sol2_core_pid_to_str(), solaris_pid_to_str(), solist_update_incremental(), spu_catch_start(), spu_current_sos(), spu_enumerate_spu_ids(), spu_fetch_inferior_registers(), spu_fetch_registers(), spu_proc_xfer_spu(), spu_pseudo_register_read(), spu_pseudo_register_read_spu(), spu_pseudo_register_write(), spu_pseudo_register_write_spu(), spu_store_inferior_registers(), spu_store_registers(), spu_symbol_file_add_from_memory(), spu_xfer_partial(), store_register(), store_register_using_P(), svr4_create_solib_event_breakpoints(), td_err_string(), td_state_string(), trace_status_mi(), tui_make_status_line(), VEC(), windows_create_inferior(), windows_pid_to_exec_file(), and write_ptid().

char* xstrprintf ( const char *  format,
  ... 
)

Definition at line 107 of file common-utils.c.

References xstrvprintf().

Referenced by _initialize_auto_load(), ada_exception_catchpoint_cond_string(), ada_varobj_describe_ptr_child(), ada_varobj_describe_simple_array_child(), ada_varobj_describe_struct_child(), ada_varobj_get_value_of_array_variable(), add_angle_brackets(), add_auto_load_dir(), add_auto_load_safe_path(), add_deprecated_target_alias(), add_internal_problem_command(), add_packet_config_cmd(), add_pe_exported_sym(), add_pe_forwarded_sym(), add_sal_to_sals(), add_setshow_cmd_full(), add_vsyscall_page(), aix_thread_pid_to_str(), all_tracepoint_actions_and_cleanup(), ATTRIBUTE_PRINTF(), bpstat_check_watchpoint(), breakpoint_re_set(), build_error_marker_type(), c_describe_child(), c_get_range_decl_name(), c_value_of_variable(), canonical_to_fullform(), captured_main(), command_from_pid(), commandline_from_pid(), commands_command_1(), compile_file_command(), compile_register_name_mangled(), cplus_describe_child(), create_child_with_value(), create_dwo_unit_in_dwp_v1(), create_dwo_unit_in_dwp_v2(), create_thread_event_breakpoint(), create_tsv_from_upload(), create_type_unit_group(), ctf_start(), decimal_from_floating(), decode_line_2(), decode_objc(), default_gcc_target_options(), do_map_commands_command(), edit_command(), env_execute_cli_command(), exec_reverse_once(), fbsd_find_memory_regions(), file_is_auto_load_safe(), fixup_definition(), gcore_command(), gdb_demangle(), gdb_safe_append_history(), gdbscm_gsmob_kind(), gdbscm_initialize_ports(), gdbscm_make_arg_error(), gdbscm_make_type_error(), gdbscm_parse_command_name(), gdbscm_set_breakpoint_stop_x(), get_core_register_section(), get_core_siginfo(), get_function_name(), get_init_files(), get_new_file_names(), i386_fast_tracepoint_valid_at(), init_breakpoint_sal(), init_cli_cmds(), is_package_name(), jit_reader_load_command(), linux_ptrace_attach_fail_reason_string(), linux_xfer_osdata_fds(), linux_xfer_osdata_threads(), local_setattro(), lookup_dwo_cutu(), memory_error_message(), mi_execute_async_cli_command(), mi_execute_cli_command(), new_variant(), open_and_init_dwp_file(), ppscm_make_pp_type_error_exception(), print_converted_chars_to_obstack(), print_mention_exception(), print_one_breakpoint_location(), print_one_catch_solib(), print_one_catch_syscall(), print_one_exception(), print_thread_info(), procfs_xfer_auxv(), py_varobj_iter_next(), regcache_dump(), salpy_str(), set_cp_abi_as_auto_default(), solib_aix_bfd_open(), solib_aix_current_sos(), sym_info(), target_waitstatus_to_string(), trace_actions_command(), update_dprintf_command_list(), update_static_tracepoint(), varobj_gen_name(), vfprintf_unfiltered(), watch_command_1(), and xtensa_register_type().

char* xstrvprintf ( const char *  format,
va_list  ap 
)
void* xzalloc ( size_t  size)