GDB (xrefs)
|
Public Member Functions | |
remote_target ()=default | |
~remote_target () override | |
const target_info & | info () const override |
const char * | connection_string () override |
thread_control_capabilities | get_thread_control_capabilities () override |
void | close () override |
void | detach (inferior *, int) override |
void | disconnect (const char *, int) override |
void | commit_resumed () override |
void | resume (ptid_t, int, enum gdb_signal) override |
ptid_t | wait (ptid_t, struct target_waitstatus *, target_wait_flags) override |
bool | has_pending_events () override |
void | fetch_registers (struct regcache *, int) override |
void | store_registers (struct regcache *, int) override |
void | prepare_to_store (struct regcache *) override |
int | insert_breakpoint (struct gdbarch *, struct bp_target_info *) override |
int | remove_breakpoint (struct gdbarch *, struct bp_target_info *, enum remove_bp_reason) override |
bool | stopped_by_sw_breakpoint () override |
bool | supports_stopped_by_sw_breakpoint () override |
bool | stopped_by_hw_breakpoint () override |
bool | supports_stopped_by_hw_breakpoint () override |
bool | stopped_by_watchpoint () override |
bool | stopped_data_address (CORE_ADDR *) override |
bool | watchpoint_addr_within_range (CORE_ADDR, CORE_ADDR, int) override |
int | can_use_hw_breakpoint (enum bptype, int, int) override |
int | insert_hw_breakpoint (struct gdbarch *, struct bp_target_info *) override |
int | remove_hw_breakpoint (struct gdbarch *, struct bp_target_info *) override |
int | region_ok_for_hw_watchpoint (CORE_ADDR, int) override |
int | insert_watchpoint (CORE_ADDR, int, enum target_hw_bp_type, struct expression *) override |
int | remove_watchpoint (CORE_ADDR, int, enum target_hw_bp_type, struct expression *) override |
void | kill () override |
void | load (const char *, int) override |
void | mourn_inferior () override |
void | pass_signals (gdb::array_view< const unsigned char >) override |
int | set_syscall_catchpoint (int, bool, int, gdb::array_view< const int >) override |
void | program_signals (gdb::array_view< const unsigned char >) override |
bool | thread_alive (ptid_t ptid) override |
const char * | thread_name (struct thread_info *) override |
void | update_thread_list () override |
std::string | pid_to_str (ptid_t) override |
const char * | extra_thread_info (struct thread_info *) override |
ptid_t | get_ada_task_ptid (long lwp, ULONGEST thread) override |
thread_info * | thread_handle_to_thread_info (const gdb_byte *thread_handle, int handle_len, inferior *inf) override |
gdb::byte_vector | thread_info_to_thread_handle (struct thread_info *tp) override |
void | stop (ptid_t) override |
void | interrupt () override |
void | pass_ctrlc () override |
enum target_xfer_status | xfer_partial (enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len) override |
ULONGEST | get_memory_xfer_limit () override |
void | rcmd (const char *command, struct ui_file *output) override |
const char * | pid_to_exec_file (int pid) override |
void | log_command (const char *cmd) override |
CORE_ADDR | get_thread_local_address (ptid_t ptid, CORE_ADDR load_module_addr, CORE_ADDR offset) override |
bool | can_execute_reverse () override |
std::vector< mem_region > | memory_map () override |
void | flash_erase (ULONGEST address, LONGEST length) override |
void | flash_done () override |
const struct target_desc * | read_description () override |
int | search_memory (CORE_ADDR start_addr, ULONGEST search_space_len, const gdb_byte *pattern, ULONGEST pattern_len, CORE_ADDR *found_addrp) override |
bool | can_async_p () override |
bool | is_async_p () override |
void | async (bool) override |
int | async_wait_fd () override |
void | thread_events (int) override |
int | can_do_single_step () override |
void | terminal_inferior () override |
void | terminal_ours () override |
bool | supports_non_stop () override |
bool | supports_multi_process () override |
bool | supports_disable_randomization () override |
bool | filesystem_is_local () override |
int | fileio_open (struct inferior *inf, const char *filename, int flags, int mode, int warn_if_slow, fileio_error *target_errno) override |
int | fileio_pwrite (int fd, const gdb_byte *write_buf, int len, ULONGEST offset, fileio_error *target_errno) override |
int | fileio_pread (int fd, gdb_byte *read_buf, int len, ULONGEST offset, fileio_error *target_errno) override |
int | fileio_fstat (int fd, struct stat *sb, fileio_error *target_errno) override |
int | fileio_close (int fd, fileio_error *target_errno) override |
int | fileio_unlink (struct inferior *inf, const char *filename, fileio_error *target_errno) override |
gdb::optional< std::string > | fileio_readlink (struct inferior *inf, const char *filename, fileio_error *target_errno) override |
bool | supports_enable_disable_tracepoint () override |
bool | supports_string_tracing () override |
bool | supports_evaluation_of_breakpoint_conditions () override |
bool | can_run_breakpoint_commands () override |
void | trace_init () override |
void | download_tracepoint (struct bp_location *location) override |
bool | can_download_tracepoint () override |
void | download_trace_state_variable (const trace_state_variable &tsv) override |
void | enable_tracepoint (struct bp_location *location) override |
void | disable_tracepoint (struct bp_location *location) override |
void | trace_set_readonly_regions () override |
void | trace_start () override |
int | get_trace_status (struct trace_status *ts) override |
void | get_tracepoint_status (struct breakpoint *tp, struct uploaded_tp *utp) override |
void | trace_stop () override |
int | trace_find (enum trace_find_type type, int num, CORE_ADDR addr1, CORE_ADDR addr2, int *tpp) override |
bool | get_trace_state_variable_value (int tsv, LONGEST *val) override |
int | save_trace_data (const char *filename) override |
int | upload_tracepoints (struct uploaded_tp **utpp) override |
int | upload_trace_state_variables (struct uploaded_tsv **utsvp) override |
LONGEST | get_raw_trace_data (gdb_byte *buf, ULONGEST offset, LONGEST len) override |
int | get_min_fast_tracepoint_insn_len () override |
void | set_disconnected_tracing (int val) override |
void | set_circular_trace_buffer (int val) override |
void | set_trace_buffer_size (LONGEST val) override |
bool | set_trace_notes (const char *user, const char *notes, const char *stopnotes) override |
int | core_of_thread (ptid_t ptid) override |
int | verify_memory (const gdb_byte *data, CORE_ADDR memaddr, ULONGEST size) override |
bool | get_tib_address (ptid_t ptid, CORE_ADDR *addr) override |
void | set_permissions () override |
bool | static_tracepoint_marker_at (CORE_ADDR, struct static_tracepoint_marker *marker) override |
std::vector< static_tracepoint_marker > | static_tracepoint_markers_by_strid (const char *id) override |
traceframe_info_up | traceframe_info () override |
bool | use_agent (bool use) override |
bool | can_use_agent () override |
struct btrace_target_info * | enable_btrace (thread_info *tp, const struct btrace_config *conf) override |
void | disable_btrace (struct btrace_target_info *tinfo) override |
void | teardown_btrace (struct btrace_target_info *tinfo) override |
enum btrace_error | read_btrace (struct btrace_data *data, struct btrace_target_info *btinfo, enum btrace_read_type type) override |
const struct btrace_config * | btrace_conf (const struct btrace_target_info *) override |
bool | augmented_libraries_svr4_read () override |
void | follow_fork (inferior *, ptid_t, target_waitkind, bool, bool) override |
void | follow_exec (inferior *, ptid_t, const char *) override |
int | insert_fork_catchpoint (int) override |
int | remove_fork_catchpoint (int) override |
int | insert_vfork_catchpoint (int) override |
int | remove_vfork_catchpoint (int) override |
int | insert_exec_catchpoint (int) override |
int | remove_exec_catchpoint (int) override |
enum exec_direction_kind | execution_direction () override |
bool | supports_memory_tagging () override |
bool | fetch_memtags (CORE_ADDR address, size_t len, gdb::byte_vector &tags, int type) override |
bool | store_memtags (CORE_ADDR address, size_t len, const gdb::byte_vector &tags, int type) override |
void | remote_download_command_source (int num, ULONGEST addr, struct command_line *cmds) |
void | remote_file_put (const char *local_file, const char *remote_file, int from_tty) |
void | remote_file_get (const char *remote_file, const char *local_file, int from_tty) |
void | remote_file_delete (const char *remote_file, int from_tty) |
int | remote_hostio_pread (int fd, gdb_byte *read_buf, int len, ULONGEST offset, fileio_error *remote_errno) |
int | remote_hostio_pwrite (int fd, const gdb_byte *write_buf, int len, ULONGEST offset, fileio_error *remote_errno) |
int | remote_hostio_pread_vFile (int fd, gdb_byte *read_buf, int len, ULONGEST offset, fileio_error *remote_errno) |
int | remote_hostio_send_command (int command_bytes, int which_packet, fileio_error *remote_errno, const char **attachment, int *attachment_len) |
int | remote_hostio_set_filesystem (struct inferior *inf, fileio_error *remote_errno) |
int | remote_hostio_open (struct inferior *inf, const char *filename, int flags, int mode, int warn_if_slow, fileio_error *remote_errno) |
int | remote_hostio_close (int fd, fileio_error *remote_errno) |
int | remote_hostio_unlink (inferior *inf, const char *filename, fileio_error *remote_errno) |
struct remote_state * | get_remote_state () |
long | get_remote_packet_size (void) |
long | get_memory_packet_size (struct memory_packet_config *config) |
long | get_memory_write_packet_size () |
long | get_memory_read_packet_size () |
char * | append_pending_thread_resumptions (char *p, char *endp, ptid_t ptid) |
void | start_remote (int from_tty, int extended_p) |
void | remote_detach_1 (struct inferior *inf, int from_tty) |
char * | append_resumption (char *p, char *endp, ptid_t ptid, int step, gdb_signal siggnal) |
int | remote_resume_with_vcont (ptid_t scope_ptid, int step, gdb_signal siggnal) |
thread_info * | add_current_inferior_and_thread (const char *wait_status) |
ptid_t | wait_ns (ptid_t ptid, struct target_waitstatus *status, target_wait_flags options) |
ptid_t | wait_as (ptid_t ptid, target_waitstatus *status, target_wait_flags options) |
ptid_t | process_stop_reply (struct stop_reply *stop_reply, target_waitstatus *status) |
ptid_t | select_thread_for_ambiguous_stop_reply (const struct target_waitstatus &status) |
void | remote_notice_new_inferior (ptid_t currthread, bool executing) |
void | print_one_stopped_thread (thread_info *thread) |
void | process_initial_stop_replies (int from_tty) |
thread_info * | remote_add_thread (ptid_t ptid, bool running, bool executing, bool silent_p) |
void | btrace_sync_conf (const btrace_config *conf) |
void | remote_btrace_maybe_reopen () |
void | remove_new_fork_children (threads_listing_context *context) |
void | kill_new_fork_children (inferior *inf) |
void | discard_pending_stop_replies (struct inferior *inf) |
int | stop_reply_queue_length () |
void | check_pending_events_prevent_wildcard_vcont (bool *may_global_wildcard_vcont) |
void | discard_pending_stop_replies_in_queue () |
struct stop_reply * | remote_notif_remove_queued_reply (ptid_t ptid) |
struct stop_reply * | queued_stop_reply (ptid_t ptid) |
int | peek_stop_reply (ptid_t ptid) |
void | remote_parse_stop_reply (const char *buf, stop_reply *event) |
void | remote_stop_ns (ptid_t ptid) |
void | remote_interrupt_as () |
void | remote_interrupt_ns () |
char * | remote_get_noisy_reply () |
int | remote_query_attached (int pid) |
inferior * | remote_add_inferior (bool fake_pid_p, int pid, int attached, int try_open_exec) |
ptid_t | remote_current_thread (ptid_t oldpid) |
ptid_t | get_current_thread (const char *wait_status) |
void | set_thread (ptid_t ptid, int gen) |
void | set_general_thread (ptid_t ptid) |
void | set_continue_thread (ptid_t ptid) |
void | set_general_process () |
char * | write_ptid (char *buf, const char *endbuf, ptid_t ptid) |
int | remote_unpack_thread_info_response (const char *pkt, threadref *expectedref, gdb_ext_thread_info *info) |
int | remote_get_threadinfo (threadref *threadid, int fieldset, gdb_ext_thread_info *info) |
int | parse_threadlist_response (const char *pkt, int result_limit, threadref *original_echo, threadref *resultlist, int *doneflag) |
int | remote_get_threadlist (int startflag, threadref *nextthread, int result_limit, int *done, int *result_count, threadref *threadlist) |
int | remote_threadlist_iterator (rmt_thread_action stepfunction, void *context, int looplimit) |
int | remote_get_threads_with_ql (threads_listing_context *context) |
int | remote_get_threads_with_qxfer (threads_listing_context *context) |
int | remote_get_threads_with_qthreadinfo (threads_listing_context *context) |
void | extended_remote_restart () |
void | get_offsets () |
void | remote_check_symbols () |
void | remote_supported_packet (const struct protocol_feature *feature, enum packet_support support, const char *argument) |
void | remote_query_supported () |
void | remote_packet_size (const protocol_feature *feature, packet_support support, const char *value) |
void | remote_serial_quit_handler () |
void | remote_detach_pid (int pid) |
void | remote_vcont_probe () |
void | remote_resume_with_hc (ptid_t ptid, int step, gdb_signal siggnal) |
void | send_interrupt_sequence () |
void | interrupt_query () |
void | remote_notif_get_pending_events (notif_client *nc) |
int | fetch_register_using_p (struct regcache *regcache, packet_reg *reg) |
int | send_g_packet () |
void | process_g_packet (struct regcache *regcache) |
void | fetch_registers_using_g (struct regcache *regcache) |
int | store_register_using_P (const struct regcache *regcache, packet_reg *reg) |
void | store_registers_using_G (const struct regcache *regcache) |
void | set_remote_traceframe () |
void | check_binary_download (CORE_ADDR addr) |
target_xfer_status | remote_write_bytes_aux (const char *header, CORE_ADDR memaddr, const gdb_byte *myaddr, ULONGEST len_units, int unit_size, ULONGEST *xfered_len_units, char packet_format, int use_length) |
target_xfer_status | remote_write_bytes (CORE_ADDR memaddr, const gdb_byte *myaddr, ULONGEST len, int unit_size, ULONGEST *xfered_len) |
target_xfer_status | remote_read_bytes_1 (CORE_ADDR memaddr, gdb_byte *myaddr, ULONGEST len_units, int unit_size, ULONGEST *xfered_len_units) |
target_xfer_status | remote_xfer_live_readonly_partial (gdb_byte *readbuf, ULONGEST memaddr, ULONGEST len, int unit_size, ULONGEST *xfered_len) |
target_xfer_status | remote_read_bytes (CORE_ADDR memaddr, gdb_byte *myaddr, ULONGEST len, int unit_size, ULONGEST *xfered_len) |
packet_result | remote_send_printf (const char *format,...) ATTRIBUTE_PRINTF(2 |
packet_result target_xfer_status | remote_flash_write (ULONGEST address, ULONGEST length, ULONGEST *xfered_len, const gdb_byte *data) |
int | readchar (int timeout) |
void | remote_serial_write (const char *str, int len) |
int | putpkt (const char *buf) |
int | putpkt_binary (const char *buf, int cnt) |
int | putpkt (const gdb::char_vector &buf) |
void | skip_frame () |
long | read_frame (gdb::char_vector *buf_p) |
void | getpkt (gdb::char_vector *buf, int forever) |
int | getpkt_or_notif_sane_1 (gdb::char_vector *buf, int forever, int expecting_notif, int *is_notif) |
int | getpkt_sane (gdb::char_vector *buf, int forever) |
int | getpkt_or_notif_sane (gdb::char_vector *buf, int forever, int *is_notif) |
int | remote_vkill (int pid) |
void | remote_kill_k () |
void | extended_remote_disable_randomization (int val) |
int | extended_remote_run (const std::string &args) |
void | send_environment_packet (const char *action, const char *packet, const char *value) |
void | extended_remote_environment_support () |
void | extended_remote_set_inferior_cwd () |
target_xfer_status | remote_write_qxfer (const char *object_name, const char *annex, const gdb_byte *writebuf, ULONGEST offset, LONGEST len, ULONGEST *xfered_len, struct packet_config *packet) |
target_xfer_status | remote_read_qxfer (const char *object_name, const char *annex, gdb_byte *readbuf, ULONGEST offset, LONGEST len, ULONGEST *xfered_len, struct packet_config *packet) |
void | push_stop_reply (struct stop_reply *new_event) |
bool | vcont_r_supported () |
![]() | |
~process_stratum_target () override=0 | |
strata | stratum () const final override |
virtual const char * | connection_string () |
bool | can_async_p () override |
bool | supports_non_stop () override |
bool | supports_disable_randomization () override |
struct address_space * | thread_address_space (ptid_t ptid) override |
struct gdbarch * | thread_architecture (ptid_t ptid) override |
bool | has_all_memory () override |
bool | has_memory () override |
bool | has_stack () override |
bool | has_registers () override |
bool | has_execution (inferior *inf) override |
void | follow_exec (inferior *follow_inf, ptid_t ptid, const char *execd_pathname) override |
void | follow_fork (inferior *child_inf, ptid_t child_ptid, target_waitkind fork_kind, bool follow_child, bool detach_on_fork) override |
void | maybe_add_resumed_with_pending_wait_status (thread_info *thread) |
void | maybe_remove_resumed_with_pending_wait_status (thread_info *thread) |
bool | has_resumed_with_pending_wait_status () const |
thread_info * | random_resumed_with_pending_wait_status (inferior *inf, ptid_t filter_ptid) |
![]() | |
virtual strata | stratum () const =0 |
target_ops * | beneath () const |
virtual | ~target_ops () |
virtual const target_info & | info () const =0 |
const char * | shortname () const |
const char * | longname () const |
virtual void | close () |
virtual bool | can_attach () |
virtual void | attach (const char *, int) |
virtual void | post_attach (int) TARGET_DEFAULT_IGNORE() |
virtual void | detach (inferior *, int) TARGET_DEFAULT_IGNORE() |
virtual void | disconnect (const char *, int) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | resume (ptid_t, int TARGET_DEBUG_PRINTER(target_debug_print_step), enum gdb_signal) TARGET_DEFAULT_NORETURN(noprocess()) |
virtual void | commit_resumed () TARGET_DEFAULT_IGNORE() |
virtual ptid_t | wait (ptid_t, struct target_waitstatus *, target_wait_flags options) TARGET_DEFAULT_FUNC(default_target_wait) |
virtual void | fetch_registers (struct regcache *, int) TARGET_DEFAULT_IGNORE() |
virtual void | store_registers (struct regcache *, int) TARGET_DEFAULT_NORETURN(noprocess()) |
virtual void | prepare_to_store (struct regcache *) TARGET_DEFAULT_NORETURN(noprocess()) |
virtual void | files_info () TARGET_DEFAULT_IGNORE() |
virtual int | insert_breakpoint (struct gdbarch *, struct bp_target_info *) TARGET_DEFAULT_NORETURN(noprocess()) |
virtual int | remove_breakpoint (struct gdbarch *, struct bp_target_info *, enum remove_bp_reason) TARGET_DEFAULT_NORETURN(noprocess()) |
virtual bool | stopped_by_sw_breakpoint () TARGET_DEFAULT_RETURN(false) |
virtual bool | supports_stopped_by_sw_breakpoint () TARGET_DEFAULT_RETURN(false) |
virtual bool | stopped_by_hw_breakpoint () TARGET_DEFAULT_RETURN(false) |
virtual bool | supports_stopped_by_hw_breakpoint () TARGET_DEFAULT_RETURN(false) |
virtual int | can_use_hw_breakpoint (enum bptype, int, int) TARGET_DEFAULT_RETURN(0) |
virtual int | ranged_break_num_registers () TARGET_DEFAULT_RETURN(-1) |
virtual int | insert_hw_breakpoint (struct gdbarch *, struct bp_target_info *) TARGET_DEFAULT_RETURN(-1) |
virtual int | remove_hw_breakpoint (struct gdbarch *, struct bp_target_info *) TARGET_DEFAULT_RETURN(-1) |
virtual int | remove_watchpoint (CORE_ADDR, int, enum target_hw_bp_type, struct expression *) TARGET_DEFAULT_RETURN(-1) |
virtual int | insert_watchpoint (CORE_ADDR, int, enum target_hw_bp_type, struct expression *) TARGET_DEFAULT_RETURN(-1) |
virtual int | insert_mask_watchpoint (CORE_ADDR, CORE_ADDR, enum target_hw_bp_type) TARGET_DEFAULT_RETURN(1) |
virtual int | remove_mask_watchpoint (CORE_ADDR, CORE_ADDR, enum target_hw_bp_type) TARGET_DEFAULT_RETURN(1) |
virtual bool | stopped_by_watchpoint () TARGET_DEFAULT_RETURN(false) |
virtual bool | have_steppable_watchpoint () TARGET_DEFAULT_RETURN(false) |
virtual bool | stopped_data_address (CORE_ADDR *) TARGET_DEFAULT_RETURN(false) |
virtual bool | watchpoint_addr_within_range (CORE_ADDR, CORE_ADDR, int) TARGET_DEFAULT_FUNC(default_watchpoint_addr_within_range) |
virtual int | region_ok_for_hw_watchpoint (CORE_ADDR, int) TARGET_DEFAULT_FUNC(default_region_ok_for_hw_watchpoint) |
virtual bool | can_accel_watchpoint_condition (CORE_ADDR, int, int, struct expression *) TARGET_DEFAULT_RETURN(false) |
virtual int | masked_watch_num_registers (CORE_ADDR, CORE_ADDR) TARGET_DEFAULT_RETURN(-1) |
virtual int | can_do_single_step () TARGET_DEFAULT_RETURN(-1) |
virtual bool | supports_terminal_ours () TARGET_DEFAULT_RETURN(false) |
virtual void | terminal_init () TARGET_DEFAULT_IGNORE() |
virtual void | terminal_inferior () TARGET_DEFAULT_IGNORE() |
virtual void | terminal_save_inferior () TARGET_DEFAULT_IGNORE() |
virtual void | terminal_ours_for_output () TARGET_DEFAULT_IGNORE() |
virtual void | terminal_ours () TARGET_DEFAULT_IGNORE() |
virtual void | terminal_info (const char *, int) TARGET_DEFAULT_FUNC(default_terminal_info) |
virtual void | kill () TARGET_DEFAULT_NORETURN(noprocess()) |
virtual void | load (const char *, int) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual bool | can_create_inferior () |
virtual void | create_inferior (const char *, const std::string &, char **, int) |
virtual int | insert_fork_catchpoint (int) TARGET_DEFAULT_RETURN(1) |
virtual int | remove_fork_catchpoint (int) TARGET_DEFAULT_RETURN(1) |
virtual int | insert_vfork_catchpoint (int) TARGET_DEFAULT_RETURN(1) |
virtual int | remove_vfork_catchpoint (int) TARGET_DEFAULT_RETURN(1) |
virtual void | follow_fork (inferior *, ptid_t, target_waitkind, bool, bool) TARGET_DEFAULT_FUNC(default_follow_fork) |
virtual int | insert_exec_catchpoint (int) TARGET_DEFAULT_RETURN(1) |
virtual int | remove_exec_catchpoint (int) TARGET_DEFAULT_RETURN(1) |
virtual void | follow_exec (inferior *, ptid_t, const char *) TARGET_DEFAULT_IGNORE() |
virtual int | set_syscall_catchpoint (int, bool, int, gdb::array_view< const int >) TARGET_DEFAULT_RETURN(1) |
virtual void | mourn_inferior () TARGET_DEFAULT_FUNC(default_mourn_inferior) |
virtual bool | can_run () |
virtual void | pass_signals (gdb::array_view< const unsigned char > TARGET_DEBUG_PRINTER(target_debug_print_signals)) TARGET_DEFAULT_IGNORE() |
virtual void | program_signals (gdb::array_view< const unsigned char > TARGET_DEBUG_PRINTER(target_debug_print_signals)) TARGET_DEFAULT_IGNORE() |
virtual bool | thread_alive (ptid_t ptid) TARGET_DEFAULT_RETURN(false) |
virtual void | update_thread_list () TARGET_DEFAULT_IGNORE() |
virtual std::string | pid_to_str (ptid_t) TARGET_DEFAULT_FUNC(default_pid_to_str) |
virtual const char * | extra_thread_info (thread_info *) TARGET_DEFAULT_RETURN(NULL) |
virtual const char * | thread_name (thread_info *) TARGET_DEFAULT_RETURN(NULL) |
virtual thread_info * | thread_handle_to_thread_info (const gdb_byte *, int, inferior *inf) TARGET_DEFAULT_RETURN(NULL) |
virtual void | interrupt () TARGET_DEFAULT_IGNORE() |
virtual void | pass_ctrlc () TARGET_DEFAULT_FUNC(default_target_pass_ctrlc) |
virtual void | rcmd (const char *command, struct ui_file *output) TARGET_DEFAULT_FUNC(default_rcmd) |
virtual const char * | pid_to_exec_file (int pid) TARGET_DEFAULT_RETURN(NULL) |
virtual void | log_command (const char *) TARGET_DEFAULT_IGNORE() |
virtual const target_section_table * | get_section_table () TARGET_DEFAULT_RETURN(default_get_section_table()) |
virtual bool | has_all_memory () |
virtual bool | has_memory () |
virtual bool | has_stack () |
virtual bool | has_registers () |
virtual bool | has_execution (inferior *inf) |
virtual thread_control_capabilities | get_thread_control_capabilities () TARGET_DEFAULT_RETURN(tc_none) |
virtual bool | attach_no_wait () TARGET_DEFAULT_RETURN(0) |
virtual bool | can_async_p () TARGET_DEFAULT_RETURN(false) |
virtual bool | is_async_p () TARGET_DEFAULT_RETURN(false) |
virtual void | async (bool) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual int | async_wait_fd () TARGET_DEFAULT_NORETURN(noprocess()) |
virtual bool | has_pending_events () TARGET_DEFAULT_RETURN(false) |
virtual void | thread_events (int) TARGET_DEFAULT_IGNORE() |
virtual bool | supports_non_stop () TARGET_DEFAULT_RETURN(false) |
virtual bool | always_non_stop_p () TARGET_DEFAULT_RETURN(false) |
virtual int | find_memory_regions (find_memory_region_ftype func, void *data) TARGET_DEFAULT_FUNC(dummy_find_memory_regions) |
virtual gdb::unique_xmalloc_ptr< char > | make_corefile_notes (bfd *, int *) TARGET_DEFAULT_FUNC(dummy_make_corefile_notes) |
virtual gdb_byte * | get_bookmark (const char *, int) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | goto_bookmark (const gdb_byte *, int) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual CORE_ADDR | get_thread_local_address (ptid_t ptid, CORE_ADDR load_module_addr, CORE_ADDR offset) TARGET_DEFAULT_NORETURN(generic_tls_error()) |
virtual enum target_xfer_status | xfer_partial (enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len) TARGET_DEFAULT_RETURN(TARGET_XFER_E_IO) |
virtual ULONGEST | get_memory_xfer_limit () TARGET_DEFAULT_RETURN(ULONGEST_MAX) |
virtual std::vector< mem_region > virtual memory_map() TARGET_DEFAULT_RETURN(std void | flash_erase (ULONGEST address, LONGEST length) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | flash_done () TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual const struct target_desc * | read_description () TARGET_DEFAULT_RETURN(NULL) |
virtual ptid_t | get_ada_task_ptid (long lwp, ULONGEST thread) TARGET_DEFAULT_FUNC(default_get_ada_task_ptid) |
virtual int | auxv_parse (const gdb_byte **readptr, const gdb_byte *endptr, CORE_ADDR *typep, CORE_ADDR *valp) TARGET_DEFAULT_FUNC(default_auxv_parse) |
virtual int | search_memory (CORE_ADDR start_addr, ULONGEST search_space_len, const gdb_byte *pattern, ULONGEST pattern_len, CORE_ADDR *found_addrp) TARGET_DEFAULT_FUNC(default_search_memory) |
virtual bool | can_execute_reverse () TARGET_DEFAULT_RETURN(false) |
virtual enum exec_direction_kind | execution_direction () TARGET_DEFAULT_FUNC(default_execution_direction) |
virtual bool | supports_multi_process () TARGET_DEFAULT_RETURN(false) |
virtual bool | supports_enable_disable_tracepoint () TARGET_DEFAULT_RETURN(false) |
virtual bool | supports_disable_randomization () TARGET_DEFAULT_FUNC(find_default_supports_disable_randomization) |
virtual bool | supports_string_tracing () TARGET_DEFAULT_RETURN(false) |
virtual bool | supports_evaluation_of_breakpoint_conditions () TARGET_DEFAULT_RETURN(false) |
virtual bool | supports_dumpcore () TARGET_DEFAULT_RETURN(false) |
virtual void | dumpcore (const char *filename) TARGET_DEFAULT_IGNORE() |
virtual bool | can_run_breakpoint_commands () TARGET_DEFAULT_RETURN(false) |
virtual struct gdbarch * | thread_architecture (ptid_t) TARGET_DEFAULT_RETURN(NULL) |
virtual struct address_space * | thread_address_space (ptid_t) TARGET_DEFAULT_RETURN(NULL) |
virtual bool | filesystem_is_local () TARGET_DEFAULT_RETURN(true) |
virtual int | fileio_open (struct inferior *inf, const char *filename, int flags, int mode, int warn_if_slow, fileio_error *target_errno) |
virtual int | fileio_pwrite (int fd, const gdb_byte *write_buf, int len, ULONGEST offset, fileio_error *target_errno) |
virtual int | fileio_pread (int fd, gdb_byte *read_buf, int len, ULONGEST offset, fileio_error *target_errno) |
virtual int | fileio_fstat (int fd, struct stat *sb, fileio_error *target_errno) |
virtual int | fileio_close (int fd, fileio_error *target_errno) |
virtual int | fileio_unlink (struct inferior *inf, const char *filename, fileio_error *target_errno) |
virtual gdb::optional< std::string > | fileio_readlink (struct inferior *inf, const char *filename, fileio_error *target_errno) |
virtual bool | info_proc (const char *, enum info_proc_what) |
virtual void | trace_init () TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | download_tracepoint (struct bp_location *location) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual bool | can_download_tracepoint () TARGET_DEFAULT_RETURN(false) |
virtual void | download_trace_state_variable (const trace_state_variable &tsv) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | enable_tracepoint (struct bp_location *location) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | disable_tracepoint (struct bp_location *location) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | trace_set_readonly_regions () TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | trace_start () TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual int | get_trace_status (struct trace_status *ts) TARGET_DEFAULT_RETURN(-1) |
virtual void | get_tracepoint_status (struct breakpoint *tp, struct uploaded_tp *utp) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | trace_stop () TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual int | trace_find (enum trace_find_type type, int num, CORE_ADDR addr1, CORE_ADDR addr2, int *tpp) TARGET_DEFAULT_RETURN(-1) |
virtual bool | get_trace_state_variable_value (int tsv, LONGEST *val) TARGET_DEFAULT_RETURN(false) |
virtual int | save_trace_data (const char *filename) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual int | upload_tracepoints (struct uploaded_tp **utpp) TARGET_DEFAULT_RETURN(0) |
virtual int | upload_trace_state_variables (struct uploaded_tsv **utsvp) TARGET_DEFAULT_RETURN(0) |
virtual LONGEST | get_raw_trace_data (gdb_byte *buf, ULONGEST offset, LONGEST len) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual int | get_min_fast_tracepoint_insn_len () TARGET_DEFAULT_RETURN(-1) |
virtual void | set_disconnected_tracing (int val) TARGET_DEFAULT_IGNORE() |
virtual void | set_circular_trace_buffer (int val) TARGET_DEFAULT_IGNORE() |
virtual void | set_trace_buffer_size (LONGEST val) TARGET_DEFAULT_IGNORE() |
virtual bool | set_trace_notes (const char *user, const char *notes, const char *stopnotes) TARGET_DEFAULT_RETURN(false) |
virtual int | core_of_thread (ptid_t ptid) TARGET_DEFAULT_RETURN(-1) |
virtual int | verify_memory (const gdb_byte *data, CORE_ADDR memaddr, ULONGEST size) TARGET_DEFAULT_FUNC(default_verify_memory) |
virtual bool | get_tib_address (ptid_t ptid, CORE_ADDR *addr) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | set_permissions () TARGET_DEFAULT_IGNORE() |
virtual bool | static_tracepoint_marker_at (CORE_ADDR, static_tracepoint_marker *marker) TARGET_DEFAULT_RETURN(false) |
virtual std::vector< static_tracepoint_marker > | static_tracepoint_markers_by_strid (const char *id) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual traceframe_info_up | traceframe_info () TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual bool | use_agent (bool use) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual bool | can_use_agent () TARGET_DEFAULT_RETURN(false) |
virtual struct btrace_target_info * | enable_btrace (thread_info *tp, const struct btrace_config *conf) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | disable_btrace (struct btrace_target_info *tinfo) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | teardown_btrace (struct btrace_target_info *tinfo) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual enum btrace_error | read_btrace (struct btrace_data *data, struct btrace_target_info *btinfo, enum btrace_read_type type) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual const struct btrace_config * | btrace_conf (const struct btrace_target_info *) TARGET_DEFAULT_RETURN(NULL) |
virtual enum record_method | record_method (ptid_t ptid) TARGET_DEFAULT_RETURN(RECORD_METHOD_NONE) |
virtual void | stop_recording () TARGET_DEFAULT_IGNORE() |
virtual void | info_record () TARGET_DEFAULT_IGNORE() |
virtual void | save_record (const char *filename) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual bool | supports_delete_record () TARGET_DEFAULT_RETURN(false) |
virtual void | delete_record () TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual bool | record_is_replaying (ptid_t ptid) TARGET_DEFAULT_RETURN(false) |
virtual bool | record_will_replay (ptid_t ptid, int dir) TARGET_DEFAULT_RETURN(false) |
virtual void | record_stop_replaying () TARGET_DEFAULT_IGNORE() |
virtual void | goto_record_begin () TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | goto_record_end () TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | goto_record (ULONGEST insn) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | insn_history (int size, gdb_disassembly_flags flags) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | insn_history_from (ULONGEST from, int size, gdb_disassembly_flags flags) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | insn_history_range (ULONGEST begin, ULONGEST end, gdb_disassembly_flags flags) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | call_history (int size, record_print_flags flags) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | call_history_from (ULONGEST begin, int size, record_print_flags flags) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | call_history_range (ULONGEST begin, ULONGEST end, record_print_flags flags) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual bool | augmented_libraries_svr4_read () TARGET_DEFAULT_RETURN(false) |
virtual const struct frame_unwind * | get_unwinder () TARGET_DEFAULT_RETURN(NULL) |
virtual const struct frame_unwind * | get_tailcall_unwinder () TARGET_DEFAULT_RETURN(NULL) |
virtual void | prepare_to_generate_core () TARGET_DEFAULT_IGNORE() |
virtual void | done_generating_core () TARGET_DEFAULT_IGNORE() |
virtual bool | supports_memory_tagging () TARGET_DEFAULT_RETURN(false) |
virtual bool | fetch_memtags (CORE_ADDR address, size_t len, gdb::byte_vector &tags, int type) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual bool | store_memtags (CORE_ADDR address, size_t len, const gdb::byte_vector &tags, int type) TARGET_DEFAULT_NORETURN(tcomplain()) |
Static Public Member Functions | |
static void | open (const char *, int) |
static void | open_1 (const char *name, int from_tty, int extended_p) |
Private Member Functions | |
bool | start_remote_1 (int from_tty, int extended_p) |
Private Attributes | |
remote_state | m_remote_state |
Additional Inherited Members | |
![]() | |
bool | threads_executing = false |
int | connection_number = 0 |
bool | commit_resumed_state = false |
![]() | |
virtual gdb::byte_vector virtual thread_info_to_thread_handle(struct thread_info *) TARGET_DEFAULT_RETURN(gdb voi | stop )(ptid_t) TARGET_DEFAULT_IGNORE() |
|
default |
Referenced by open_1().
thread_info * remote_target::add_current_inferior_and_thread | ( | const char * | wait_status | ) |
Definition at line 4477 of file remote.c.
References add_thread_silent(), get_current_thread(), get_remote_state(), magic_null_ptid(), remote_add_inferior(), remote_multi_process_p(), switch_to_no_thread(), and switch_to_thread_no_regs().
Referenced by extended_remote_target::create_inferior(), and start_remote_1().
char * remote_target::append_pending_thread_resumptions | ( | char * | p, |
char * | endp, | ||
ptid_t | ptid | ||
) |
Definition at line 6384 of file remote.c.
References all_non_exited_threads(), append_resumption(), inferior_ptid, and resume_clear_thread_private_info().
Referenced by remote_resume_with_vcont().
char * remote_target::append_resumption | ( | char * | p, |
char * | endp, | ||
ptid_t | ptid, | ||
int | step, | ||
gdb_signal | siggnal | ||
) |
Definition at line 6297 of file remote.c.
References thread_info::control, find_thread_ptid(), gdbarch_addr_bit(), get_remote_state(), magic_null_ptid(), thread_control_state::may_range_step, vCont_action_support::r, remote_multi_process_p(), thread_control_state::step_range_end, thread_control_state::step_range_start, remote_state::supports_vCont, target_gdbarch(), use_range_stepping, and write_ptid().
Referenced by append_pending_thread_resumptions(), vcont_builder::push_action(), and remote_resume_with_vcont().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 14436 of file remote.c.
References clear_async_event_handler(), enable, remote_notif_state::get_pending_events_token, get_remote_state(), mark_async_event_handler(), remote_state::notif_state, remote_state::remote_async_inferior_event_token, remote_async_serial_handler, remote_state::remote_desc, serial_async(), remote_state::stop_reply_queue, and target_is_non_stop_p().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 14429 of file remote.c.
References serial::fd, get_remote_state(), and remote_state::remote_desc.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 14277 of file remote.c.
References PACKET_augmented_libraries_svr4_read_feature, and PACKET_ENABLE.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 14271 of file remote.c.
References btrace_target_info::conf.
void remote_target::btrace_sync_conf | ( | const btrace_config * | conf | ) |
Definition at line 13996 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), getpkt(), packet_config::name, packet_config_support(), PACKET_ENABLE, PACKET_ERROR, packet_ok(), PACKET_Qbtrace_conf_bts_size, PACKET_Qbtrace_conf_pt_size, putpkt(), and remote_protocol_packets.
Referenced by enable_btrace().
|
overridevirtual |
Reimplemented from process_stratum_target.
Definition at line 14390 of file remote.c.
References get_remote_state(), remote_state::remote_desc, serial_can_async_p(), and target_async_permitted.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 14325 of file remote.c.
References get_remote_state(), PACKET_ENABLE, PACKET_SUPPORT_UNKNOWN, PACKET_vCont, PACKET_vContSupported, remote_vcont_probe(), vCont_action_support::s, vCont_action_support::S, and remote_state::supports_vCont.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13348 of file remote.c.
References current_trace_status(), get_remote_state(), get_trace_status(), remote_supports_install_in_trace(), trace_status::running, trace_status::running_known, remote_state::starting_up, and status.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 12988 of file remote.c.
References PACKET_bc, PACKET_bs, and PACKET_ENABLE.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13062 of file remote.c.
References PACKET_BreakpointCommands, and PACKET_ENABLE.
Referenced by insert_breakpoint(), and insert_hw_breakpoint().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13971 of file remote.c.
References PACKET_DISABLE, and PACKET_QAgent.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 10771 of file remote.c.
References bp_hardware_breakpoint, remote_hw_breakpoint_limit, and remote_hw_watchpoint_limit.
void remote_target::check_binary_download | ( | CORE_ADDR | addr | ) |
Definition at line 8883 of file remote.c.
References remote_state::buf, get_remote_state(), getpkt(), hexnumstr(), PACKET_DISABLE, PACKET_ENABLE, PACKET_SUPPORT_UNKNOWN, PACKET_X, putpkt_binary(), remote_debug_printf, remote_protocol_packets, and packet_config::support.
Referenced by remote_write_bytes().
void remote_target::check_pending_events_prevent_wildcard_vcont | ( | bool * | may_global_wildcard_vcont | ) |
Definition at line 7325 of file remote.c.
References find_inferior_ptid(), get_remote_inferior(), get_remote_state(), remote_inferior::may_wildcard_vcont, notif_client_stop, remote_notif_get_pending_events(), remote_state::stop_reply_queue, TARGET_WAITKIND_FORKED, TARGET_WAITKIND_NO_HISTORY, TARGET_WAITKIND_NO_RESUMED, and TARGET_WAITKIND_VFORKED.
Referenced by commit_resumed().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 4198 of file remote.c.
References terminal_ours(), and trace_reset_local_state().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 6721 of file remote.c.
References all_non_exited_inferiors(), all_non_exited_threads(), check_pending_events_prevent_wildcard_vcont(), EXEC_REVERSE, execution_direction(), vcont_builder::flush(), get_remote_inferior(), get_remote_state(), get_remote_thread_info(), remote_thread_info::get_resume_state(), info(), remote_inferior::may_wildcard_vcont, NOT_RESUMED, inf::pid, stop_reply::ptid, vcont_builder::push_action(), RESUMED_PENDING_VCONT, remote_thread_info::resumed_pending_vcont_info(), remote_thread_info::set_resumed(), remote_state::stop_reply_queue, target_is_non_stop_p(), thread_is_in_step_over_chain(), and thread_pending_fork_status().
Referenced by remote_stop_ns().
|
overridevirtual |
Reimplemented from process_stratum_target.
Definition at line 5076 of file remote.c.
References get_remote_state(), serial::name, and remote_state::remote_desc.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13798 of file remote.c.
References remote_thread_info::core, find_thread_ptid(), get_remote_thread_info(), and info().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 6037 of file remote.c.
References remote_detach_1().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 14188 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), getpkt(), packet_config::name, packet_config_support(), PACKET_ENABLE, PACKET_ERROR, packet_ok(), PACKET_Qbtrace_off, btrace_target_info::ptid, putpkt(), remote_protocol_packets, set_general_thread(), target_pid_to_str(), and xfree().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13415 of file remote.c.
References bp_location::address, remote_state::buf, get_remote_packet_size(), get_remote_state(), breakpoint::number, bp_location::owner, putpkt(), and remote_get_noisy_reply().
void remote_target::discard_pending_stop_replies | ( | struct inferior * | inf | ) |
Definition at line 7357 of file remote.c.
References get_remote_state(), notif_client::id, notif_client_stop, remote_state::notif_state, remote_notif_state::pending_event, inf::pid, stop_reply::ptid, remote_debug_printf, remote_state::remote_desc, target_waitstatus::set_ignore(), remote_state::stop_reply_queue, target_waitstatus::to_string(), and stop_reply::ws.
Referenced by mourn_inferior().
void remote_target::discard_pending_stop_replies_in_queue | ( | ) |
Definition at line 7402 of file remote.c.
References get_remote_state(), and remote_state::stop_reply_queue.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 6102 of file remote.c.
References gdb_puts(), and remote_unpush_target().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13376 of file remote.c.
References remote_state::buf, trace_state_variable::builtin, get_remote_packet_size(), get_remote_state(), trace_state_variable::initial_value, trace_state_variable::name, trace_state_variable::number, putpkt(), and remote_get_noisy_reply().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13119 of file remote.c.
References bp_enabled, bp_fast_tracepoint, bp_static_marker_tracepoint, bp_static_tracepoint, breakpoint_commands(), remote_state::buf, breakpoint::commands, breakpoint::cond_string, default_collect, breakpoint::enable_state, encode_actions_rsp(), encode_source_string(), gdb_insn_length(), gdbarch_fast_tracepoint_valid_at(), gen_eval_for_expr(), get_remote_packet_size(), get_remote_state(), loc, breakpoint::locspec, breakpoint::number, PACKET_ENABLE, PACKET_TracepointSource, tracepoint::pass_count, putpkt(), QUIT, remote_download_command_source(), remote_get_noisy_reply(), remote_supports_cond_tracepoints(), remote_supports_fast_tracepoints(), remote_supports_static_tracepoints(), tracepoint::step_count, target_static_tracepoint_marker_at(), and breakpoint::type.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 14125 of file remote.c.
References btrace_read_config(), btrace_sync_conf(), remote_state::buf, btrace_target_info::conf, err, get_remote_packet_size(), get_remote_state(), getpkt(), packet_config::name, packet_config_support(), PACKET_ENABLE, PACKET_ERROR, packet_ok(), PACKET_Qbtrace_bts, PACKET_Qbtrace_pt, thread_info::ptid, btrace_target_info::ptid, putpkt(), remote_protocol_packets, set_general_thread(), and target_pid_to_str().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13399 of file remote.c.
References bp_location::address, remote_state::buf, get_remote_packet_size(), get_remote_state(), breakpoint::number, bp_location::owner, putpkt(), and remote_get_noisy_reply().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 14349 of file remote.c.
References get_remote_state(), and remote_state::last_resume_exec_dir.
Referenced by commit_resumed(), remote_resume_with_hc(), remote_resume_with_vcont(), and resume().
void remote_target::extended_remote_disable_randomization | ( | int | val | ) |
Definition at line 10261 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), putpkt(), and remote_get_noisy_reply().
Referenced by extended_remote_target::create_inferior().
void remote_target::extended_remote_environment_support | ( | ) |
Definition at line 10365 of file remote.c.
References remote_state::buf, current_inferior(), inferior::environment, get_remote_state(), getpkt(), PACKET_DISABLE, PACKET_QEnvironmentHexEncoded, PACKET_QEnvironmentReset, PACKET_QEnvironmentUnset, putpkt(), and send_environment_packet().
Referenced by extended_remote_target::create_inferior().
void remote_target::extended_remote_restart | ( | ) |
Definition at line 4183 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), putpkt(), and remote_fileio_reset().
Referenced by extended_remote_target::create_inferior().
int remote_target::extended_remote_run | ( | const std::string & | args | ) |
Definition at line 10277 of file remote.c.
References remote_state::buf, get_remote_exec_file(), get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_vRun, putpkt(), and remote_protocol_packets.
Referenced by extended_remote_target::create_inferior().
void remote_target::extended_remote_set_inferior_cwd | ( | ) |
Definition at line 10393 of file remote.c.
References remote_state::buf, current_inferior(), inferior::cwd(), get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_DISABLE, PACKET_OK, packet_ok(), PACKET_QSetWorkingDir, putpkt(), and remote_protocol_packets.
Referenced by extended_remote_target::create_inferior().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 4032 of file remote.c.
References gdb_ext_thread_info::active, remote_state::buf, gdb_ext_thread_info::display, remote_thread_info::extra, get_remote_packet_size(), get_remote_state(), get_remote_thread_info(), getpkt(), int_to_threadref(), magic_null_ptid(), gdb_ext_thread_info::more_display, PACKET_ENABLE, PACKET_qXfer_threads, thread_info::ptid, putpkt(), remote_state::remote_desc, remote_get_threadinfo(), gdb_ext_thread_info::shortname, TAG_DISPLAY, TAG_EXISTS, TAG_MOREDISPLAY, TAG_THREADID, TAG_THREADNAME, remote_state::use_threadextra_query, and write_ptid().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 14756 of file remote.c.
References remote_state::buf, create_fetch_memtags_request(), get_remote_state(), getpkt(), parse_fetch_memtags_reply(), putpkt(), and remote_memory_tagging_p().
int remote_target::fetch_register_using_p | ( | struct regcache * | regcache, |
packet_reg * | reg | ||
) |
Definition at line 8374 of file remote.c.
References reg_buffer::arch(), remote_state::buf, gdbarch_register_name(), get_remote_state(), getpkt(), hexnumstr(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_p, PACKET_UNKNOWN, packet_reg::pnum, putpkt(), reg_buffer::raw_supply(), register_size(), packet_reg::regnum, and remote_protocol_packets.
Referenced by fetch_registers().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 8604 of file remote.c.
References reg_buffer::arch(), fetch_register_using_p(), fetch_registers_using_g(), gdbarch_num_regs(), remote_state::get_remote_arch_state(), get_remote_state(), packet_reg::in_g_packet, packet_reg_from_regnum(), regcache::ptid(), reg_buffer::raw_supply(), regnum, packet_reg::regnum, remote_arch_state::regs, set_general_thread(), and set_remote_traceframe().
void remote_target::fetch_registers_using_g | ( | struct regcache * | regcache | ) |
Definition at line 8574 of file remote.c.
References process_g_packet(), and send_g_packet().
Referenced by fetch_registers().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 12525 of file remote.c.
References remote_hostio_close().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 12600 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), INT_MAX, PACKET_vFile_fstat, remote_buffer_add_int(), remote_buffer_add_string(), remote_fileio_to_host_stat(), and remote_hostio_send_command().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 12351 of file remote.c.
References flags, and remote_hostio_open().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 12499 of file remote.c.
References remote_hostio_pread().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 12389 of file remote.c.
References remote_hostio_pwrite().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 12562 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), PACKET_vFile_readlink, remote_buffer_add_bytes(), remote_buffer_add_string(), remote_hostio_send_command(), and remote_hostio_set_filesystem().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 12553 of file remote.c.
References remote_hostio_unlink().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 12658 of file remote.c.
References gdb_sysroot, PACKET_DISABLE, PACKET_SUPPORT_UNKNOWN, PACKET_vFile_open, remote_hostio_close(), remote_hostio_open(), and TARGET_SYSROOT_PREFIX.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 9400 of file remote.c.
References PACKET_ERROR, PACKET_UNKNOWN, remote_flash_timeout, remote_send_printf(), and remote_timeout.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 9367 of file remote.c.
References gdbarch_addr_bit(), PACKET_ERROR, PACKET_UNKNOWN, remote_flash_timeout, remote_send_printf(), remote_timeout, and target_gdbarch().
|
overridevirtual |
Reimplemented from process_stratum_target.
Definition at line 6086 of file remote.c.
References process_stratum_target::follow_exec(), is_target_filename(), inferior::pspace, set_pspace_remote_exec_file(), and TARGET_SYSROOT_PREFIX.
|
overridevirtual |
Reimplemented from process_stratum_target.
Definition at line 6056 of file remote.c.
References detach_fork, process_stratum_target::follow_fork(), get_remote_state(), remote_detach_pid(), remote_fork_event_p(), remote_vfork_event_p(), TARGET_WAITKIND_FORKED, and TARGET_WAITKIND_VFORKED.
|
overridevirtual |
ptid_t remote_target::get_current_thread | ( | const char * | wait_status | ) |
Definition at line 4448 of file remote.c.
References inferior_ptid, remote_current_thread(), and stop_reply_extract_thread().
Referenced by add_current_inferior_and_thread(), and start_remote_1().
long remote_target::get_memory_packet_size | ( | struct memory_packet_config * | config | ) |
Definition at line 1683 of file remote.c.
References remote_arch_state::actual_register_packet_size, remote_state::buf, remote_state::explicit_packet_size, memory_packet_config::fixed_p, get_fixed_memory_packet_size(), remote_state::get_remote_arch_state(), get_remote_packet_size(), get_remote_state(), MIN_MEMORY_PACKET_SIZE, memory_packet_config::size, and target_gdbarch().
Referenced by get_memory_read_packet_size(), get_memory_write_packet_size(), and show_memory_packet_size().
long remote_target::get_memory_read_packet_size | ( | ) |
Definition at line 1881 of file remote.c.
References get_memory_packet_size(), get_remote_packet_size(), memory_read_packet_config, and size.
Referenced by remote_read_bytes_1().
long remote_target::get_memory_write_packet_size | ( | ) |
Definition at line 1857 of file remote.c.
References get_memory_packet_size(), and memory_write_packet_config.
Referenced by get_memory_xfer_limit(), remote_write_bytes_aux(), remote_write_qxfer(), and search_memory().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 11416 of file remote.c.
References get_memory_write_packet_size().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13843 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), putpkt(), remote_get_noisy_reply(), set_general_process(), and target_has_execution().
void remote_target::get_offsets | ( | ) |
Definition at line 4232 of file remote.c.
References remote_state::buf, current_program_space, get_remote_state(), get_symfile_segment_data(), getpkt(), objfile::obfd, objfile_relocate(), putpkt(), SECT_OFF_BSS, SECT_OFF_DATA, SECT_OFF_TEXT, objfile::section_offsets, symfile_map_offsets_to_segments(), and program_space::symfile_object_file.
Referenced by extended_remote_target::create_inferior(), extended_remote_target::post_attach(), and start_remote_1().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13738 of file remote.c.
References remote_state::buf, get_remote_state(), hexnumstr(), putpkt(), and remote_get_noisy_reply().
long remote_target::get_remote_packet_size | ( | void | ) |
Definition at line 1516 of file remote.c.
References remote_state::explicit_packet_size, remote_state::get_remote_arch_state(), get_remote_state(), remote_arch_state::remote_packet_size, and target_gdbarch().
Referenced by extended_remote_target::attach(), btrace_sync_conf(), extended_remote_target::create_inferior(), disable_btrace(), disable_tracepoint(), download_trace_state_variable(), download_tracepoint(), enable_btrace(), enable_tracepoint(), extended_remote_disable_randomization(), extended_remote_restart(), extended_remote_run(), extended_remote_set_inferior_cwd(), extra_thread_info(), fileio_fstat(), fileio_readlink(), get_memory_packet_size(), get_memory_read_packet_size(), get_min_fast_tracepoint_insn_len(), get_thread_local_address(), get_tib_address(), get_trace_state_variable_value(), get_tracepoint_status(), insert_breakpoint(), insert_hw_breakpoint(), insert_watchpoint(), rcmd(), remote_check_symbols(), remote_detach_pid(), remote_file_get(), remote_file_put(), remote_get_threadlist(), remote_hostio_close(), remote_hostio_open(), remote_hostio_pread(), remote_hostio_pread_vFile(), remote_hostio_pwrite(), remote_hostio_set_filesystem(), remote_hostio_unlink(), remote_interrupt_ns(), remote_query_attached(), remote_read_qxfer(), remote_resume_with_vcont(), remote_send_printf(), remote_stop_ns(), remote_vkill(), remove_breakpoint(), remove_hw_breakpoint(), remove_watchpoint(), vcont_builder::restart(), save_trace_data(), send_environment_packet(), send_g_packet(), set_circular_trace_buffer(), set_disconnected_tracing(), set_permissions(), set_syscall_catchpoint(), set_thread(), set_trace_buffer_size(), set_trace_notes(), static_tracepoint_marker_at(), store_register_using_P(), thread_alive(), thread_events(), trace_find(), use_agent(), verify_memory(), and xfer_partial().
remote_state * remote_target::get_remote_state | ( | ) |
Definition at line 1346 of file remote.c.
References remote_state::get_remote_arch_state(), m_remote_state, and target_gdbarch().
Referenced by add_current_inferior_and_thread(), append_resumption(), async(), async_wait_fd(), extended_remote_target::attach(), btrace_sync_conf(), can_async_p(), can_do_single_step(), can_download_tracepoint(), check_binary_download(), check_pending_events_prevent_wildcard_vcont(), commit_resumed(), connection_string(), extended_remote_target::create_inferior(), disable_btrace(), disable_tracepoint(), discard_pending_stop_replies(), discard_pending_stop_replies_in_queue(), download_trace_state_variable(), download_tracepoint(), enable_btrace(), enable_tracepoint(), execution_direction(), extended_remote_disable_randomization(), extended_remote_environment_support(), extended_remote_restart(), extended_remote_run(), extended_remote_set_inferior_cwd(), extra_thread_info(), fetch_memtags(), fetch_register_using_p(), fetch_registers(), fileio_fstat(), fileio_readlink(), vcont_builder::flush(), follow_fork(), get_memory_packet_size(), get_min_fast_tracepoint_insn_len(), get_offsets(), get_raw_trace_data(), get_remote_packet_size(), get_thread_local_address(), get_tib_address(), get_trace_state_variable_value(), get_trace_status(), get_tracepoint_status(), getpkt_or_notif_sane_1(), has_pending_events(), insert_breakpoint(), insert_exec_catchpoint(), insert_fork_catchpoint(), insert_hw_breakpoint(), insert_vfork_catchpoint(), insert_watchpoint(), interrupt_query(), is_async_p(), kill(), kill_new_fork_children(), mourn_inferior(), open_1(), parse_threadlist_response(), pass_ctrlc(), pass_signals(), peek_stop_reply(), pid_to_str(), prepare_to_store(), process_g_packet(), program_signals(), push_stop_reply(), putpkt_binary(), queued_stop_reply(), rcmd(), read_frame(), readchar(), remote_add_thread(), remote_btrace_maybe_reopen(), remote_current_thread(), remote_detach_1(), remote_detach_pid(), remote_download_command_source(), remote_get_noisy_reply(), remote_get_threadinfo(), remote_get_threadlist(), remote_get_threads_with_qthreadinfo(), remote_hostio_close(), remote_hostio_open(), remote_hostio_pread(), remote_hostio_pread_vFile(), remote_hostio_pwrite(), remote_hostio_send_command(), remote_hostio_set_filesystem(), remote_hostio_unlink(), remote_interrupt_as(), remote_interrupt_ns(), remote_notice_new_inferior(), remote_notif_get_pending_events(), remote_notif_remove_queued_reply(), remote_notif_stop_can_get_pending_events(), remote_packet_size(), remote_parse_stop_reply(), remote_query_attached(), remote_query_supported(), remote_read_bytes_1(), remote_read_qxfer(), remote_resume_with_hc(), remote_resume_with_vcont(), remote_send_printf(), remote_serial_quit_handler(), remote_serial_write(), remote_stop_ns(), remote_threadlist_iterator(), remote_unpack_thread_info_response(), remote_vcont_probe(), remote_vkill(), remote_write_bytes_aux(), remote_write_qxfer(), remove_breakpoint(), remove_hw_breakpoint(), remove_new_fork_children(), remove_watchpoint(), vcont_builder::restart(), resume(), save_trace_data(), search_memory(), send_environment_packet(), send_g_packet(), send_interrupt_sequence(), send_remote_packet(), set_circular_trace_buffer(), set_disconnected_tracing(), set_general_process(), set_permissions(), set_remote_traceframe(), scoped_mark_target_starting::set_starting_up_flag(), set_syscall_catchpoint(), set_thread(), set_trace_buffer_size(), set_trace_notes(), start_remote_1(), static_tracepoint_marker_at(), static_tracepoint_markers_by_strid(), stop_reply_queue_length(), store_memtags(), store_register_using_P(), store_registers(), store_registers_using_G(), supports_multi_process(), thread_alive(), thread_events(), trace_find(), trace_init(), trace_set_readonly_regions(), trace_start(), trace_stop(), upload_trace_state_variables(), upload_tracepoints(), use_agent(), vcont_r_supported(), verify_memory(), wait(), wait_as(), wait_ns(), write_ptid(), and xfer_partial().
|
inlineoverridevirtual |
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 11879 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), PACKET_DISABLE, PACKET_OK, packet_ok(), PACKET_qGetTLSAddr, PACKET_UNKNOWN, putpkt(), remote_protocol_packets, and write_ptid().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 11927 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_DISABLE, PACKET_OK, packet_ok(), PACKET_qGetTIBAddr, PACKET_UNKNOWN, putpkt(), remote_protocol_packets, and write_ptid().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13686 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), putpkt(), remote_get_noisy_reply(), and set_remote_traceframe().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13495 of file remote.c.
References remote_state::buf, exception_fprintf(), trace_status::filename, gdb_stderr, remote_state::get_remote_arch_state(), get_remote_state(), PACKET_DISABLE, packet_ok(), PACKET_qTStatus, PACKET_UNKNOWN, parse_trace_status(), putpkt(), remote_get_noisy_reply(), remote_protocol_packets, trace_status::running, remote_arch_state::sizeof_g_packet, target_gdbarch(), and trace_regblock_size.
Referenced by can_download_tracepoint(), and start_remote_1().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13545 of file remote.c.
References uploaded_tp::addr, bp, remote_state::buf, get_remote_packet_size(), get_remote_state(), breakpoint::hit_count, uploaded_tp::hit_count, loc, breakpoint::locations(), uploaded_tp::number, tracepoint::number_on_target, parse_tracepoint_status(), putpkt(), remote_get_noisy_reply(), size, tracepoint::traceframe_usage, and uploaded_tp::traceframe_usage.
void remote_target::getpkt | ( | gdb::char_vector * | buf, |
int | forever | ||
) |
Definition at line 9883 of file remote.c.
References getpkt_sane().
Referenced by extended_remote_target::attach(), btrace_sync_conf(), check_binary_download(), extended_remote_target::create_inferior(), disable_btrace(), enable_btrace(), extended_remote_environment_support(), extended_remote_run(), extended_remote_set_inferior_cwd(), extra_thread_info(), fetch_memtags(), fetch_register_using_p(), vcont_builder::flush(), get_offsets(), get_thread_local_address(), get_tib_address(), insert_breakpoint(), insert_hw_breakpoint(), insert_watchpoint(), pass_signals(), program_signals(), remote_check_symbols(), remote_current_thread(), remote_detach_pid(), remote_get_noisy_reply(), remote_get_threadinfo(), remote_get_threadlist(), remote_get_threads_with_qthreadinfo(), remote_interrupt_ns(), remote_notif_get_pending_events(), remote_query_attached(), remote_query_supported(), remote_read_bytes_1(), remote_resume_with_vcont(), remote_send_printf(), remote_stop_ns(), remote_vcont_probe(), remote_vkill(), remote_write_bytes_aux(), remove_breakpoint(), remove_hw_breakpoint(), remove_watchpoint(), send_environment_packet(), send_g_packet(), set_permissions(), set_syscall_catchpoint(), set_thread(), start_remote_1(), static_tracepoint_marker_at(), static_tracepoint_markers_by_strid(), store_memtags(), store_register_using_P(), store_registers_using_G(), thread_alive(), thread_events(), trace_set_readonly_regions(), upload_trace_state_variables(), upload_tracepoints(), use_agent(), verify_memory(), and xfer_partial().
int remote_target::getpkt_or_notif_sane | ( | gdb::char_vector * | buf, |
int | forever, | ||
int * | is_notif | ||
) |
Definition at line 10047 of file remote.c.
References getpkt_or_notif_sane_1().
int remote_target::getpkt_or_notif_sane_1 | ( | gdb::char_vector * | buf, |
int | forever, | ||
int | expecting_notif, | ||
int * | is_notif | ||
) |
Definition at line 9901 of file remote.c.
References escape_buffer(), gdb_printf(), get_remote_state(), handle_notification(), MAX_TRIES, remote_state::noack_mode, remote_state::notif_state, read_frame(), readchar(), remote_debug, remote_debug_printf, remote_debug_printf_nofunc, remote_packet_max_chars, remote_serial_write(), remote_timeout, remote_unpush_target(), SERIAL_TIMEOUT, and watchdog.
Referenced by getpkt_or_notif_sane(), and getpkt_sane().
int remote_target::getpkt_sane | ( | gdb::char_vector * | buf, |
int | forever | ||
) |
Definition at line 10041 of file remote.c.
References getpkt_or_notif_sane_1().
Referenced by getpkt(), rcmd(), remote_hostio_send_command(), remote_read_qxfer(), remote_write_qxfer(), search_memory(), and send_remote_packet().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 6908 of file remote.c.
References async_event_handler_marked(), serial::bufcnt, get_remote_state(), remote_state::remote_async_inferior_event_token, remote_state::remote_desc, and target_can_async_p().
|
inlineoverridevirtual |
Implements target_ops.
Definition at line 404 of file remote.c.
References remote_target_info.
Referenced by commit_resumed(), core_of_thread(), remote_get_threadinfo(), remote_stop_ns(), remote_unpack_thread_info_response(), thread_name(), and update_thread_list().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 10555 of file remote.c.
References remote_state::buf, can_run_breakpoint_commands(), gdbarch_has_global_breakpoints(), get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), bp_target_info::kind, memory_insert_breakpoint(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_Z0, putpkt(), remote_add_target_side_commands(), remote_add_target_side_condition(), remote_address_masked(), remote_protocol_packets, bp_target_info::reqstd_address, set_general_process(), supports_evaluation_of_breakpoint_conditions(), target_gdbarch(), and bp_target_info::tcommands.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 2415 of file remote.c.
References get_remote_state(), and remote_exec_event_p().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 2375 of file remote.c.
References get_remote_state(), and remote_fork_event_p().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 10866 of file remote.c.
References remote_state::buf, can_run_breakpoint_commands(), gdbarch_has_global_breakpoints(), get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), bp_target_info::kind, PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_Z1, putpkt(), remote_add_target_side_commands(), remote_add_target_side_condition(), remote_address_masked(), remote_protocol_packets, bp_target_info::reqstd_address, set_general_process(), supports_evaluation_of_breakpoint_conditions(), and target_gdbarch().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 2395 of file remote.c.
References get_remote_state(), and remote_vfork_event_p().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 10669 of file remote.c.
References remote_state::buf, gdbarch_has_global_breakpoints(), get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_Z0, putpkt(), remote_address_masked(), remote_protocol_packets, set_general_process(), target_gdbarch(), and watchpoint_to_Z_packet().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 7121 of file remote.c.
References remote_interrupt_as(), remote_interrupt_ns(), REMOTE_SCOPED_DEBUG_ENTER_EXIT, and target_is_non_stop_p().
void remote_target::interrupt_query | ( | ) |
Definition at line 7154 of file remote.c.
References remote_state::ctrlc_pending_p, get_remote_state(), query(), quit(), remote_unpush_target(), and remote_state::waiting_for_stop_reply.
Referenced by pass_ctrlc(), putpkt_binary(), and remote_serial_quit_handler().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 14401 of file remote.c.
References get_remote_state(), remote_state::remote_desc, and serial_is_async_p().
Referenced by process_initial_stop_replies().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 10101 of file remote.c.
References find_inferior_pid(), get_remote_state(), inferior_ptid, kill_new_fork_children(), number_of_live_inferiors(), PACKET_DISABLE, PACKET_vKill, inf::pid, remote_kill_k(), remote_multi_process_p(), remote_vkill(), and target_mourn_inferior().
void remote_target::kill_new_fork_children | ( | inferior * | inf | ) |
Definition at line 10057 of file remote.c.
References target_waitstatus::child_ptid, get_remote_state(), is_fork_status(), notif_client_stop, inf::pid, remote_notif_get_pending_events(), remote_vkill(), remote_state::stop_reply_queue, and thread_pending_fork_status().
Referenced by kill().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 14286 of file remote.c.
References generic_load(), and name.
|
inlineoverridevirtual |
Reimplemented from target_ops.
Definition at line 513 of file remote.c.
References serial_log_command().
|
override |
Definition at line 11589 of file remote.c.
References current_inferior(), parse_memory_map(), TARGET_OBJECT_MEMORY_MAP, and target_read_stralloc().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 10206 of file remote.c.
References current_inferior(), discard_pending_stop_replies(), remote_state::extended, generic_mourn_inferior(), get_remote_state(), number_of_live_inferiors(), record_currthread(), remote_unpush_target(), and remote_state::waiting_for_stop_reply.
|
static |
|
static |
Definition at line 5740 of file remote.c.
References baud_rate, remote_state::continue_thread, create_async_event_handler(), remote_state::ctrlc_pending_p, current_inferior(), EXEC_FORWARD, remote_state::explicit_packet_size, remote_state::extended, gdb_puts(), remote_state::general_thread, get_current_remote_target(), get_remote_state(), remote_state::got_ctrlc_during_io, readahead_cache::invalidate(), remote_state::last_resume_exec_dir, name, no_shared_libraries(), remote_state::noack_mode, not_sent_ptid(), remote_state::notif_state, perror_with_name(), inferior::push_target(), query(), remote_state::readahead_cache, remote_async_inferior_event_handler(), remote_state::remote_async_inferior_event_token, remote_btrace_reset(), remote_state::remote_desc, remote_fileio_reset(), remote_notif_state_allocate(), remote_serial_open(), remote_target(), remote_state::remote_traceframe_number, remote_unpush_target(), reopen_exec_file(), reread_symbols(), reset_all_packet_configs_support(), serial_close(), serial_flush_input(), serial_parity, serial_raw(), serial_setbaudrate(), serial_setparity(), start_remote(), target_async_permitted, target_has_execution(), target_preopen(), remote_state::use_threadextra_query, remote_state::use_threadinfo_query, remote_state::wait_forever_enabled_p, and remote_state::waiting_for_stop_reply.
Referenced by open(), and extended_remote_target::open().
int remote_target::parse_threadlist_response | ( | const char * | pkt, |
int | result_limit, | ||
threadref * | original_echo, | ||
threadref * | resultlist, | ||
int * | doneflag | ||
) |
Definition at line 3525 of file remote.c.
References remote_state::buf, BUF_THREAD_ID_SIZE, get_remote_state(), unpack_byte(), unpack_nibble(), and unpack_threadid().
Referenced by remote_get_threadlist().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 7134 of file remote.c.
References remote_state::ctrlc_pending_p, get_remote_state(), interrupt_query(), quit(), REMOTE_SCOPED_DEBUG_ENTER_EXIT, remote_state::starting_up, and target_interrupt().
|
override |
Definition at line 2722 of file remote.c.
References remote_state::buf, get_remote_state(), getpkt(), remote_state::last_pass_packet, PACKET_DISABLE, packet_ok(), PACKET_QPassSignals, pass_signals(), putpkt(), remote_protocol_packets, xfree(), and xmalloc().
Referenced by pass_signals(), and start_remote_1().
int remote_target::peek_stop_reply | ( | ptid_t | ptid | ) |
Definition at line 7495 of file remote.c.
References get_remote_state(), remote_state::stop_reply_queue, and TARGET_WAITKIND_STOPPED.
Referenced by remote_stop_ns().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 14296 of file remote.c.
References current_inferior(), find_inferior_pid(), PACKET_ENABLE, PACKET_qXfer_exec_file, pid, TARGET_OBJECT_EXEC_FILE, and target_read_stralloc().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 11836 of file remote.c.
References get_remote_state(), magic_null_ptid(), normal_pid_to_str(), and remote_multi_process_p().
Referenced by select_thread_for_ambiguous_stop_reply().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 8656 of file remote.c.
References reg_buffer::arch(), gdbarch_num_regs(), remote_state::get_remote_arch_state(), get_remote_state(), PACKET_DISABLE, PACKET_ENABLE, PACKET_P, PACKET_SUPPORT_UNKNOWN, regcache::raw_update(), and remote_arch_state::regs.
void remote_target::print_one_stopped_thread | ( | thread_info * | thread | ) |
Definition at line 4518 of file remote.c.
References thread_info::clear_pending_waitstatus(), get_current_frame(), get_frame_pc(), thread_info::has_pending_waitstatus(), target_waitstatus::kind(), gdb::observers::normal_stop, thread_info::pending_waitstatus(), thread_info::ptid, set_current_sal_from_frame(), set_last_target_status(), thread_info::set_stop_pc(), target_waitstatus::set_stopped(), target_waitstatus::sig, signal_print_state(), gdb::observers::signal_received, switch_to_thread(), and TARGET_WAITKIND_STOPPED.
Referenced by process_initial_stop_replies().
void remote_target::process_g_packet | ( | struct regcache * | regcache | ) |
Definition at line 8470 of file remote.c.
References remote_arch_state::actual_register_packet_size, reg_buffer::arch(), remote_state::buf, gdbarch_num_regs(), remote_state::get_remote_arch_state(), get_remote_state(), packet_reg::in_g_packet, packet_reg::offset, reg_buffer::raw_supply(), register_size(), packet_reg::regnum, remote_arch_state::regs, and remote_arch_state::sizeof_g_packet.
Referenced by fetch_registers_using_g().
void remote_target::process_initial_stop_replies | ( | int | from_tty | ) |
Definition at line 4559 of file remote.c.
References all_non_exited_inferiors(), all_non_exited_threads(), any_live_thread_of_inferior(), find_thread_ptid(), get_remote_thread_info(), thread_info::has_pending_waitstatus(), thread_info::inf, is_async_p(), target_waitstatus::kind(), non_stop, notice_new_inferior(), inferior::num, thread_info::per_inf_num, print_one_stopped_thread(), print_target_wait_results(), remote_debug, remote_debug_printf, set_executing(), remote_thread_info::set_not_resumed(), thread_info::set_pending_waitstatus(), thread_info::set_running(), set_running(), thread_info::set_stop_signal(), target_waitstatus::set_stopped(), setup_inferior(), target_waitstatus::sig, thread_info::state, stop_all_threads(), stop_reply_queue_length(), switch_to_thread_no_regs(), target_async(), target_is_non_stop_p(), target_wait(), TARGET_WAITKIND_EXITED, TARGET_WAITKIND_IGNORE, TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_SIGNALLED, TARGET_WAITKIND_STOPPED, TARGET_WNOHANG, THREAD_RUNNING, and THREAD_STOPPED.
Referenced by start_remote_1().
ptid_t remote_target::process_stop_reply | ( | struct stop_reply * | stop_reply, |
target_waitstatus * | status | ||
) |
Definition at line 8056 of file remote.c.
References all_non_exited_threads(), stop_reply::arch, stop_reply::core, remote_thread_info::core, get_remote_thread_info(), get_thread_arch_regcache(), stop_reply::ptid, reg_buffer::raw_supply(), stop_reply::regcache, remote_notice_new_inferior(), select_thread_for_ambiguous_stop_reply(), remote_thread_info::set_not_resumed(), status, stop_reply::stop_reason, remote_thread_info::stop_reason, target_is_non_stop_p(), TARGET_WAITKIND_EXITED, TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_SIGNALLED, stop_reply::watch_data_address, remote_thread_info::watch_data_address, stop_reply::ws, and xfree().
|
override |
Definition at line 2842 of file remote.c.
References remote_state::buf, get_remote_state(), getpkt(), remote_state::last_program_signals_packet, PACKET_DISABLE, packet_ok(), PACKET_QProgramSignals, putpkt(), remote_protocol_packets, signal_pass_state(), xfree(), and xmalloc().
void remote_target::push_stop_reply | ( | struct stop_reply * | new_event | ) |
Definition at line 7473 of file remote.c.
References gdb_printf(), gdb_stdlog, get_remote_state(), mark_async_event_handler(), notif_debug, stop_reply::ptid, remote_state::remote_async_inferior_event_token, remote_state::stop_reply_queue, and target_is_async_p().
Referenced by extended_remote_target::attach(), remote_notif_stop_ack(), remote_stop_ns(), and start_remote_1().
int remote_target::putpkt | ( | const char * | buf | ) |
Definition at line 9525 of file remote.c.
References putpkt_binary().
Referenced by extended_remote_target::attach(), btrace_sync_conf(), extended_remote_target::create_inferior(), disable_btrace(), disable_tracepoint(), download_trace_state_variable(), download_tracepoint(), enable_btrace(), enable_tracepoint(), extended_remote_disable_randomization(), extended_remote_environment_support(), extended_remote_restart(), extended_remote_run(), extended_remote_set_inferior_cwd(), extra_thread_info(), fetch_memtags(), fetch_register_using_p(), vcont_builder::flush(), get_min_fast_tracepoint_insn_len(), get_offsets(), get_raw_trace_data(), get_thread_local_address(), get_tib_address(), get_trace_state_variable_value(), get_trace_status(), get_tracepoint_status(), insert_breakpoint(), insert_hw_breakpoint(), insert_watchpoint(), pass_signals(), program_signals(), putpkt(), putpkt(), rcmd(), remote_check_symbols(), remote_current_thread(), remote_detach_pid(), remote_download_command_source(), remote_get_noisy_reply(), remote_get_threadinfo(), remote_get_threadlist(), remote_get_threads_with_qthreadinfo(), remote_interrupt_ns(), remote_kill_k(), remote_query_attached(), remote_query_supported(), remote_read_bytes_1(), remote_read_qxfer(), remote_resume_with_hc(), remote_resume_with_vcont(), remote_send_printf(), remote_stop_ns(), remote_vcont_probe(), remote_vkill(), remove_breakpoint(), remove_hw_breakpoint(), remove_watchpoint(), save_trace_data(), send_environment_packet(), send_g_packet(), set_circular_trace_buffer(), set_disconnected_tracing(), set_permissions(), set_syscall_catchpoint(), set_thread(), set_trace_buffer_size(), set_trace_notes(), start_remote_1(), static_tracepoint_marker_at(), static_tracepoint_markers_by_strid(), store_memtags(), store_register_using_P(), store_registers_using_G(), thread_alive(), thread_events(), trace_find(), trace_init(), trace_set_readonly_regions(), trace_start(), trace_stop(), upload_trace_state_variables(), upload_tracepoints(), use_agent(), verify_memory(), wait_as(), and xfer_partial().
|
inline |
int remote_target::putpkt_binary | ( | const char * | buf, |
int | cnt | ||
) |
Definition at line 9546 of file remote.c.
References remote_state::buf, escape_buffer(), get_remote_state(), handle_notification(), interrupt_query(), remote_state::noack_mode, remote_state::notif_state, quit_flag, read_frame(), readchar(), remote_debug, remote_debug_printf, remote_debug_printf_nofunc, remote_packet_max_chars, remote_serial_write(), remote_timeout, SERIAL_TIMEOUT, skip_frame(), target_is_async_p(), target_is_non_stop_p(), and remote_state::waiting_for_stop_reply.
Referenced by check_binary_download(), putpkt(), remote_hostio_send_command(), remote_write_bytes_aux(), remote_write_qxfer(), search_memory(), and send_remote_packet().
struct stop_reply * remote_target::queued_stop_reply | ( | ptid_t | ptid | ) |
Definition at line 7454 of file remote.c.
References get_remote_state(), mark_async_event_handler(), remote_state::remote_async_inferior_event_token, remote_notif_remove_queued_reply(), remote_state::stop_reply_queue, and target_can_async_p().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 11520 of file remote.c.
References remote_state::buf, gdb_putc(), get_remote_packet_size(), get_remote_state(), getpkt_sane(), putpkt(), QUIT, remote_console_output(), and remote_state::remote_desc.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 14229 of file remote.c.
References current_inferior(), packet_config_support(), PACKET_ENABLE, PACKET_qXfer_btrace, parse_xml_btrace(), remote_protocol_packets, TARGET_OBJECT_BTRACE, and target_read_stralloc().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 12028 of file remote.c.
References target_ops::beneath(), get_g_packet_data(), inferior_ptid, target_ops::read_description(), send_g_packet(), target_gdbarch(), and target_has_execution().
long remote_target::read_frame | ( | gdb::char_vector * | buf_p | ) |
Definition at line 9749 of file remote.c.
References escape_buffer(), gdb_printf(), get_remote_state(), remote_state::noack_mode, readchar(), remote_debug_printf, remote_timeout, and SERIAL_TIMEOUT.
Referenced by getpkt_or_notif_sane_1(), and putpkt_binary().
int remote_target::readchar | ( | int | timeout | ) |
Definition at line 9446 of file remote.c.
References curr_quit_handler_target, get_remote_state(), remote_state::got_ctrlc_during_io, quit_handler, remote_state::remote_desc, remote_serial_quit_handler(), remote_unpush_target(), SERIAL_EOF, SERIAL_ERROR, serial_readchar(), SERIAL_TIMEOUT, set_quit_flag(), and unpush_and_perror().
Referenced by getpkt_or_notif_sane_1(), putpkt_binary(), read_frame(), and skip_frame().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 10758 of file remote.c.
References remote_hw_watchpoint_length_limit.
inferior * remote_target::remote_add_inferior | ( | bool | fake_pid_p, |
int | pid, | ||
int | attached, | ||
int | try_open_exec | ||
) |
Definition at line 2488 of file remote.c.
References add_inferior(), add_inferior_with_spaces(), all_inferiors(), current_inferior(), current_program_space, exec_file_locate_attach(), gdbarch_has_global_solist(), get_exec_file(), inferior_appeared(), maybe_new_address_space(), inf::pid, pid, remote_query_attached(), switch_to_inferior_no_thread(), target_gdbarch(), and validate_exec_file().
Referenced by add_current_inferior_and_thread(), extended_remote_target::attach(), and remote_notice_new_inferior().
thread_info * remote_target::remote_add_thread | ( | ptid_t | ptid, |
bool | running, | ||
bool | executing, | ||
bool | silent_p | ||
) |
Definition at line 2565 of file remote.c.
References add_thread(), add_thread_silent(), get_remote_state(), get_remote_thread_info(), set_executing(), remote_thread_info::set_resumed(), set_running(), and remote_state::starting_up.
Referenced by extended_remote_target::attach(), and remote_notice_new_inferior().
void remote_target::remote_btrace_maybe_reopen | ( | ) |
Definition at line 14070 of file remote.c.
References all_non_exited_threads(), btrace_read_config(), gdb_printf(), get_remote_state(), PACKET_ENABLE, PACKET_qXfer_btrace_conf, and record_btrace_push_target().
Referenced by start_remote_1().
void remote_target::remote_check_symbols | ( | ) |
Definition at line 5133 of file remote.c.
References current_inferior(), gdbarch_addr_bit(), gdbarch_convert_from_func_ptr_addr(), get_remote_packet_size(), getpkt(), lookup_minimal_symbol(), bound_minimal_symbol::minsym, PACKET_DISABLE, packet_ok(), PACKET_qSymbol, putpkt(), remote_protocol_packets, set_general_process(), target_gdbarch(), target_has_execution(), and bound_minimal_symbol::value_address().
Referenced by extended_remote_target::post_attach(), remote_new_objfile(), and start_remote_1().
ptid_t remote_target::remote_current_thread | ( | ptid_t | oldpid | ) |
Definition at line 3753 of file remote.c.
References remote_state::buf, get_remote_state(), getpkt(), putpkt(), read_ptid(), and remote_debug_printf.
Referenced by extended_remote_target::attach(), and get_current_thread().
void remote_target::remote_detach_1 | ( | struct inferior * | inf, |
int | from_tty | ||
) |
Definition at line 5955 of file remote.c.
References target_waitstatus::child_ptid, current_inferior(), detach_inferior(), remote_state::extended, find_thread_ptid(), gdb_printf(), gdb_puts(), gdbarch_has_global_breakpoints(), get_remote_state(), inferior_ptid, is_fork_status(), target_waitstatus::kind(), notif_client_stop, number_of_live_inferiors(), thread_info::pending_follow, pid, print_inferior_events, remote_detach_pid(), remote_notif_get_pending_events(), remove_breakpoints_inf(), remote_state::stop_reply_queue, switch_to_no_thread(), target_announce_detach(), target_gdbarch(), target_has_execution(), target_mourn_inferior(), target_pid_to_str(), TARGET_WAITKIND_FORKED, and thread_pending_fork_status().
Referenced by detach(), and extended_remote_target::detach().
void remote_target::remote_detach_pid | ( | int | pid | ) |
Definition at line 5920 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), getpkt(), pid, putpkt(), remote_multi_process_p(), and set_general_process().
Referenced by follow_fork(), and remote_detach_1().
void remote_target::remote_download_command_source | ( | int | num, |
ULONGEST | addr, | ||
struct command_line * | cmds | ||
) |
Definition at line 13082 of file remote.c.
References command_line::body_list_0, remote_state::buf, command_line::control_type, encode_source_string(), get_remote_state(), command_line::line, command_line::next, putpkt(), QUIT, remote_download_command_source(), remote_get_noisy_reply(), while_control, and while_stepping_control.
Referenced by download_tracepoint(), and remote_download_command_source().
void remote_target::remote_file_delete | ( | const char * | remote_file, |
int | from_tty | ||
) |
Definition at line 12935 of file remote.c.
References gdb_printf(), remote_hostio_error(), and remote_hostio_unlink().
Referenced by remote_file_delete().
void remote_target::remote_file_get | ( | const char * | remote_file, |
const char * | local_file, | ||
int | from_tty | ||
) |
Definition at line 12875 of file remote.c.
References gdb_printf(), scoped_remote_fd::get(), get_remote_packet_size(), perror_with_name(), scoped_remote_fd::release(), remote_hostio_close(), remote_hostio_error(), remote_hostio_open(), and remote_hostio_pread().
Referenced by remote_file_get().
void remote_target::remote_file_put | ( | const char * | local_file, |
const char * | remote_file, | ||
int | from_tty | ||
) |
Definition at line 12782 of file remote.c.
References gdb_printf(), scoped_remote_fd::get(), get_remote_packet_size(), perror_with_name(), scoped_remote_fd::release(), remote_hostio_close(), remote_hostio_error(), remote_hostio_open(), and remote_hostio_pwrite().
Referenced by remote_file_put().
target_xfer_status remote_target::remote_flash_write | ( | ULONGEST | address, |
ULONGEST | length, | ||
ULONGEST * | xfered_len, | ||
const gdb_byte * | data | ||
) |
Definition at line 9389 of file remote.c.
References remote_flash_timeout, remote_timeout, and remote_write_bytes_aux().
Referenced by xfer_partial().
char * remote_target::remote_get_noisy_reply | ( | ) |
Definition at line 1245 of file remote.c.
References remote_state::buf, exception_fprintf(), gdb_stderr, gdbarch_relocate_instruction(), get_remote_state(), getpkt(), putpkt(), QUIT, remote_console_output(), target_gdbarch(), and trace_error().
Referenced by disable_tracepoint(), download_trace_state_variable(), download_tracepoint(), enable_tracepoint(), extended_remote_disable_randomization(), get_min_fast_tracepoint_insn_len(), get_raw_trace_data(), get_trace_state_variable_value(), get_trace_status(), get_tracepoint_status(), remote_download_command_source(), save_trace_data(), set_circular_trace_buffer(), set_disconnected_tracing(), set_trace_buffer_size(), set_trace_notes(), trace_find(), trace_init(), trace_start(), and trace_stop().
int remote_target::remote_get_threadinfo | ( | threadref * | threadid, |
int | fieldset, | ||
gdb_ext_thread_info * | info | ||
) |
Definition at line 3488 of file remote.c.
References remote_state::buf, get_remote_state(), getpkt(), info(), pack_threadinfo_request(), putpkt(), and remote_unpack_thread_info_response().
Referenced by extra_thread_info().
int remote_target::remote_get_threadlist | ( | int | startflag, |
threadref * | nextthread, | ||
int | result_limit, | ||
int * | done, | ||
int * | result_count, | ||
threadref * | threadlist | ||
) |
Definition at line 3556 of file remote.c.
References remote_state::buf, BUF_THREAD_ID_SIZE, remote_state::echo_nextthread, get_remote_packet_size(), get_remote_state(), getpkt(), pack_threadlist_request(), parse_threadlist_response(), putpkt(), and threadmatch().
Referenced by remote_threadlist_iterator().
int remote_target::remote_get_threads_with_ql | ( | threads_listing_context * | context | ) |
Definition at line 3777 of file remote.c.
References CRAZY_MAX_THREADS, remote_newthread_step(), and remote_threadlist_iterator().
Referenced by update_thread_list().
int remote_target::remote_get_threads_with_qthreadinfo | ( | threads_listing_context * | context | ) |
Definition at line 3883 of file remote.c.
References remote_state::buf, get_remote_state(), getpkt(), threads_listing_context::items, putpkt(), read_ptid(), and remote_state::use_threadinfo_query.
Referenced by update_thread_list().
int remote_target::remote_get_threads_with_qxfer | ( | threads_listing_context * | context | ) |
Definition at line 3859 of file remote.c.
References gdb_xml_parse_quick(), PACKET_ENABLE, PACKET_qXfer_threads, TARGET_OBJECT_THREADS, and target_read_stralloc().
Referenced by update_thread_list().
int remote_target::remote_hostio_close | ( | int | fd, |
fileio_error * | remote_errno | ||
) |
Definition at line 12508 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), readahead_cache::invalidate_fd(), PACKET_vFile_close, remote_state::readahead_cache, remote_buffer_add_int(), remote_buffer_add_string(), and remote_hostio_send_command().
Referenced by fileio_close(), filesystem_is_local(), remote_file_get(), and remote_file_put().
int remote_target::remote_hostio_open | ( | struct inferior * | inf, |
const char * | filename, | ||
int | flags, | ||
int | mode, | ||
int | warn_if_slow, | ||
fileio_error * | remote_errno | ||
) |
Definition at line 12308 of file remote.c.
References remote_state::buf, flags, gdb_printf(), get_remote_packet_size(), get_remote_state(), PACKET_vFile_open, remote_buffer_add_bytes(), remote_buffer_add_int(), remote_buffer_add_string(), remote_hostio_send_command(), and remote_hostio_set_filesystem().
Referenced by fileio_open(), filesystem_is_local(), remote_file_get(), and remote_file_put().
int remote_target::remote_hostio_pread | ( | int | fd, |
gdb_byte * | read_buf, | ||
int | len, | ||
ULONGEST | offset, | ||
fileio_error * | remote_errno | ||
) |
Definition at line 12459 of file remote.c.
References readahead_cache::buf, readahead_cache::bufsize, readahead_cache::fd, get_remote_packet_size(), get_remote_state(), readahead_cache::hit_count, readahead_cache::invalidate_fd(), readahead_cache::miss_count, readahead_cache::offset, readahead_cache::pread(), remote_state::readahead_cache, remote_debug_printf, remote_hostio_pread_vFile(), and xrealloc().
Referenced by fileio_pread(), and remote_file_get().
int remote_target::remote_hostio_pread_vFile | ( | int | fd, |
gdb_byte * | read_buf, | ||
int | len, | ||
ULONGEST | offset, | ||
fileio_error * | remote_errno | ||
) |
Definition at line 12399 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), PACKET_vFile_pread, remote_buffer_add_int(), remote_buffer_add_string(), and remote_hostio_send_command().
Referenced by remote_hostio_pread().
int remote_target::remote_hostio_pwrite | ( | int | fd, |
const gdb_byte * | write_buf, | ||
int | len, | ||
ULONGEST | offset, | ||
fileio_error * | remote_errno | ||
) |
Definition at line 12362 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), readahead_cache::invalidate_fd(), PACKET_vFile_pwrite, remote_state::readahead_cache, remote_buffer_add_int(), remote_buffer_add_string(), and remote_hostio_send_command().
Referenced by fileio_pwrite(), and remote_file_put().
int remote_target::remote_hostio_send_command | ( | int | command_bytes, |
int | which_packet, | ||
fileio_error * | remote_errno, | ||
const char ** | attachment, | ||
int * | attachment_len | ||
) |
Definition at line 12187 of file remote.c.
References remote_state::buf, get_remote_state(), getpkt_sane(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, putpkt_binary(), remote_hostio_parse_result(), and remote_protocol_packets.
Referenced by fileio_fstat(), fileio_readlink(), remote_hostio_close(), remote_hostio_open(), remote_hostio_pread_vFile(), remote_hostio_pwrite(), remote_hostio_set_filesystem(), and remote_hostio_unlink().
int remote_target::remote_hostio_set_filesystem | ( | struct inferior * | inf, |
fileio_error * | remote_errno | ||
) |
Definition at line 12272 of file remote.c.
References remote_state::buf, remote_state::fs_pid, get_remote_packet_size(), get_remote_state(), PACKET_DISABLE, PACKET_vFile_setfs, inf::pid, remote_buffer_add_string(), and remote_hostio_send_command().
Referenced by fileio_readlink(), remote_hostio_open(), and remote_hostio_unlink().
int remote_target::remote_hostio_unlink | ( | inferior * | inf, |
const char * | filename, | ||
fileio_error * | remote_errno | ||
) |
Definition at line 12533 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), PACKET_vFile_unlink, remote_buffer_add_bytes(), remote_buffer_add_string(), remote_hostio_send_command(), and remote_hostio_set_filesystem().
Referenced by fileio_unlink(), and remote_file_delete().
void remote_target::remote_interrupt_as | ( | ) |
Definition at line 7055 of file remote.c.
References remote_state::ctrlc_pending_p, get_remote_state(), send_interrupt_sequence(), and stop_reply_queue_length().
Referenced by interrupt(), and stop().
void remote_target::remote_interrupt_ns | ( | ) |
Definition at line 7077 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_vCtrlC, putpkt(), and remote_protocol_packets.
Referenced by interrupt().
void remote_target::remote_kill_k | ( | ) |
void remote_target::remote_notice_new_inferior | ( | ptid_t | currthread, |
bool | executing | ||
) |
Definition at line 2600 of file remote.c.
References find_inferior_pid(), find_thread_ptid(), get_remote_state(), in_thread_list(), inferior_ptid, magic_null_ptid(), notice_new_inferior(), pid, remote_add_inferior(), remote_add_thread(), remote_multi_process_p(), remote_state::starting_up, thread_info::state, switch_to_thread(), target_is_non_stop_p(), thread_change_ptid(), and THREAD_EXITED.
Referenced by process_stop_reply(), and update_thread_list().
void remote_target::remote_notif_get_pending_events | ( | notif_client * | nc | ) |
Definition at line 7898 of file remote.c.
References notif_client::ack, remote_state::buf, gdb_printf(), gdb_stdlog, get_remote_state(), getpkt(), notif_client::id, notif_client::name, notif_debug, remote_state::notif_state, remote_notif_state::pending_event, and remote_notif_ack().
Referenced by check_pending_events_prevent_wildcard_vcont(), kill_new_fork_children(), remote_detach_1(), remote_notif_get_pending_events(), remove_new_fork_children(), start_remote_1(), and wait_ns().
struct stop_reply * remote_target::remote_notif_remove_queued_reply | ( | ptid_t | ptid | ) |
Definition at line 7421 of file remote.c.
References gdb_printf(), gdb_stdlog, get_remote_state(), notif_debug, and remote_state::stop_reply_queue.
Referenced by queued_stop_reply().
void remote_target::remote_packet_size | ( | const protocol_feature * | feature, |
packet_support | support, | ||
const char * | value | ||
) |
Definition at line 5287 of file remote.c.
References remote_state::explicit_packet_size, get_remote_state(), protocol_feature::name, and PACKET_ENABLE.
Referenced by remote_packet_size().
void remote_target::remote_parse_stop_reply | ( | const char * | buf, |
stop_reply * | event | ||
) |
Definition at line 7521 of file remote.c.
References stop_reply::arch, cached_reg_t::data, find_inferior_ptid(), get_remote_state(), target_waitstatus::kind(), cached_reg_t::num, PACKET_ENABLE, PACKET_hwbreak_feature, packet_reg_from_pnum(), PACKET_swbreak_feature, pid, stop_reply::ptid, read_ptid(), register_size(), packet_reg::regnum, strprefix(), TARGET_STOPPED_BY_HW_BREAKPOINT, TARGET_STOPPED_BY_NO_REASON, TARGET_STOPPED_BY_SW_BREAKPOINT, TARGET_STOPPED_BY_WATCHPOINT, TARGET_WAITKIND_IGNORE, stop_reply::ws, and xmalloc().
Referenced by remote_notif_stop_parse().
int remote_target::remote_query_attached | ( | int | pid | ) |
Definition at line 2443 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_qAttached, PACKET_UNKNOWN, pid, putpkt(), remote_multi_process_p(), remote_protocol_packets, and size.
Referenced by remote_add_inferior().
void remote_target::remote_query_supported | ( | ) |
Definition at line 5476 of file remote.c.
References AUTO_BOOLEAN_FALSE, remote_state::buf, protocol_feature::default_support, remote_state::explicit_packet_size, protocol_feature::func, get_remote_state(), getpkt(), name, PACKET_DISABLE, PACKET_ENABLE, PACKET_ERROR, PACKET_exec_event_feature, PACKET_fork_event_feature, PACKET_hwbreak_feature, PACKET_memory_tagging_feature, PACKET_multiprocess_feature, PACKET_no_resumed, packet_ok(), PACKET_qSupported, PACKET_QThreadEvents, PACKET_qXfer_features, packet_set_cmd_state(), PACKET_SUPPORT_UNKNOWN, PACKET_swbreak_feature, PACKET_vContSupported, PACKET_vfork_event_feature, putpkt(), remote_protocol_features, remote_protocol_packets, remote_query_supported_append(), and remote_support_xml.
Referenced by start_remote_1().
target_xfer_status remote_target::remote_read_bytes | ( | CORE_ADDR | memaddr, |
gdb_byte * | myaddr, | ||
ULONGEST | len, | ||
int | unit_size, | ||
ULONGEST * | xfered_len | ||
) |
Definition at line 9272 of file remote.c.
References available, get_traceframe_number(), remote_read_bytes_1(), remote_xfer_live_readonly_partial(), TARGET_XFER_EOF, TARGET_XFER_OK, TARGET_XFER_UNAVAILABLE, and traceframe_available_memory().
Referenced by xfer_partial().
target_xfer_status remote_target::remote_read_bytes_1 | ( | CORE_ADDR | memaddr, |
gdb_byte * | myaddr, | ||
ULONGEST | len_units, | ||
int | unit_size, | ||
ULONGEST * | xfered_len_units | ||
) |
Definition at line 9175 of file remote.c.
References remote_state::buf, get_memory_read_packet_size(), get_remote_state(), getpkt(), hexnumstr(), putpkt(), remote_address_masked(), TARGET_XFER_E_IO, TARGET_XFER_EOF, and TARGET_XFER_OK.
Referenced by remote_read_bytes(), and remote_xfer_live_readonly_partial().
target_xfer_status remote_target::remote_read_qxfer | ( | const char * | object_name, |
const char * | annex, | ||
gdb_byte * | readbuf, | ||
ULONGEST | offset, | ||
LONGEST | len, | ||
ULONGEST * | xfered_len, | ||
struct packet_config * | packet | ||
) |
Definition at line 11131 of file remote.c.
References remote_state::buf, remote_state::finished_annex, remote_state::finished_object, remote_state::finished_offset, get_remote_packet_size(), get_remote_state(), getpkt_sane(), packet_config_support(), PACKET_DISABLE, PACKET_OK, packet_ok(), putpkt(), TARGET_XFER_E_IO, TARGET_XFER_EOF, TARGET_XFER_OK, and xfree().
Referenced by xfer_partial().
void remote_target::remote_resume_with_hc | ( | ptid_t | ptid, |
int | step, | ||
gdb_signal | siggnal | ||
) |
Definition at line 6404 of file remote.c.
References all_non_exited_threads(), any_thread_ptid(), remote_state::buf, EXEC_REVERSE, execution_direction(), get_remote_state(), info_verbose, remote_state::last_sent_signal, remote_state::last_sent_step, PACKET_bc, PACKET_bs, PACKET_DISABLE, putpkt(), resume_clear_thread_private_info(), and set_continue_thread().
Referenced by resume().
int remote_target::remote_resume_with_vcont | ( | ptid_t | scope_ptid, |
int | step, | ||
gdb_signal | siggnal | ||
) |
Definition at line 6459 of file remote.c.
References append_pending_thread_resumptions(), append_resumption(), remote_state::buf, EXEC_REVERSE, execution_direction(), get_remote_packet_size(), get_remote_state(), getpkt(), inferior_ptid, magic_null_ptid(), PACKET_DISABLE, PACKET_SUPPORT_UNKNOWN, PACKET_vCont, putpkt(), remote_vcont_probe(), and target_is_non_stop_p().
Referenced by resume().
packet_result remote_target::remote_send_printf | ( | const char * | format, |
... | |||
) |
Definition at line 9336 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), getpkt(), packet_check_result(), putpkt(), and size.
Referenced by flash_done(), and flash_erase().
void remote_target::remote_serial_quit_handler | ( | ) |
Definition at line 5666 of file remote.c.
References check_quit_flag(), remote_state::ctrlc_pending_p, get_remote_state(), remote_state::got_ctrlc_during_io, interrupt_query(), target_terminal::is_ours(), query(), quit(), remote_unpush_and_throw(), remote_state::starting_up, target_interrupt(), and remote_state::waiting_for_stop_reply.
Referenced by readchar(), remote_serial_quit_handler(), and remote_serial_write().
void remote_target::remote_serial_write | ( | const char * | str, |
int | len | ||
) |
Definition at line 9491 of file remote.c.
References curr_quit_handler_target, get_remote_state(), remote_state::got_ctrlc_during_io, quit_handler, remote_state::remote_desc, remote_serial_quit_handler(), serial_write(), set_quit_flag(), and unpush_and_perror().
Referenced by getpkt_or_notif_sane_1(), putpkt_binary(), send_interrupt_sequence(), and start_remote_1().
void remote_target::remote_stop_ns | ( | ptid_t | ptid | ) |
Definition at line 6932 of file remote.c.
References all_non_exited_threads(), stop_reply::arch, remote_state::buf, commit_resumed(), stop_reply::core, get_remote_packet_size(), get_remote_state(), get_remote_thread_info(), remote_thread_info::get_resume_state(), getpkt(), info(), PACKET_SUPPORT_UNKNOWN, PACKET_vCont, peek_stop_reply(), stop_reply::ptid, push_stop_reply(), putpkt(), remote_debug_printf, remote_multi_process_p(), remote_vcont_probe(), RESUMED_PENDING_VCONT, remote_thread_info::resumed_pending_vcont_info(), stop_reply::rs, remote_thread_info::set_resumed(), target_waitstatus::set_stopped(), stop_reply::stop_reason, remote_state::supports_vCont, remote_state::supports_vCont_probed, vCont_action_support::t, target_pid_to_str(), TARGET_STOPPED_BY_NO_REASON, stop_reply::watch_data_address, write_ptid(), and stop_reply::ws.
Referenced by stop().
void remote_target::remote_supported_packet | ( | const struct protocol_feature * | feature, |
enum packet_support | support, | ||
const char * | argument | ||
) |
int remote_target::remote_threadlist_iterator | ( | rmt_thread_action | stepfunction, |
void * | context, | ||
int | looplimit | ||
) |
Definition at line 3620 of file remote.c.
References copy_threadref(), get_remote_state(), MAXTHREADLISTRESULTS, remote_state::nextthread, remote_get_threadlist(), and remote_state::resultthreadlist.
Referenced by remote_get_threads_with_ql().
int remote_target::remote_unpack_thread_info_response | ( | const char * | pkt, |
threadref * | expectedref, | ||
gdb_ext_thread_info * | info | ||
) |
Definition at line 3394 of file remote.c.
References remote_state::buf, copy_threadref(), get_remote_state(), info(), target_info::shortname, stub_unpack_int(), TAG_DISPLAY, TAG_EXISTS, TAG_MOREDISPLAY, TAG_THREADID, TAG_THREADNAME, threadmatch(), unpack_byte(), unpack_int(), unpack_string(), and unpack_threadid().
Referenced by remote_get_threadinfo().
void remote_target::remote_vcont_probe | ( | ) |
Definition at line 6236 of file remote.c.
References remote_state::buf, get_remote_state(), getpkt(), packet_ok(), PACKET_vCont, putpkt(), vCont_action_support::r, remote_protocol_packets, vCont_action_support::s, vCont_action_support::S, remote_state::supports_vCont, remote_state::supports_vCont_probed, and vCont_action_support::t.
Referenced by can_do_single_step(), remote_resume_with_vcont(), remote_stop_ns(), and vcont_r_supported().
int remote_target::remote_vkill | ( | int | pid | ) |
Definition at line 10148 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_vKill, pid, putpkt(), and remote_protocol_packets.
Referenced by kill(), and kill_new_fork_children().
target_xfer_status remote_target::remote_write_bytes | ( | CORE_ADDR | memaddr, |
const gdb_byte * | myaddr, | ||
ULONGEST | len, | ||
int | unit_size, | ||
ULONGEST * | xfered_len | ||
) |
Definition at line 9132 of file remote.c.
References check_binary_download(), PACKET_DISABLE, PACKET_ENABLE, PACKET_SUPPORT_UNKNOWN, PACKET_X, and remote_write_bytes_aux().
Referenced by xfer_partial().
target_xfer_status remote_target::remote_write_bytes_aux | ( | const char * | header, |
CORE_ADDR | memaddr, | ||
const gdb_byte * | myaddr, | ||
ULONGEST | len_units, | ||
int | unit_size, | ||
ULONGEST * | xfered_len_units, | ||
char | packet_format, | ||
int | use_length | ||
) |
Definition at line 8969 of file remote.c.
References align_for_efficient_write(), remote_state::buf, get_memory_write_packet_size(), get_remote_state(), getpkt(), hexnumlen(), hexnumnstr(), hexnumstr(), putpkt_binary(), remote_address_masked(), REMOTE_ALIGN_WRITES, TARGET_XFER_E_IO, TARGET_XFER_EOF, and TARGET_XFER_OK.
Referenced by remote_flash_write(), and remote_write_bytes().
target_xfer_status remote_target::remote_write_qxfer | ( | const char * | object_name, |
const char * | annex, | ||
const gdb_byte * | writebuf, | ||
ULONGEST | offset, | ||
LONGEST | len, | ||
ULONGEST * | xfered_len, | ||
struct packet_config * | packet | ||
) |
Definition at line 11087 of file remote.c.
References remote_state::buf, get_memory_write_packet_size(), get_remote_state(), getpkt_sane(), packet_config_support(), PACKET_DISABLE, PACKET_OK, packet_ok(), putpkt_binary(), TARGET_XFER_E_IO, TARGET_XFER_EOF, and TARGET_XFER_OK.
Referenced by xfer_partial().
target_xfer_status remote_target::remote_xfer_live_readonly_partial | ( | gdb_byte * | readbuf, |
ULONGEST | memaddr, | ||
ULONGEST | len, | ||
int | unit_size, | ||
ULONGEST * | xfered_len | ||
) |
Definition at line 9223 of file remote.c.
References remote_read_bytes_1(), target_get_section_table(), target_section_by_addr(), TARGET_XFER_EOF, and target_section::the_bfd_section.
Referenced by remote_read_bytes().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 10615 of file remote.c.
References remote_state::buf, gdbarch_has_global_breakpoints(), get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), bp_target_info::kind, memory_remove_breakpoint(), PACKET_DISABLE, PACKET_Z0, bp_target_info::placed_address, putpkt(), remote_address_masked(), set_general_process(), and target_gdbarch().
|
overridevirtual |
Reimplemented from target_ops.
|
overridevirtual |
Reimplemented from target_ops.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 10923 of file remote.c.
References remote_state::buf, gdbarch_has_global_breakpoints(), get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), bp_target_info::kind, PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_Z1, bp_target_info::placed_address, putpkt(), remote_address_masked(), remote_protocol_packets, set_general_process(), and target_gdbarch().
void remote_target::remove_new_fork_children | ( | threads_listing_context * | context | ) |
Definition at line 7290 of file remote.c.
References all_non_exited_threads(), target_waitstatus::child_ptid, get_remote_state(), notif_client_stop, remote_notif_get_pending_events(), threads_listing_context::remove_thread(), remote_state::stop_reply_queue, TARGET_WAITKIND_FORKED, TARGET_WAITKIND_THREAD_EXITED, TARGET_WAITKIND_VFORKED, and thread_pending_fork_status().
Referenced by update_thread_list().
|
overridevirtual |
Reimplemented from target_ops.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 10717 of file remote.c.
References remote_state::buf, gdbarch_has_global_breakpoints(), get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_Z0, putpkt(), remote_address_masked(), remote_protocol_packets, set_general_process(), target_gdbarch(), and watchpoint_to_Z_packet().
|
override |
Definition at line 6538 of file remote.c.
References all_non_exited_threads(), EXEC_REVERSE, execution_direction(), get_remote_state(), get_remote_thread_info(), remote_thread_info::get_resume_state(), inferior_ptid, inferior_thread(), remote_state::last_resume_exec_dir, NOT_RESUMED, notif_client_stop, remote_state::notif_state, remote_notif_process(), remote_resume_with_hc(), remote_resume_with_vcont(), remote_thread_info::set_resumed(), remote_thread_info::set_resumed_pending_vcont(), target_is_non_stop_p(), and remote_state::waiting_for_stop_reply.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13710 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), putpkt(), and remote_get_noisy_reply().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 11422 of file remote.c.
References remote_state::buf, gdbarch_addr_bit(), get_memory_write_packet_size(), get_remote_state(), getpkt_sane(), packet_config_support(), PACKET_DISABLE, PACKET_OK, packet_ok(), PACKET_qSearch_memory, putpkt_binary(), read_memory(), remote_protocol_packets, set_general_process(), target_gdbarch(), TARGET_OBJECT_MEMORY, and target_read().
ptid_t remote_target::select_thread_for_ambiguous_stop_reply | ( | const struct target_waitstatus & | status | ) |
Definition at line 7974 of file remote.c.
References all_non_exited_threads(), get_remote_thread_info(), remote_thread_info::get_resume_state(), pid_to_str(), thread_info::ptid, remote_debug_printf, REMOTE_SCOPED_DEBUG_ENTER_EXIT, RESUMED, status, TARGET_WAITKIND_EXITED, and TARGET_WAITKIND_SIGNALLED.
Referenced by process_stop_reply().
void remote_target::send_environment_packet | ( | const char * | action, |
const char * | packet, | ||
const char * | value | ||
) |
Definition at line 10341 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), getpkt(), and putpkt().
Referenced by extended_remote_environment_support().
int remote_target::send_g_packet | ( | ) |
Definition at line 8436 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), getpkt(), packet_check_result(), PACKET_ERROR, putpkt(), and remote_debug_printf.
Referenced by fetch_registers_using_g(), and read_description().
void remote_target::send_interrupt_sequence | ( | ) |
Definition at line 4385 of file remote.c.
References get_remote_state(), interrupt_sequence_break, interrupt_sequence_break_g, interrupt_sequence_control_c, interrupt_sequence_mode, remote_state::remote_desc, remote_serial_write(), and serial_send_break().
Referenced by remote_interrupt_as(), and start_remote_1().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13809 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), putpkt(), and remote_get_noisy_reply().
void remote_target::set_continue_thread | ( | ptid_t | ptid | ) |
Definition at line 2928 of file remote.c.
References set_thread().
Referenced by remote_resume_with_hc(), and start_remote_1().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13776 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), PACKET_DisconnectedTracing_feature, PACKET_ENABLE, putpkt(), and remote_get_noisy_reply().
void remote_target::set_general_process | ( | ) |
Definition at line 2943 of file remote.c.
References remote_state::general_thread, get_remote_state(), inferior_ptid, remote_multi_process_p(), and set_general_thread().
Referenced by get_min_fast_tracepoint_insn_len(), insert_breakpoint(), insert_hw_breakpoint(), insert_watchpoint(), remote_check_symbols(), remote_detach_pid(), remove_breakpoint(), remove_hw_breakpoint(), remove_watchpoint(), search_memory(), and verify_memory().
void remote_target::set_general_thread | ( | ptid_t | ptid | ) |
Definition at line 2922 of file remote.c.
References set_thread().
Referenced by disable_btrace(), enable_btrace(), fetch_registers(), set_general_process(), store_registers(), and xfer_partial().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 5222 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), getpkt(), may_insert_breakpoints, may_insert_fast_tracepoints, may_insert_tracepoints, may_stop, may_write_memory, may_write_registers, and putpkt().
Referenced by start_remote_1().
void remote_target::set_remote_traceframe | ( | ) |
Definition at line 8584 of file remote.c.
References get_remote_state(), get_traceframe_number(), remote_state::remote_traceframe_number, target_trace_find(), and tfind_number.
Referenced by fetch_registers(), get_trace_state_variable_value(), store_registers(), trace_find(), and xfer_partial().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 2771 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_DISABLE, PACKET_OK, packet_ok(), PACKET_QCatchSyscalls, pid, putpkt(), remote_debug_printf, and remote_protocol_packets.
void remote_target::set_thread | ( | ptid_t | ptid, |
int | gen | ||
) |
Definition at line 2893 of file remote.c.
References any_thread_ptid(), remote_state::buf, remote_state::continue_thread, remote_state::general_thread, get_remote_packet_size(), get_remote_state(), getpkt(), magic_null_ptid(), putpkt(), and write_ptid().
Referenced by set_continue_thread(), and set_general_thread().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13872 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), hexnumstr(), PACKET_DISABLE, PACKET_OK, packet_ok(), PACKET_QTBuffer_size, putpkt(), remote_get_noisy_reply(), and remote_protocol_packets.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13903 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), putpkt(), and remote_get_noisy_reply().
void remote_target::skip_frame | ( | ) |
Definition at line 9707 of file remote.c.
References readchar(), remote_timeout, and SERIAL_TIMEOUT.
Referenced by putpkt_binary().
void remote_target::start_remote | ( | int | from_tty, |
int | extended_p | ||
) |
Definition at line 5068 of file remote.c.
References breakpoints_should_be_inserted_now(), insert_breakpoints(), and start_remote_1().
Referenced by open_1(), and start_remote_1().
|
private |
Definition at line 4747 of file remote.c.
References add_current_inferior_and_thread(), all_inferiors(), all_non_exited_threads(), any_thread_of_inferior(), auto_solib_add, remote_state::buf, current_trace_status(), find_thread_ptid(), gdb_printf(), gdbarch_has_global_solist(), gdbarch_target_desc(), get_current_thread(), get_offsets(), get_remote_state(), get_remote_thread_info(), get_trace_status(), getpkt(), process_stratum_target::has_execution(), notif_client::id, init_wait_for_inferior(), interrupt_on_connect, merge_uploaded_trace_state_variables(), merge_uploaded_tracepoints(), remote_state::noack_mode, notif_client_stop, remote_state::notif_state, packet_config_support(), PACKET_DISABLE, PACKET_ENABLE, PACKET_OK, packet_ok(), PACKET_QAllow, PACKET_QNonStop, PACKET_QStartNoAckMode, PACKET_vFile_setfs, pass_signals(), remote_notif_state::pending_event, process_initial_stop_replies(), push_stop_reply(), putpkt(), QUIT, remote_btrace_maybe_reopen(), remote_check_symbols(), remote_debug_printf, remote_notif_get_pending_events(), remote_notif_parse(), remote_protocol_packets, remote_query_supported(), remote_read_description_p(), REMOTE_SCOPED_DEBUG_ENTER_EXIT, remote_serial_write(), send_interrupt_sequence(), set_continue_thread(), set_permissions(), remote_thread_info::set_resumed(), solib_add(), start_remote(), packet_config::support, switch_to_thread(), target_async(), target_can_async_p(), target_clear_description(), target_find_description(), target_gdbarch(), target_is_non_stop_p(), target_update_thread_list(), thread_count(), update_address_spaces(), update_signals_program_target(), update_thread_list(), upload_trace_state_variables(), and upload_tracepoints().
Referenced by start_remote().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 4110 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), parse_static_tracepoint_marker_definition(), and putpkt().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 4136 of file remote.c.
References remote_state::buf, get_remote_state(), getpkt(), parse_static_tracepoint_marker_definition(), putpkt(), and static_tracepoint_marker::str_id.
|
override |
Definition at line 7104 of file remote.c.
References remote_interrupt_as(), REMOTE_SCOPED_DEBUG_ENTER_EXIT, remote_stop_ns(), and target_is_non_stop_p().
int remote_target::stop_reply_queue_length | ( | ) |
Definition at line 7213 of file remote.c.
References get_remote_state(), and remote_state::stop_reply_queue.
Referenced by process_initial_stop_replies(), and remote_interrupt_as().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 10820 of file remote.c.
References get_remote_thread_info(), inferior_thread(), thread_info::priv, and TARGET_STOPPED_BY_HW_BREAKPOINT.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 10799 of file remote.c.
References get_remote_thread_info(), inferior_thread(), thread_info::priv, and TARGET_STOPPED_BY_SW_BREAKPOINT.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 10839 of file remote.c.
References get_remote_thread_info(), inferior_thread(), thread_info::priv, and TARGET_STOPPED_BY_WATCHPOINT.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 10849 of file remote.c.
References get_remote_thread_info(), inferior_thread(), thread_info::priv, TARGET_STOPPED_BY_WATCHPOINT, and remote_thread_info::watch_data_address.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 14776 of file remote.c.
References remote_state::buf, create_store_memtags_request(), get_remote_state(), getpkt(), packet_check_result(), PACKET_OK, putpkt(), and remote_memory_tagging_p().
int remote_target::store_register_using_P | ( | const struct regcache * | regcache, |
packet_reg * | reg | ||
) |
Definition at line 8681 of file remote.c.
References reg_buffer::arch(), remote_state::buf, gdbarch_register_name(), get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_P, PACKET_UNKNOWN, packet_reg::pnum, putpkt(), reg_buffer::raw_collect(), register_size(), packet_reg::regnum, and remote_protocol_packets.
Referenced by store_registers().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 8761 of file remote.c.
References reg_buffer::arch(), gdbarch_num_regs(), remote_state::get_remote_arch_state(), get_remote_state(), packet_reg::in_g_packet, packet_reg_from_regnum(), regcache::ptid(), regnum, remote_arch_state::regs, set_general_thread(), set_remote_traceframe(), store_register_using_P(), and store_registers_using_G().
void remote_target::store_registers_using_G | ( | const struct regcache * | regcache | ) |
Definition at line 8722 of file remote.c.
References reg_buffer::arch(), remote_state::buf, gdbarch_num_regs(), remote_state::get_remote_arch_state(), get_remote_state(), getpkt(), packet_reg::in_g_packet, packet_reg::offset, packet_check_result(), PACKET_ERROR, putpkt(), reg_buffer::raw_collect(), packet_reg::regnum, remote_arch_state::regs, and remote_arch_state::sizeof_g_packet.
Referenced by store_registers().
|
overridevirtual |
Reimplemented from process_stratum_target.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13049 of file remote.c.
References PACKET_ENABLE, and PACKET_EnableDisableTracepoints_feature.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13025 of file remote.c.
References PACKET_ConditionalBreakpoints, and PACKET_ENABLE.
Referenced by insert_breakpoint(), and insert_hw_breakpoint().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 14692 of file remote.c.
References remote_memory_tagging_p().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13011 of file remote.c.
References get_remote_state(), and remote_multi_process_p().
|
overridevirtual |
Reimplemented from process_stratum_target.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 10833 of file remote.c.
References PACKET_ENABLE, and PACKET_hwbreak_feature.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 10812 of file remote.c.
References PACKET_ENABLE, and PACKET_swbreak_feature.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13056 of file remote.c.
References PACKET_ENABLE, and PACKET_tracenz_feature.
|
overridevirtual |
|
overridevirtual |
Reimplemented from target_ops.
|
overridevirtual |
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 2981 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), getpkt(), putpkt(), remote_thread_always_alive(), and write_ptid().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 14471 of file remote.c.
References remote_state::buf, enable, get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_QThreadEvents, PACKET_UNKNOWN, putpkt(), remote_protocol_packets, and size.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 14360 of file remote.c.
References all_non_exited_threads(), get_remote_thread_info(), and remote_thread_info::thread_handle.
|
override |
Definition at line 14383 of file remote.c.
References get_remote_thread_info(), and remote_thread_info::thread_handle.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 3006 of file remote.c.
References get_remote_thread_info(), info(), name, and remote_thread_info::name.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13604 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), putpkt(), remote_get_noisy_reply(), remote_state::remote_traceframe_number, set_remote_traceframe(), tfind_number, tfind_outside, tfind_pc, tfind_range, and tfind_tp.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13068 of file remote.c.
References remote_state::buf, get_remote_state(), putpkt(), and remote_get_noisy_reply().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13431 of file remote.c.
References remote_state::buf, current_program_space, program_space::exec_bfd(), get_remote_state(), getpkt(), PACKET_ENABLE, PACKET_qXfer_traceframe_info, putpkt(), and size.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13482 of file remote.c.
References remote_state::buf, get_remote_state(), putpkt(), and remote_get_noisy_reply().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13591 of file remote.c.
References remote_state::buf, get_remote_state(), putpkt(), and remote_get_noisy_reply().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13825 of file remote.c.
References current_inferior(), parse_traceframe_info(), TARGET_OBJECT_TRACEFRAME_INFO, and target_read_stralloc().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 3936 of file remote.c.
References all_threads_safe(), threads_listing_context::contains_thread(), thread_item::core, delete_thread(), thread_item::extra, find_thread_ptid(), get_remote_thread_info(), has_single_non_exited_thread(), inferior_ptid, info(), threads_listing_context::items, thread_item::name, prune_threads(), thread_item::ptid, remote_get_threads_with_ql(), remote_get_threads_with_qthreadinfo(), remote_get_threads_with_qxfer(), remote_notice_new_inferior(), remote_thread_always_alive(), remove_new_fork_children(), target_is_non_stop_p(), and thread_item::thread_handle.
Referenced by extended_remote_target::attach(), and start_remote_1().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 14610 of file remote.c.
References remote_state::buf, get_remote_state(), getpkt(), parse_tsv_definition(), and putpkt().
Referenced by start_remote_1().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 14589 of file remote.c.
References remote_state::buf, get_remote_state(), getpkt(), parse_tracepoint_definition(), and putpkt().
Referenced by start_remote_1().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 13949 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_DISABLE, PACKET_QAgent, putpkt(), and use_agent().
Referenced by use_agent().
bool remote_target::vcont_r_supported | ( | ) |
Definition at line 14646 of file remote.c.
References get_remote_state(), PACKET_ENABLE, PACKET_SUPPORT_UNKNOWN, PACKET_vCont, and remote_vcont_probe().
Referenced by set_range_stepping().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 10964 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_qCRC, putpkt(), remote_protocol_packets, set_general_process(), simple_verify_memory(), size, and target_has_execution().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 8336 of file remote.c.
References async_event_handler_marked(), clear_async_event_handler(), get_remote_state(), notif_client::id, mark_async_event_handler(), notif_client_stop, remote_state::notif_state, remote_notif_state::pending_event, remote_state::remote_async_inferior_event_token, REMOTE_SCOPED_DEBUG_ENTER_EXIT, status, remote_state::stop_reply_queue, target_is_async_p(), target_is_non_stop_p(), wait_as(), and wait_ns().
ptid_t remote_target::wait_as | ( | ptid_t | ptid, |
target_waitstatus * | status, | ||
target_wait_flags | options | ||
) |
Definition at line 8184 of file remote.c.
References remote_state::buf, remote_state::ctrlc_pending_p, first_remote_resumed_thread(), gdb_printf(), get_remote_state(), getpkt_or_notif_sane(), target_terminal::inferior(), remote_state::last_sent_signal, remote_state::last_sent_step, magic_null_ptid(), notif_client_stop, target_terminal::ours_for_output(), process_stop_reply(), putpkt(), queued_stop_reply(), record_currthread(), remote_console_output(), remote_fileio_request(), remote_notif_parse(), status, TARGET_WAITKIND_EXITED, TARGET_WAITKIND_IGNORE, TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_SIGNALLED, TARGET_WNOHANG, remote_state::wait_forever_enabled_p, and remote_state::waiting_for_stop_reply.
Referenced by wait().
ptid_t remote_target::wait_ns | ( | ptid_t | ptid, |
struct target_waitstatus * | status, | ||
target_wait_flags | options | ||
) |
Definition at line 8115 of file remote.c.
References remote_state::buf, get_remote_state(), getpkt_or_notif_sane(), notif_client::id, notif_client_stop, remote_state::notif_state, remote_notif_state::pending_event, process_stop_reply(), queued_stop_reply(), remote_console_output(), remote_notif_get_pending_events(), status, and TARGET_WNOHANG.
Referenced by wait().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 10707 of file remote.c.
References remote_address_masked().
char * remote_target::write_ptid | ( | char * | buf, |
const char * | endbuf, | ||
ptid_t | ptid | ||
) |
Definition at line 3097 of file remote.c.
References get_remote_state(), pid, and remote_multi_process_p().
Referenced by append_resumption(), extra_thread_info(), get_thread_local_address(), get_tib_address(), remote_stop_ns(), set_thread(), and thread_alive().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 11214 of file remote.c.
References remote_state::buf, gdbarch_addressable_memory_unit_size(), get_remote_packet_size(), get_remote_state(), getpkt(), inferior_ptid, PACKET_qXfer_auxv, PACKET_qXfer_btrace, PACKET_qXfer_btrace_conf, PACKET_qXfer_exec_file, PACKET_qXfer_fdpic, PACKET_qXfer_features, PACKET_qXfer_libraries, PACKET_qXfer_libraries_svr4, PACKET_qXfer_memory_map, PACKET_qXfer_osdata, PACKET_qXfer_siginfo_read, PACKET_qXfer_siginfo_write, PACKET_qXfer_statictrace_read, PACKET_qXfer_threads, PACKET_qXfer_traceframe_info, PACKET_qXfer_uib, putpkt(), remote_state::remote_desc, remote_flash_write(), remote_protocol_packets, remote_read_bytes(), remote_read_qxfer(), remote_write_bytes(), remote_write_qxfer(), set_general_thread(), set_remote_traceframe(), target_gdbarch(), target_has_execution(), TARGET_OBJECT_AUXV, TARGET_OBJECT_AVAILABLE_FEATURES, TARGET_OBJECT_AVR, TARGET_OBJECT_BTRACE, TARGET_OBJECT_BTRACE_CONF, TARGET_OBJECT_EXEC_FILE, TARGET_OBJECT_FDPIC, TARGET_OBJECT_FLASH, TARGET_OBJECT_LIBRARIES, TARGET_OBJECT_LIBRARIES_SVR4, TARGET_OBJECT_MEMORY, TARGET_OBJECT_MEMORY_MAP, TARGET_OBJECT_OPENVMS_UIB, TARGET_OBJECT_OSDATA, TARGET_OBJECT_SIGNAL_INFO, TARGET_OBJECT_STATIC_TRACE_DATA, TARGET_OBJECT_THREADS, TARGET_OBJECT_TRACEFRAME_INFO, TARGET_XFER_E_IO, TARGET_XFER_EOF, and TARGET_XFER_OK.
|
private |
Definition at line 955 of file remote.c.
Referenced by get_remote_state().