|
GDB (xrefs)
|
#include "common-defs.h"#include "target/target.h"#include "common/symbol.h"#include <unistd.h>#include "agent.h"#include "filestuff.h"#include <sys/socket.h>#include <sys/un.h>Go to the source code of this file.
Classes | |
| struct | ipa_sym_addresses |
Macros | |
| #define | DEBUG_AGENT debug_agent_printf |
| #define | SOCK_DIR P_tmpdir |
| #define | UNIX_PATH_MAX sizeof(((struct sockaddr_un *) NULL)->sun_path) |
Functions | |
| static void | ATTRIBUTE_PRINTF (1, 2) |
| int | agent_loaded_p (void) |
| int | agent_look_up_symbols (void *arg) |
| static unsigned int | agent_get_helper_thread_id (void) |
| static int | gdb_connect_sync_socket (int pid) |
| int | agent_run_command (int pid, const char *cmd, int len) |
| int | agent_capability_check (enum agent_capa agent_capa) |
| void | agent_capability_invalidate (void) |
Variables | |
| int | debug_agent = 0 |
| int | use_agent = 0 |
| static uint32_t | helper_thread_id = 0 |
| struct { | |
| const char * name | |
| int offset | |
| } | symbol_list [] |
| static struct ipa_sym_addresses | ipa_sym_addrs |
| static int | all_agent_symbols_looked_up = 0 |
| static uint32_t | agent_capability = 0 |
| #define DEBUG_AGENT debug_agent_printf |
Definition at line 43 of file agent.c.
Referenced by agent_look_up_symbols(), and agent_run_command().
| #define UNIX_PATH_MAX sizeof(((struct sockaddr_un *) NULL)->sun_path) |
Definition at line 129 of file agent.c.
Referenced by gdb_connect_sync_socket().
| int agent_capability_check | ( | enum agent_capa agent_capa | ) |
Definition at line 263 of file agent.c.
References _, ipa_sym_addresses::addr_capability, agent_capability, ipa_sym_addrs, target_read_uint32(), and warning().
| void agent_capability_invalidate | ( | void | ) |
Definition at line 278 of file agent.c.
References agent_capability.
Referenced by target_pre_inferior().
|
static |
Definition at line 111 of file agent.c.
References _, ipa_sym_addresses::addr_helper_thread_id, helper_thread_id, ipa_sym_addrs, target_read_uint32(), and warning().
Referenced by agent_run_command().
| int agent_loaded_p | ( | void | ) |
Definition at line 77 of file agent.c.
References all_agent_symbols_looked_up.
Referenced by agent_new_objfile(), inf_child_can_use_agent(), and inf_child_use_agent().
| int agent_look_up_symbols | ( | void * | arg | ) |
Definition at line 86 of file agent.c.
References all_agent_symbols_looked_up, DEBUG_AGENT, find_minimal_symbol_address(), ipa_sym_addrs, name, and symbol_list.
Referenced by agent_new_objfile().
| int agent_run_command | ( | int | pid, |
| const char * | cmd, | ||
| int | len | ||
| ) |
Definition at line 189 of file agent.c.
References _, ipa_sym_addresses::addr_cmd_buf, agent_get_helper_thread_id(), DEBUG_AGENT, gdb_connect_sync_socket(), IPA_CMD_BUF_SIZE, ipa_sym_addrs, null_ptid, pid, ptid_build(), ptid_equal(), read(), target_continue_no_signal(), target_read_memory(), target_stop_and_wait(), target_write_memory(), selftests::ptid::tid, and warning().
Referenced by VEC().
|
static |
Definition at line 31 of file agent.c.
References debug_agent, and debug_vprintf().
|
static |
Definition at line 138 of file agent.c.
References _, gdb_socket_cloexec(), pid, UNIX_PATH_MAX, warning(), and xsnprintf().
Referenced by agent_run_command().
|
static |
Definition at line 258 of file agent.c.
Referenced by agent_capability_check(), and agent_capability_invalidate().
|
static |
Definition at line 74 of file agent.c.
Referenced by agent_loaded_p(), and agent_look_up_symbols().
| int debug_agent = 0 |
Definition at line 27 of file agent.c.
Referenced by ATTRIBUTE_PRINTF().
|
static |
Definition at line 60 of file agent.c.
Referenced by agent_get_helper_thread_id().
|
static |
Definition at line 72 of file agent.c.
Referenced by agent_capability_check(), agent_get_helper_thread_id(), agent_look_up_symbols(), and agent_run_command().
| const char* name |
Definition at line 64 of file agent.c.
Referenced by agent_look_up_symbols().
| int offset |
Definition at line 65 of file agent.c.
Referenced by _initialize_amd64fbsd_nat(), _initialize_arm_tdep(), _initialize_i386bsd_nat(), aarch64_align_watchpoint(), aarch64_analyze_prologue(), aarch64_decode_adr(), aarch64_decode_b(), aarch64_decode_bcond(), aarch64_decode_cb(), aarch64_decode_ldr_literal(), aarch64_displaced_step_adr(), aarch64_displaced_step_b(), aarch64_displaced_step_b_cond(), aarch64_displaced_step_cb(), aarch64_displaced_step_ldr_literal(), aarch64_displaced_step_tb(), aarch64_record_load_store(), aarch64_relocate_instruction(), ada_index_struct_field(), ada_index_struct_field_1(), ada_search_struct_field(), ada_val_print_1(), ada_val_print_array(), ada_val_print_flt(), ada_val_print_gnat_array(), ada_val_print_num(), ada_val_print_ptr(), ada_value_primitive_field(), ada_value_primitive_packed_val(), add_bincl_to_list(), add_offset_16(), addrmap_fixed_relocate(), addrmap_relocate(), aix_thread_xfer_partial(), alpha_next_pc(), alpha_push_dummy_call(), alpha_sigtramp_frame_this_id(), alpha_skip_prologue(), amd64_analyze_stack_align(), amd64_collect_native_gregset(), amd64_push_arguments(), amd64_relocate_instruction(), amd64_return_value(), amd64_skip_xmm_prologue(), amd64_supply_native_gregset(), amd64_windows_skip_trampoline_code(), amd64_x32_analyze_stack_align(), amd64obsd_collect_uthread(), amd64obsd_sigcontext_addr(), amd64obsd_supply_uthread(), arc_analyze_prologue(), arm_analyze_load_stack_chk_guard(), arm_analyze_prologue(), arm_copy_b_bl_blx(), arm_displaced_init_closure(), arm_exidx_fill_cache(), arm_get_next_pcs_raw(), arm_neon_quad_read(), arm_neon_quad_write(), arm_pseudo_read(), arm_pseudo_write(), arm_skip_stack_protector(), arm_skip_stub(), arm_stap_parse_special_token(), arm_wince_skip_main_prologue(), attr_to_dynamic_prop(), bfdcore_read(), bfdcore_write(), bsd_kvm_xfer_partial(), bsd_uthread_extra_thread_info(), bsd_uthread_thread_alive(), bsd_uthread_update_thread_list(), build_address_symbolic(), build_gdb_vtable_type(), build_std_type_info_type(), c_val_print_struct(), call_lseek(), cleanup_block_store_pc(), coff_symtab_read(), collection_list::collect_symbol(), compute_stack_depth_worker(), cond_offset_host(), cond_offset_target(), regcache::cooked_read_part(), regcache::cooked_write_part(), core_xfer_partial(), cp_find_class_member(), cp_print_value(), cp_print_value_fields(), cp_print_value_fields_rtti(), create_dwo_unit_in_dwp_v2(), create_dwp_v2_section(), ctf_save_align_write(), ctf_save_fseek(), darwin_read_write_inferior(), darwin_xfer_partial(), disassemble_dwarf_expression(), do_compile_dwarf_expr_to_c(), do_ppc_sysv_return_value(), do_search_struct_field(), dsbt_relocate_main_executable(), dwarf2_add_field(), dwarf2_compile_expr_to_ax(), dwarf2_frame_find_fde(), dwarf2_ranges_process(), dwarf2_ranges_read(), dwarf2_record_block_ranges(), dwarf2_rnglists_process(), dwarf_block_to_dwarf_reg_deref(), dwarf_decode_macro_bytes(), dwarf_decode_macros(), dynamic_cast_check_1(), dynamic_cast_check_2(), efpr_pseudo_register_read(), efpr_pseudo_register_write(), eight_bit_offset_branch_op(), exec_read_partial_read_only(), exec_xfer_partial(), execute_cfa_program(), execute_code(), execute_l32e(), execute_s32e(), execute_script_contents(), execute_stack_op(), extract_signed_bitfield(), fbsd_core_xfer_siginfo(), pv_area::fetch(), fetch_altivec_register(), fetch_register(), fill_vrregset(), pv_area::find_entry(), find_first_range_overlap(), find_linenos(), find_method_list(), find_step_target(), find_string_backward(), find_struct_field(), fixup_section(), frv_analyze_prologue(), frv_relocate_main_executable(), gcore_copy_callback(), gdb_bfd_iovec_fileio_pread(), gdbarch_core_xfer_shared_libraries(), gdbarch_core_xfer_shared_libraries_aix(), gdbarch_core_xfer_siginfo(), gdbscm_arch_disassemble(), gdbscm_memory_port_end_input(), gdbscm_memory_port_seek(), gdbscm_print_insn_from_port(), gdbsim_xfer_partial(), gen_bitfield_ref(), gen_expr(), gen_offset(), gen_primitive_field(), gen_struct_ref_recursive(), get_cr3(), get_frame_register_bytes(), gnu_find_memory_regions(), gnu_write_inferior(), gnu_xfer_partial(), go32_xfer_partial(), h8300_analyze_prologue(), h8300_push_dummy_call(), handle_data_member_location(), heuristic_proc_start(), hppa64_push_dummy_call(), hppa64_return_value(), hppa_frame_cache(), hppa_match_insns_relaxed(), hppaobsd_supply_gregset(), i386_analyze_register_saves(), i386_analyze_stack_align(), i386_relocate_instruction(), i386_stap_parse_special_token_three_arg_disp(), i386bsd_collect_gregset(), i386bsd_supply_gregset(), i386nto_regset_fill(), i386obsd_collect_uthread(), i386obsd_sigtramp_p(), i386obsd_supply_uthread(), ia64_extract_return_value(), ia64_linux_xfer_partial(), ia64_store_return_value(), inf_child_fileio_pread(), inf_child_fileio_pwrite(), inf_ptrace_xfer_partial(), info_symbol_command(), init_lineno(), init_regcache_descr(), init_stringtab(), insert_into_bit_range_vector(), install_b_bl_blx(), ioscm_lseek_address(), iq2000_scan_prologue(), is_branch(), is_unique_ancestor(), is_unique_ancestor_worker(), ld_so_xfer_auxv(), lex_number(), linespec_parse_variable(), linux_common_xfer_osdata(), linux_core_xfer_siginfo(), linux_find_memory_regions_full(), linux_gdb_signal_from_target(), linux_gdb_signal_to_target(), linux_info_proc(), linux_make_mappings_callback(), linux_nat_xfer_osdata(), linux_nat_xfer_partial(), linux_proc_xfer_partial(), linux_proc_xfer_spu(), linux_xfer_osdata_cpus(), linux_xfer_osdata_fds(), linux_xfer_osdata_isockets(), linux_xfer_osdata_modules(), linux_xfer_osdata_msg(), linux_xfer_osdata_processes(), linux_xfer_osdata_processgroups(), linux_xfer_osdata_sem(), linux_xfer_osdata_shm(), linux_xfer_osdata_threads(), linux_xfer_partial(), linux_xfer_siginfo(), locexpr_describe_location_1(), locexpr_describe_location_piece(), debug_names::debug_str_lookup::lookup(), lseek_with_trace(), lval_func_check_synthetic_pointer(), lval_func_read(), lval_func_write(), lzma_open(), lzma_pread(), m32c_part_read(), m32c_part_write(), m68k_analyze_register_saves(), m68k_push_dummy_call(), m88k_analyze_prologue(), map_regcache_remote_table(), mark_common_block_symbol_computed(), mark_value_bits_optimized_out(), mark_value_bits_unavailable(), mark_value_bytes_optimized_out(), mark_value_bytes_unavailable(), maybe_print_script_not_found_warning(), maybe_print_unsupported_script_warning(), mem_bfd_iovec_pread(), memory_xfer_auxv(), mep_analyze_prologue(), mep_extract_return_value(), mep_store_return_value(), mi_cmd_data_read_memory(), mi_cmd_data_read_memory_bytes(), mi_cmd_data_write_memory(), microblaze_linux_sigtramp_cache(), micromips_scan_prologue(), micromips_stack_frame_destroyed_p(), mips16_get_imm(), mips16_scan_prologue(), mips32_scan_prologue(), mips_eabi_return_value(), mips_gdb_signal_from_target(), mips_gdb_signal_to_target(), mips_n32n64_fp_arg_chunk_p(), mips_n32n64_return_value(), mips_o32_return_value(), mips_o64_return_value(), mips_read_fp_register_single(), mips_register_to_value(), mips_virtual_frame_pointer(), moxie_analyze_prologue(), moxie_process_record(), msp430_push_dummy_call(), msp430_return_value(), mt_frame_unwind_cache(), nds32_analyze_epilogue_insn32(), nds32_pseudo_register_read(), nds32_pseudo_register_write(), nios2_analyze_prologue(), pv_area::overlaps(), pascal_object_print_value(), pascal_object_print_value_fields(), pc_in_unmapped_range(), ppc64_sysv_abi_push_freg(), ppc64_sysv_abi_push_val(), ppc64_sysv_abi_return_value(), ppc64_sysv_abi_return_value_base(), ppc_collect_fpregset(), ppc_collect_gregset(), ppc_collect_reg(), ppc_collect_vrregset(), ppc_displaced_step_fixup(), ppc_linux_sigtramp_cache(), ppc_supply_fpregset(), ppc_supply_gregset(), ppc_supply_reg(), ppc_supply_vrregset(), ppcfbsd_sigtramp_frame_sniffer(), ppcobsd_sigtramp_frame_sniffer(), gdb_pretty_print_disassembler::pretty_print_insn(), print_address_symbolic(), print_field_values(), print_variant_part(), process_g_packet(), process_linenos(), procfs_meminfo(), procfs_xfer_auxv(), procfs_xfer_partial(), pstring_list(), pushf_register(), put_frame_register_bytes(), pv_is_array_ref(), ranges_contain(), regcache::raw_read_part(), regcache::raw_write_part(), read_encoded_value(), read_frame_register_value(), read_mapping(), read_memory_robust(), read_offset(), record_btrace_xfer_partial(), record_full_core_xfer_partial(), record_full_xfer_partial(), regcache_cooked_read_part(), regcache_cooked_write_part(), regcache_raw_read_part(), regcache_raw_write_part(), remote_file_get(), remote_file_put(), remote_fileio_func_lseek(), remote_get_raw_trace_data(), remote_get_thread_local_address(), remote_hostio_pread(), remote_hostio_pread_from_cache(), remote_hostio_pread_vFile(), remote_hostio_pwrite(), remote_read_qxfer(), remote_trace_set_readonly_regions(), remote_write_qxfer(), remote_xfer_partial(), rl78_return_value(), rs6000_aix_core_xfer_shared_libraries_aix(), rs6000_aix_ld_info_to_xml(), rs6000_xfer_partial(), rs6000_xfer_shared_libraries(), rust_underscore_fields(), rw_pieced_value(), rx_return_value(), s390_check_for_saved(), s390_displaced_step_copy_insn(), s390_store(), score_return_value(), search_struct_method(), section_table_read_available_memory(), section_table_xfer_memory_partial(), set_internalvar_component(), set_reg_offset(), set_section_command(), set_value_offset(), sh64_extract_return_value(), sh64_pseudo_register_read(), sh64_pseudo_register_write(), sh64_store_return_value(), sh_analyze_prologue(), show_commands(), sixteen_bit_offset_branch_op(), skip_prologue(), sol_thread_xfer_partial(), solib_target_relocate_section_addresses(), source_script_file(), source_section_scripts(), sparc32_collect_gregset(), sparc32_supply_gregset(), sparc64_collect_gregset(), sparc64_supply_gregset(), sparc64obsd_pc_in_sigtramp(), sparc_analyze_control_transfer(), sparc_analyze_prologue(), sparc_collect_rwindow(), sparc_supply_rwindow(), sparc_xfer_partial(), sparc_xfer_wcookie(), spu_bfd_iovec_pread(), spu_enumerate_spu_ids(), spu_proc_xfer_spu(), spu_software_single_step(), spu_virtual_frame_pointer(), spu_xfer_partial(), pv_area::store(), store_altivec_register(), super_name(), supply_vrregset(), target_bfd_xfer_partial(), target_fileio_pread(), target_fileio_pwrite(), target_read(), target_read_partial(), target_read_string(), target_translate_tls_address(), target_write(), target_write_partial(), target_write_with_progress(), target_xfer_partial(), tfile_fetch_registers(), tfile_trace_find(), tfile_xfer_partial(), tfile_xfer_partial_features(), thread_db_get_thread_local_address(), thumb2_copy_b_bl_blx(), thumb_analyze_prologue(), thumb_copy_b(), thumb_deal_with_atomic_sequence_raw(), thumb_get_next_pcs_raw(), trace_save(), tui_horizontal_source_scroll(), tui_set_disassem_content(), tui_set_source_content(), unpack_mips16(), v850_handle_prepare(), v850_handle_pushm(), val_print_packed_array_elements(), value_assign(), value_bits_available(), value_bits_synthetic_pointer(), value_bytes_available(), value_from_component(), value_primitive_field(), value_slice(), value_struct_elt_for_reference(), value_virtual_fn_field(), windows_core_xfer_shared_libraries(), windows_xfer_partial(), windows_xfer_shared_libraries(), xcoff_get_core_n_import_files(), regcache::xfer_part(), xml_builtin_xfer_partial(), xstormy16_analyze_prologue(), xtensa_extract_return_value(), xtensa_linux_gdb_signal_from_target(), xtensa_linux_gdb_signal_to_target(), xtensa_push_dummy_call(), and xtensa_store_return_value().
| struct { ... } symbol_list[] |
Referenced by agent_look_up_symbols(), dict_add_pending(), dict_create_hashed(), and dict_create_linear().
| int use_agent = 0 |
Definition at line 46 of file agent.c.
Referenced by inf_child_use_agent(), and remote_use_agent().
1.8.14