|
GDBserver
|
Go to the source code of this file.
Functions | |
| int | set_desired_thread () |
| int | prepare_to_access_memory (void) |
| void | done_accessing_memory (void) |
| int | read_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len) |
| int | target_read_memory (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len) |
| int | target_read_uint32 (CORE_ADDR memaddr, uint32_t *result) |
| int | write_inferior_memory (CORE_ADDR memaddr, const unsigned char *myaddr, int len) |
| int | target_write_memory (CORE_ADDR memaddr, const gdb_byte *myaddr, ssize_t len) |
| ptid_t | mywait (ptid_t ptid, struct target_waitstatus *ourstatus, int options, int connected_wait) |
| void | target_stop_and_wait (ptid_t ptid) |
| ptid_t | target_wait (ptid_t ptid, struct target_waitstatus *status, int options) |
| void | target_mourn_inferior (ptid_t ptid) |
| void | target_continue_no_signal (ptid_t ptid) |
| void | target_continue (ptid_t ptid, enum gdb_signal signal) |
| int | target_supports_multi_process (void) |
| int | start_non_stop (int nonstop) |
| void | set_target_ops (struct target_ops *target) |
| const char * | target_pid_to_str (ptid_t ptid) |
| int | kill_inferior (int pid) |
| int | target_can_do_hardware_single_step (void) |
| int | default_breakpoint_kind_from_pc (CORE_ADDR *pcptr) |
Variables | |
| struct target_ops * | the_target |
| static ptid_t | prev_general_thread |
| enum target_terminal::terminal_state | target_terminal |
| int default_breakpoint_kind_from_pc | ( | CORE_ADDR * | pcptr | ) |
Definition at line 351 of file target.c.
References gdb_assert, target_ops::sw_breakpoint_from_kind, and the_target.
Referenced by linux_breakpoint_kind_from_pc().
| void done_accessing_memory | ( | void | ) |
Definition at line 109 of file target.c.
References target_ops::done_accessing_memory, general_thread, prev_general_thread, switch_to_thread(), and the_target.
Referenced by cmd_qtenable_disable(), delete_gdb_breakpoint(), gdb_read_memory(), gdb_write_memory(), prepare_to_access_memory(), and set_gdb_breakpoint().
| int kill_inferior | ( | int | pid | ) |
Definition at line 330 of file target.c.
References gdb_agent_about_to_close(), target_ops::kill, and the_target.
Referenced by detach_or_kill_for_exit(), handle_v_kill(), and kill_inferior_callback().
| ptid_t mywait | ( | ptid_t | ptid, |
| struct target_waitstatus * | ourstatus, | ||
| int | options, | ||
| int | connected_wait | ||
| ) |
Definition at line 176 of file target.c.
References gdb_signal_to_host(), gdb_signal_to_name(), remote_connection_is_stdio(), server_waiting, and target_wait().
Referenced by attach_inferior(), handle_target_event(), resume(), and target_stop_and_wait().
| int prepare_to_access_memory | ( | void | ) |
Definition at line 43 of file target.c.
References current_thread, done_accessing_memory(), first, for_each_thread(), general_thread, mythread_alive, ptid_t::pid(), target_ops::prepare_to_access_memory, prev_general_thread, ptid_of(), the_target, target_ops::thread_stopped, and thread_stopped.
Referenced by cmd_qtenable_disable(), delete_gdb_breakpoint(), gdb_read_memory(), gdb_write_memory(), and set_gdb_breakpoint().
| int read_inferior_memory | ( | CORE_ADDR | memaddr, |
| unsigned char * | myaddr, | ||
| int | len | ||
| ) |
Definition at line 120 of file target.c.
References check_mem_read(), target_ops::read_memory, and the_target.
Referenced by agent_mem_read(), agent_mem_read_string(), ax_printf(), bfin_breakpoint_at(), crc32(), fast_tracepoint_collecting(), gdb_read_memory(), handle_output_debug_string(), have_fast_tracepoint_trampoline_buffer(), insert_memory_breakpoint(), look_up_one_symbol(), m68k_breakpoint_at(), ppc_relocate_instruction(), ppc_write_goto_address(), ps_pdread(), read_inferior_data_pointer(), read_inferior_integer(), read_inferior_uinteger(), relocate_instruction(), s390_breakpoint_at(), s390_relocate_instruction(), set_fast_tracepoint_jump(), target_read_memory(), target_read_uint32(), and upload_fast_traceframes().
| int set_desired_thread | ( | ) |
Definition at line 27 of file target.c.
References current_thread, find_thread_ptid(), and general_thread.
Referenced by gdb_read_memory(), gdb_write_memory(), handle_serial_event(), handle_status(), handle_target_event(), and process_serial_event().
| void set_target_ops | ( | struct target_ops * | target | ) |
Definition at line 299 of file target.c.
References the_target, and XNEW.
Referenced by initialize_low().
| int start_non_stop | ( | int | nonstop | ) |
Definition at line 285 of file target.c.
References target_ops::start_non_stop, and the_target.
Referenced by captured_main(), handle_detach(), and handle_general_set().
| void target_continue | ( | ptid_t | ptid, |
| enum gdb_signal | signal | ||
| ) |
Definition at line 265 of file target.c.
References gdb_signal_to_host(), thread_resume::kind, target_ops::resume, thread_resume::sig, the_target, and thread_resume::thread.
Referenced by handle_target_event(), and startup_inferior().
| void target_continue_no_signal | ( | ptid_t | ptid | ) |
Definition at line 252 of file target.c.
References thread_resume::kind, target_ops::resume, thread_resume::sig, the_target, and thread_resume::thread.
Referenced by agent_run_command(), handle_detach(), and startup_inferior().
| void target_mourn_inferior | ( | ptid_t | ptid | ) |
Definition at line 244 of file target.c.
References find_process_pid(), target_ops::mourn, ptid_get_pid(), and the_target.
Referenced by handle_target_event(), resume(), and startup_inferior().
| const char* target_pid_to_str | ( | ptid_t | ptid | ) |
Definition at line 308 of file target.c.
References minus_one_ptid, null_ptid, ptid_equal(), ptid_get_lwp(), ptid_get_pid(), ptid_get_tid(), and xsnprintf().
Referenced by get_detach_signal(), handle_target_event(), kill_one_lwp_callback(), linux_detach_one_lwp(), linux_kill_one_lwp(), linux_low_filter_event(), linux_wait_1(), prepare_resume_reply(), queue_stop_reply_callback(), resume_stopped_resumed_lwps(), save_stop_reason(), select_event_lwp(), stop_all_lwps(), tracepoint_finished_step(), and tracepoint_was_hit().
Definition at line 131 of file target.c.
References read_inferior_memory().
Referenced by agent_run_command(), arm_breakpoint_kind_from_pc(), get_next_pcs_read_memory_unsigned_integer(), and get_next_pcs_syscall_next_pc().
| int target_read_uint32 | ( | CORE_ADDR | memaddr, |
| uint32_t * | result | ||
| ) |
Definition at line 139 of file target.c.
References read_inferior_memory().
Referenced by aarch64_install_fast_tracepoint_jump_pad(), agent_capability_check(), and agent_get_helper_thread_id().
| void target_stop_and_wait | ( | ptid_t | ptid | ) |
Definition at line 217 of file target.c.
References thread_resume::kind, mywait(), non_stop, target_ops::resume, thread_resume::sig, the_target, and thread_resume::thread.
Referenced by agent_run_command().
| int target_supports_multi_process | ( | void | ) |
Definition at line 278 of file target.c.
References target_ops::supports_multi_process, and the_target.
Referenced by handle_query(), and startup_inferior().
Definition at line 236 of file target.c.
References the_target, and target_ops::wait.
Referenced by mywait(), and startup_inferior().
Definition at line 170 of file target.c.
References write_inferior_memory().
Referenced by agent_run_command().
| int write_inferior_memory | ( | CORE_ADDR | memaddr, |
| const unsigned char * | myaddr, | ||
| int | len | ||
| ) |
Definition at line 145 of file target.c.
References check_mem_write(), free(), the_target, target_ops::write_memory, and xmalloc().
Referenced by append_insns(), clear_inferior_trace_buffer(), delete_fast_tracepoint_jump(), download_agent_expr(), download_trace_state_variables(), download_tracepoint_1(), emit_insns(), gdb_write_memory(), i386_install_fast_tracepoint_jump_pad(), i386_write_goto_address(), l_tracepoint_action_download(), m_tracepoint_action_download(), ppc_install_fast_tracepoint_jump_pad(), ppc_relocate_instruction(), ppc_write_goto_address(), ps_pdwrite(), r_tracepoint_action_download(), reinsert_fast_tracepoint_jumps_at(), relocate_instruction(), remove_memory_breakpoint(), s390_write_goto_address(), set_fast_tracepoint_jump(), target_write_memory(), uninsert_fast_tracepoint_jumps_at(), upload_fast_traceframes(), write_inferior_data_pointer(), write_inferior_int8(), write_inferior_integer(), write_inferior_uinteger(), and x_tracepoint_action_download().
|
static |
Definition at line 38 of file target.c.
Referenced by done_accessing_memory(), and prepare_to_access_memory().
| struct target_ops* the_target |
Definition at line 24 of file target.c.
Referenced by aarch64_breakpoint_at(), arm_breakpoint_at(), arm_get_hwcap(), arm_get_syscall_trapinfo(), arm_sigreturn_next_pc(), bp_opcode(), bp_size(), cris_breakpoint_at(), default_breakpoint_kind_from_pc(), delete_raw_breakpoint(), done_accessing_memory(), getpkt(), handle_open(), handle_query(), handle_qxfer_auxv(), handle_qxfer_btrace(), handle_qxfer_btrace_conf(), handle_qxfer_exec_file(), handle_qxfer_fdpic(), handle_qxfer_libraries_svr4(), handle_qxfer_osdata(), handle_qxfer_siginfo(), handle_qxfer_spu(), handle_readlink(), handle_setfs(), handle_unlink(), handle_v_requests(), hostio_error(), input_interrupt(), insert_memory_breakpoint(), kill_inferior(), linux_detach(), linux_kill(), linux_wait_1(), lynx_detach(), lynx_kill(), m32r_breakpoint_at(), mips_breakpoint_at(), nios2_breakpoint_at(), parse_spufs_run(), ppc_breakpoint_at(), ppc_get_auxv(), ppc_get_pc(), ppc_set_pc(), prepare_resume_reply(), prepare_to_access_memory(), putpkt_binary_1(), queue_stop_reply_callback(), read_inferior_memory(), regcache_read_pc(), regcache_write_pc(), reinsert_raw_breakpoint(), resume(), s390_get_hwcap(), set_raw_breakpoint_at(), set_target_ops(), sh_breakpoint_at(), sparc_breakpoint_at(), sparc_fill_gregset_to_stack(), sparc_store_gregset_from_stack(), start_non_stop(), target_continue(), target_continue_no_signal(), target_mourn_inferior(), target_stop_and_wait(), target_supports_multi_process(), target_wait(), tic6x_breakpoint_at(), tile_breakpoint_at(), uninsert_raw_breakpoint(), validate_inserted_breakpoint(), write_inferior_memory(), x86_breakpoint_at(), xtensa_breakpoint_at(), and z_type_supported().
1.8.14