GDBserver
|
Go to the source code of this file.
Functions | |
void | set_desired_inferior (int use_general) |
int | read_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len) |
int | write_inferior_memory (CORE_ADDR memaddr, const unsigned char *myaddr, int len) |
ptid_t | mywait (ptid_t ptid, struct target_waitstatus *ourstatus, int options, int connected_wait) |
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) |
Variables | |
struct target_ops * | the_target |
int kill_inferior | ( | int | pid | ) |
Definition at line 154 of file target.c.
References gdb_agent_about_to_close(), and target_ops::kill.
Referenced by detach_or_kill_inferior_callback(), 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 75 of file target.c.
References gdb_signal_to_host(), gdb_signal_to_name(), remote_connection_is_stdio(), server_waiting, and target_ops::wait.
Referenced by agent_run_command(), attach_inferior(), handle_target_event(), handle_v_cont(), myresume(), and start_inferior().
int read_inferior_memory | ( | CORE_ADDR | memaddr, |
unsigned char * | myaddr, | ||
int | len | ||
) |
Definition at line 43 of file target.c.
References check_mem_read(), and target_ops::read_memory.
Referenced by agent_capability_check(), agent_get_helper_thread_id(), agent_mem_read(), agent_mem_read_string(), agent_run_command(), ax_printf(), bfin_breakpoint_at(), crc32(), fast_tracepoint_collecting(), gdb_read_memory(), handle_output_debug_string(), have_fast_tracepoint_trampoline_buffer(), look_up_one_symbol(), m68k_breakpoint_at(), ps_pdread(), read_inferior_data_pointer(), read_inferior_integer(), read_inferior_uinteger(), relocate_instruction(), s390_breakpoint_at(), set_fast_tracepoint_jump(), set_raw_breakpoint_at(), and upload_fast_traceframes().
void set_desired_inferior | ( | int | use_general | ) |
Definition at line 27 of file target.c.
References all_threads, cont_thread, current_inferior, find_thread_ptid(), general_thread, and inferior_list::head.
Referenced by handle_serial_event(), handle_target_event(), handle_v_cont(), myresume(), process_serial_event(), and wait_for_sigstop().
void set_target_ops | ( | struct target_ops * | target | ) |
Definition at line 123 of file target.c.
References memcpy(), and xmalloc().
Referenced by initialize_low().
int start_non_stop | ( | int | nonstop | ) |
Definition at line 109 of file target.c.
References target_ops::start_non_stop.
Referenced by handle_general_set(), main(), and process_serial_event().
const char* target_pid_to_str | ( | ptid_t | ptid | ) |
Definition at line 132 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 cancel_breakpoint(), get_detach_signal(), handle_target_event(), kill_one_lwp_callback(), linux_detach_one_lwp(), linux_kill_one_lwp(), linux_wait(), linux_wait_1(), linux_wait_for_lwp(), prepare_resume_reply(), queue_stop_reply_callback(), select_event_lwp(), tracepoint_finished_step(), and tracepoint_was_hit().
int write_inferior_memory | ( | CORE_ADDR | memaddr, |
const unsigned char * | myaddr, | ||
int | len | ||
) |
Definition at line 52 of file target.c.
References check_mem_write(), memcpy(), target_ops::write_memory, and xmalloc().
Referenced by agent_run_command(), append_insns(), clear_inferior_trace_buffer(), delete_fast_tracepoint_jump(), delete_raw_breakpoint(), download_agent_expr(), download_trace_state_variables(), download_tracepoint_1(), gdb_write_memory(), i386_install_fast_tracepoint_jump_pad(), i386_write_goto_address(), l_tracepoint_action_download(), m_tracepoint_action_download(), ps_pdwrite(), r_tracepoint_action_download(), reinsert_fast_tracepoint_jumps_at(), relocate_instruction(), set_fast_tracepoint_jump(), uninsert_fast_tracepoint_jumps_at(), uninsert_raw_breakpoint(), upload_fast_traceframes(), write_inferior_data_pointer(), write_inferior_data_ptr(), write_inferior_integer(), write_inferior_uinteger(), and x_tracepoint_action_download().
struct target_ops* the_target |
Definition at line 24 of file target.c.
Referenced by aarch64_breakpoint_at(), agent_run_command(), arm_breakpoint_at(), arm_get_hwcap(), cris_breakpoint_at(), handle_query(), handle_qxfer_auxv(), handle_qxfer_btrace(), handle_qxfer_fdpic(), handle_qxfer_libraries_svr4(), handle_qxfer_osdata(), handle_qxfer_siginfo(), handle_qxfer_spu(), handle_target_event(), handle_v_cont(), hostio_error(), input_interrupt(), linux_detach(), linux_kill(), lynx_detach(), lynx_kill(), m32r_breakpoint_at(), mips_breakpoint_at(), myresume(), nios2_breakpoint_at(), parse_spufs_run(), ppc_breakpoint_at(), ppc_get_hwcap(), ppc_get_pc(), ppc_set_pc(), prepare_resume_reply(), process_serial_event(), putpkt_binary_1(), queue_stop_reply_callback(), regcache_read_pc(), regcache_write_pc(), reinsert_raw_breakpoint(), set_raw_breakpoint_at(), sh_breakpoint_at(), sparc_breakpoint_at(), sparc_fill_gregset_to_stack(), sparc_store_gregset_from_stack(), start_inferior(), tic6x_breakpoint_at(), tile_breakpoint_at(), validate_inserted_breakpoint(), x86_breakpoint_at(), and xtensa_breakpoint_at().