GDB (xrefs)
|
Go to the source code of this file.
Macros | |
#define | skip_to_space(INP) ((char *) skip_to_space_const (INP)) |
Functions | |
void * | xzalloc (size_t) |
void | xfree (void *) |
char * | xstrprintf (const char *format,...) ATTRIBUTE_PRINTF(1 |
char char * | xstrvprintf (const char *format, va_list ap) ATTRIBUTE_PRINTF(1 |
char char int | xsnprintf (char *str, size_t size, const char *format,...) ATTRIBUTE_PRINTF(3 |
char char int char * | savestring (const char *ptr, size_t len) |
char * | safe_strerror (int) |
static int | startswith (const char *string, const char *pattern) |
ULONGEST | strtoulst (const char *num, const char **trailer, int base) |
char * | skip_spaces (char *inp) |
const char * | skip_spaces_const (const char *inp) |
const char * | skip_to_space_const (const char *inp) |
#define skip_to_space | ( | INP | ) | ((char *) skip_to_space_const (INP)) |
Definition at line 94 of file common-utils.h.
Referenced by ada_get_next_arg(), decode_static_tracepoint_spec(), decode_vmflags(), demangle_command(), extract_exception_regexp(), info_macro_command(), init_breakpoint_sal(), and parse_probes().
char* safe_strerror | ( | int | ) |
Definition at line 32 of file mingw-strerror.c.
References len, and xsnprintf().
Referenced by attach_proc_task_lwp_callback(), child_terminal_ours_1(), close_with_trace(), create_tty_session(), ctf_save_fseek(), ctf_save_write(), ctf_save_write_metadata(), ctf_start(), darwin_attach(), darwin_decode_message(), darwin_detach(), darwin_kill_inferior(), darwin_pre_ptrace(), darwin_ptrace(), darwin_stop_inferior(), detach_callback(), displaced_step_prepare(), do_attach(), dsbt_current_sos(), fetch_register(), fork_inferior(), frv_current_sos(), gdb_safe_append_history(), gnu_read_inferior(), gnu_wait(), go32_terminal_inferior(), go32_terminal_ours(), hardwire_raw(), ia64_linux_fetch_register(), ia64_linux_store_register(), inf_continue(), inf_ptrace_fetch_register(), inf_ptrace_store_register(), inf_ptrace_wait(), inf_set_pid(), inf_set_traced(), inf_signal(), inf_startup(), info_port_rights(), ioctl_with_trace(), kill_callback(), lin_lwp_attach_lwp(), linux_nat_wait_1(), linux_ptrace_attach_fail_reason_string(), linux_ptrace_test_ret_to_nx(), linux_thread_alive(), make_proc(), maybe_disable_address_space_randomization(), mi_cmd_env_pwd(), mips_fetch_registers(), mips_readchar(), mips_receive_packet(), mips_send_packet(), mips_store_registers(), mips_wait(), monitor_write(), new_tty(), open_symbol_file_object(), open_with_trace(), perror_string(), pipe_windows_open(), print_sys_errmsg(), proc_restore_exc_port(), proc_steal_exc_port(), proc_update_sc(), procfs_create_inferior(), procfs_meminfo(), procfs_open_1(), procfs_pidlist(), procfs_store_registers(), ptrace_check(), pwd_command(), remote_hostio_error(), restore_binary_file(), restore_personality(), restore_section_callback(), rs6000_wait(), save_breakpoints(), scalar_binop(), serial_logchar(), shell_escape(), spu_child_wait(), steal_exc_port(), stop_callback(), stop_wait_callback(), store_register(), svr4_read_so_list(), tfile_start(), thread_takeover_sc_cmd(), try_thread_db_load(), unpush_and_perror(), wait_for(), wait_with_trace(), and x86_linux_enable_btrace().
Definition at line 148 of file common-utils.c.
References len, and xmalloc().
Referenced by add_path(), break_range_command(), cd_command(), copy_token_string(), cp_search_static_and_baseclasses(), decode_static_tracepoint_spec(), demangle_command(), extract_arg_const(), extract_exception_regexp(), find_condition_and_thread(), gnuv3_get_typename_from_type_info(), init_breakpoint_sal(), parse_frame_specification_1(), parse_probes(), process_next_line(), read_member_functions(), read_one_struct_field(), record_full_goto_bookmark(), scan_expression_with_cleanup(), scan_filename_with_cleanup(), set_environment_command(), solib_find_1(), strace_marker_create_sals_from_address(), stringify_collection_list(), strip_bg_char(), trace_variable_command(), and watch_command_1().
char* skip_spaces | ( | char * | inp | ) |
Definition at line 259 of file common-utils.c.
Referenced by ada_get_next_arg(), add_solib_catchpoint(), agent_command_1(), break_range_command(), catch_ada_assert_command_split(), catch_ada_exception_command_split(), catch_exception_command_1(), catch_exec_command_1(), catch_fork_command_1(), catch_signal_command(), catch_syscall_command_1(), check_raw_argument(), cmd_record_call_history(), cmd_record_insn_history(), compile_code_command(), compile_file_command(), decode_static_tracepoint_spec(), decode_vmflags(), demangle_command(), ep_parse_optional_if_clause(), extract_exception_regexp(), get_call_history_modifiers(), get_context_size(), get_insn_history_modifiers(), get_selections(), get_uint(), go32_pde(), go32_pte(), go32_pte_for_address(), go32_sgdt(), go32_sidt(), go32_sldt(), guile_command(), guile_repl_command(), info_macro_command(), init_breakpoint_sal(), init_history(), is_closing_quote_enclosed(), linux_fill_prpsinfo(), m32r_upload_command(), maint_btrace_packet_history_cmd(), maintenance_translate_address(), parse_method(), parse_probes(), parse_selector(), python_command(), python_interactive_command(), rbreak_command(), registers_info(), set_ext_lang_command(), source_command(), thread_apply_all_command(), thread_name_command(), trace_find_outside_command(), trace_find_range_command(), trace_pass_command(), trace_variable_command(), update_dprintf_command_list(), VEC(), watch_maybe_just_location(), and whatis_exp().
Definition at line 271 of file common-utils.c.
Referenced by aarch64_stap_parse_special_token(), arm_stap_parse_special_token(), decode_agent_options(), disassemble_command(), encode_actions_1(), extract_arg_const(), find_condition_and_thread(), get_insn_number(), get_number_or_range(), get_number_trailer(), get_selected_pc_producer_options(), info_auto_load_libthread_db(), is_unlimited_literal(), linespec_lexer_lex_keyword(), linespec_lexer_lex_one(), linespec_lexer_lex_string(), linux_info_proc(), maint_agent_printf_command(), mi_parse(), mi_parse_argv(), msymbol_hash_iw(), parse_cmd_to_aexpr(), parse_find_args(), parse_frame_specification_1(), read_mapping(), restore_command(), scan_expression_with_cleanup(), scan_filename_with_cleanup(), serial_open(), stap_parse_argument(), stap_parse_argument_1(), stap_parse_argument_conditionally(), stap_parse_probe_arguments(), stap_parse_single_operand(), trace_dump_actions(), ui_printf(), validate_actionline(), VEC(), and watch_command_1().
Definition at line 283 of file common-utils.c.
Referenced by extract_arg_const(), find_condition_and_thread(), get_selected_pc_producer_options(), VEC(), and watch_command_1().
Definition at line 75 of file common-utils.h.
Referenced by ada_add_block_symbols(), ada_decode(), ada_encode(), ada_is_ignored_field(), ada_is_parent_field(), ada_is_wrapper_field(), ada_lookup_simple_minsym(), ada_lookup_symbol_list_worker(), ada_remove_trailing_digits(), ada_variant_discrim_name(), add_to_thread_list(), advance_wild_match(), amd64_skip_prologue(), amd64_windows_skip_trampoline_code(), amd64obsd_trapframe_cache(), amd64obsd_trapframe_sniffer(), arm_pe_skip_trampoline_code(), arm_skip_prologue(), arm_skip_stack_protector(), arm_skip_stub(), bsd_uthread_solib_loaded(), c_type_print_base(), catch_ada_assert_command_split(), catch_ada_exception_command_split(), check_producer(), check_stub_method(), check_stub_method_group(), coff_locate_sections(), coff_symfile_read(), coff_symtab_read(), continue_command(), core_process_module_section(), cp_lookup_symbol_via_imports(), dbx_symfile_read(), decode_frame_entry_1(), dict_hash(), do_rmdir(), dwarf2_frame_find_quirks(), dwarf2_name(), elf_symtab_read(), extract_identifier(), field_alignment(), field_name_match(), find_methods(), find_toplevel_string(), gcore_copy_callback(), gdb_mangle_name(), gdb_sysroot_changed(), get_offsets(), get_selected_pc_producer_options(), gnuv2_is_constructor_name(), gnuv2_is_destructor_name(), gnuv2_is_operator_name(), gnuv3_is_operator_name(), gnuv3_is_vtable_name(), gnuv3_rtti_type(), goto_bookmark_command(), handle_exception(), handle_notification(), handle_output_debug_string(), i386_pe_skip_trampoline_code(), i386_skip_prologue(), i386obsd_trapframe_cache(), i386obsd_trapframe_sniffer(), initialize_current_architecture(), interrupt_command(), is_ada_operator(), is_import_fixup_symbol(), is_target_filename(), is_type_conversion_operator(), is_vtable_name(), java_type_print_base(), lesseq_defined_than(), linux_proc_pending_signals(), linux_proc_pid_get_state(), locate_arg(), m2_record_fields(), m32r_load(), m32r_upload_command(), macho_symfile_offsets(), make_output_phdrs(), match_name(), mips_find_abi_section(), mips_find_long_section(), mips_in_frame_stub(), mips_sde_elf_osabi_sniff_abi_tag_sections(), mips_skip_mips16_trampoline_code(), mips_skip_pic_trampoline_code(), mips_stub_frame_sniffer(), msp430_in_return_stub(), nbsd_pc_in_sigtramp(), net_open(), new_symbol_full(), old_renaming_is_invisible(), operator_chars(), parse_tracepoint_definition(), pascal_type_print_base(), pascal_type_print_method_args(), picobug_dumpregs(), ppc_linux_spu_section(), prim_record_minimal_symbol_full(), process_next_line(), process_structure_scope(), producer_is_gcc(), producer_is_realview(), read_base_type(), read_ofile_symtab(), regcache_dump(), remote_check_symbols(), remote_get_noisy_reply(), remote_parse_stop_reply(), remote_serial_open(), remote_vcont_probe(), restore_command(), rs6000_in_solib_return_trampoline(), scan_xcoff_symtab(), search_struct_method(), serial_open(), skip_prologue_function(), sparc32nbsd_sigcontext_frame_sniffer(), sparc64nbsd_sigtramp_frame_sniffer(), strace_command(), subset_compare(), tfile_interp_line(), tfile_open(), tui_partial_win_by_name(), typy_lookup_typename(), tyscm_lookup_typename(), unpack_mangled_go_symbol(), value_struct_elt_for_reference(), and watch_command_1().
Definition at line 188 of file common-utils.c.
References digit_to_int(), HIGH_BYTE_POSN, int, and is_digit_in_base().
Referenced by generic_load(), get_insn_number(), info_spu_event_command(), info_spu_signal_command(), linux_info_proc(), monitor_load(), read_mapping(), spu_pseudo_register_read_spu(), spu_symbol_file_add_from_memory(), spu_xfer_partial(), and xml_parse_unsigned_integer().
void xfree | ( | void * | ) |
Definition at line 97 of file common-utils.c.
char* xstrprintf | ( | const char * | format, |
... | |||
) |
char char* xstrvprintf | ( | const char * | format, |
va_list | ap | ||
) |
void* xzalloc | ( | size_t | ) |
Definition at line 91 of file common-utils.c.
References xcalloc().
Referenced by addr_info_make_relative(), allocate_objfile(), allocate_value_contents(), allocate_value_lazy(), btrace_set_call_history(), btrace_set_insn_history(), cache_new_ref1(), dwarf2_add_typedef(), ftrace_new_function(), hwdebug_find_thread_points_by_tid(), ia64_gdbarch_init(), lm_info_read(), lzma_open(), m68k_gdbarch_init(), new_block(), new_bvect(), parse_partial_symbols(), push_parse_stack(), read_pe_exported_syms(), remote_enable_btrace(), remote_notif_state_allocate(), replace_operator_with_call(), solib_target_relocate_section_addresses(), and svr4_default_sos().