GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
remote_target Class Reference
Inheritance diagram for remote_target:
process_stratum_target target_ops extended_remote_target

Public Member Functions

 remote_target ()=default
 
 ~remote_target () override
 
const target_infoinfo () 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_infothread_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_regionmemory_map () override
 
void flash_erase (ULONGEST address, LONGEST length) override
 
void flash_done () override
 
const struct target_descread_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_markerstatic_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_infoenable_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_stateget_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_infoadd_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_inforemote_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_replyremote_notif_remove_queued_reply (ptid_t ptid)
 
struct stop_replyqueued_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)
 
inferiorremote_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 ()
 
- Public Member Functions inherited from process_stratum_target
 ~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_spacethread_address_space (ptid_t ptid) override
 
struct gdbarchthread_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_inforandom_resumed_with_pending_wait_status (inferior *inf, ptid_t filter_ptid)
 
- Public Member Functions inherited from target_ops
virtual strata stratum () const =0
 
target_opsbeneath () const
 
virtual ~target_ops ()
 
virtual const target_infoinfo () 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_infothread_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_tableget_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_descread_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 gdbarchthread_architecture (ptid_t) TARGET_DEFAULT_RETURN(NULL)
 
virtual struct address_spacethread_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_markerstatic_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_infoenable_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_unwindget_unwinder () TARGET_DEFAULT_RETURN(NULL)
 
virtual const struct frame_unwindget_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

- Public Attributes inherited from process_stratum_target
bool threads_executing = false
 
int connection_number = 0
 
bool commit_resumed_state = false
 
- Public Attributes inherited from target_ops
virtual gdb::byte_vector virtual thread_info_to_thread_handle(struct thread_info *) TARGET_DEFAULT_RETURN(gdb voi stop )(ptid_t) TARGET_DEFAULT_IGNORE()
 

Detailed Description

Definition at line 398 of file remote.c.

Constructor & Destructor Documentation

◆ remote_target()

remote_target::remote_target ( )
default

Referenced by open_1().

◆ ~remote_target()

remote_target::~remote_target ( )
override

Definition at line 4208 of file remote.c.

Member Function Documentation

◆ add_current_inferior_and_thread()

thread_info * remote_target::add_current_inferior_and_thread ( const char *  wait_status)

◆ append_pending_thread_resumptions()

char * remote_target::append_pending_thread_resumptions ( char *  p,
char *  endp,
ptid_t  ptid 
)

◆ append_resumption()

char * remote_target::append_resumption ( char *  p,
char *  endp,
ptid_t  ptid,
int  step,
gdb_signal  siggnal 
)

◆ async()

void remote_target::async ( bool  enable)
overridevirtual

◆ async_wait_fd()

int remote_target::async_wait_fd ( )
overridevirtual

Reimplemented from target_ops.

Definition at line 14429 of file remote.c.

References serial::fd, get_remote_state(), and remote_state::remote_desc.

◆ augmented_libraries_svr4_read()

bool remote_target::augmented_libraries_svr4_read ( )
overridevirtual

Reimplemented from target_ops.

Definition at line 14277 of file remote.c.

References PACKET_augmented_libraries_svr4_read_feature, and PACKET_ENABLE.

◆ btrace_conf()

const struct btrace_config * remote_target::btrace_conf ( const struct btrace_target_info tinfo)
overridevirtual

Reimplemented from target_ops.

Definition at line 14271 of file remote.c.

References btrace_target_info::conf.

◆ btrace_sync_conf()

void remote_target::btrace_sync_conf ( const btrace_config *  conf)

◆ can_async_p()

bool remote_target::can_async_p ( )
overridevirtual

◆ can_do_single_step()

int remote_target::can_do_single_step ( )
overridevirtual

◆ can_download_tracepoint()

bool remote_target::can_download_tracepoint ( )
overridevirtual

◆ can_execute_reverse()

bool remote_target::can_execute_reverse ( )
overridevirtual

Reimplemented from target_ops.

Definition at line 12988 of file remote.c.

References PACKET_bc, PACKET_bs, and PACKET_ENABLE.

◆ can_run_breakpoint_commands()

bool remote_target::can_run_breakpoint_commands ( )
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().

◆ can_use_agent()

bool remote_target::can_use_agent ( )
overridevirtual

Reimplemented from target_ops.

Definition at line 13971 of file remote.c.

References PACKET_DISABLE, and PACKET_QAgent.

◆ can_use_hw_breakpoint()

int remote_target::can_use_hw_breakpoint ( enum bptype  type,
int  cnt,
int  ot 
)
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.

◆ check_binary_download()

void remote_target::check_binary_download ( CORE_ADDR  addr)

◆ check_pending_events_prevent_wildcard_vcont()

void remote_target::check_pending_events_prevent_wildcard_vcont ( bool *  may_global_wildcard_vcont)

◆ close()

void remote_target::close ( )
overridevirtual

Reimplemented from target_ops.

Definition at line 4198 of file remote.c.

References terminal_ours(), and trace_reset_local_state().

◆ commit_resumed()

void remote_target::commit_resumed ( )
overridevirtual

◆ connection_string()

const char * remote_target::connection_string ( )
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.

◆ core_of_thread()

int remote_target::core_of_thread ( ptid_t  ptid)
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().

◆ detach()

void remote_target::detach ( inferior inf,
int  from_tty 
)
overridevirtual

Reimplemented from target_ops.

Reimplemented in extended_remote_target.

Definition at line 6037 of file remote.c.

References remote_detach_1().

◆ disable_btrace()

void remote_target::disable_btrace ( struct btrace_target_info tinfo)
overridevirtual

◆ disable_tracepoint()

void remote_target::disable_tracepoint ( struct bp_location location)
overridevirtual

◆ discard_pending_stop_replies()

void remote_target::discard_pending_stop_replies ( struct inferior inf)

◆ discard_pending_stop_replies_in_queue()

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.

◆ disconnect()

void remote_target::disconnect ( const char *  args,
int  from_tty 
)
overridevirtual

Reimplemented from target_ops.

Definition at line 6102 of file remote.c.

References gdb_puts(), and remote_unpush_target().

◆ download_trace_state_variable()

void remote_target::download_trace_state_variable ( const trace_state_variable tsv)
overridevirtual

◆ download_tracepoint()

void remote_target::download_tracepoint ( struct bp_location location)
overridevirtual

◆ enable_btrace()

struct btrace_target_info * remote_target::enable_btrace ( thread_info tp,
const struct btrace_config *  conf 
)
overridevirtual

◆ enable_tracepoint()

void remote_target::enable_tracepoint ( struct bp_location location)
overridevirtual

◆ execution_direction()

enum exec_direction_kind remote_target::execution_direction ( )
overridevirtual

◆ extended_remote_disable_randomization()

void remote_target::extended_remote_disable_randomization ( int  val)

◆ extended_remote_environment_support()

void remote_target::extended_remote_environment_support ( )

◆ extended_remote_restart()

void remote_target::extended_remote_restart ( )

◆ extended_remote_run()

int remote_target::extended_remote_run ( const std::string &  args)

◆ extended_remote_set_inferior_cwd()

void remote_target::extended_remote_set_inferior_cwd ( )

◆ extra_thread_info()

const char * remote_target::extra_thread_info ( struct thread_info tp)
overridevirtual

◆ fetch_memtags()

bool remote_target::fetch_memtags ( CORE_ADDR  address,
size_t  len,
gdb::byte_vector &  tags,
int  type 
)
overridevirtual

◆ fetch_register_using_p()

int remote_target::fetch_register_using_p ( struct regcache regcache,
packet_reg reg 
)

◆ fetch_registers()

void remote_target::fetch_registers ( struct regcache regcache,
int  regnum 
)
overridevirtual

◆ fetch_registers_using_g()

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().

◆ fileio_close()

int remote_target::fileio_close ( int  fd,
fileio_error *  target_errno 
)
overridevirtual

Reimplemented from target_ops.

Definition at line 12525 of file remote.c.

References remote_hostio_close().

◆ fileio_fstat()

int remote_target::fileio_fstat ( int  fd,
struct stat *  sb,
fileio_error *  target_errno 
)
overridevirtual

◆ fileio_open()

int remote_target::fileio_open ( struct inferior inf,
const char *  filename,
int  flags,
int  mode,
int  warn_if_slow,
fileio_error *  target_errno 
)
overridevirtual

Reimplemented from target_ops.

Definition at line 12351 of file remote.c.

References flags, and remote_hostio_open().

◆ fileio_pread()

int remote_target::fileio_pread ( int  fd,
gdb_byte *  read_buf,
int  len,
ULONGEST  offset,
fileio_error *  target_errno 
)
overridevirtual

Reimplemented from target_ops.

Definition at line 12499 of file remote.c.

References remote_hostio_pread().

◆ fileio_pwrite()

int remote_target::fileio_pwrite ( int  fd,
const gdb_byte *  write_buf,
int  len,
ULONGEST  offset,
fileio_error *  target_errno 
)
overridevirtual

Reimplemented from target_ops.

Definition at line 12389 of file remote.c.

References remote_hostio_pwrite().

◆ fileio_readlink()

gdb::optional< std::string > remote_target::fileio_readlink ( struct inferior inf,
const char *  filename,
fileio_error *  target_errno 
)
overridevirtual

◆ fileio_unlink()

int remote_target::fileio_unlink ( struct inferior inf,
const char *  filename,
fileio_error *  target_errno 
)
overridevirtual

Reimplemented from target_ops.

Definition at line 12553 of file remote.c.

References remote_hostio_unlink().

◆ filesystem_is_local()

bool remote_target::filesystem_is_local ( )
overridevirtual

◆ flash_done()

void remote_target::flash_done ( )
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.

◆ flash_erase()

void remote_target::flash_erase ( ULONGEST  address,
LONGEST  length 
)
overridevirtual

◆ follow_exec()

void remote_target::follow_exec ( inferior follow_inf,
ptid_t  ptid,
const char *  execd_pathname 
)
overridevirtual

◆ follow_fork()

void remote_target::follow_fork ( inferior child_inf,
ptid_t  child_ptid,
target_waitkind  fork_kind,
bool  follow_child,
bool  detach_fork 
)
overridevirtual

◆ get_ada_task_ptid()

ptid_t remote_target::get_ada_task_ptid ( long  lwp,
ULONGEST  thread 
)
overridevirtual

Reimplemented from target_ops.

Definition at line 4174 of file remote.c.

References inferior_ptid.

◆ get_current_thread()

ptid_t remote_target::get_current_thread ( const char *  wait_status)

◆ get_memory_packet_size()

long remote_target::get_memory_packet_size ( struct memory_packet_config config)

◆ get_memory_read_packet_size()

long remote_target::get_memory_read_packet_size ( )

◆ get_memory_write_packet_size()

long remote_target::get_memory_write_packet_size ( )

◆ get_memory_xfer_limit()

ULONGEST remote_target::get_memory_xfer_limit ( )
overridevirtual

Reimplemented from target_ops.

Definition at line 11416 of file remote.c.

References get_memory_write_packet_size().

◆ get_min_fast_tracepoint_insn_len()

int remote_target::get_min_fast_tracepoint_insn_len ( )
overridevirtual

◆ get_offsets()

void remote_target::get_offsets ( )

◆ get_raw_trace_data()

LONGEST remote_target::get_raw_trace_data ( gdb_byte *  buf,
ULONGEST  offset,
LONGEST  len 
)
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().

◆ get_remote_packet_size()

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().

◆ get_remote_state()

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().

◆ get_thread_control_capabilities()

thread_control_capabilities remote_target::get_thread_control_capabilities ( )
inlineoverridevirtual

Reimplemented from target_ops.

Definition at line 409 of file remote.c.

References tc_schedlock.

◆ get_thread_local_address()

CORE_ADDR remote_target::get_thread_local_address ( ptid_t  ptid,
CORE_ADDR  load_module_addr,
CORE_ADDR  offset 
)
overridevirtual

◆ get_tib_address()

bool remote_target::get_tib_address ( ptid_t  ptid,
CORE_ADDR *  addr 
)
overridevirtual

◆ get_trace_state_variable_value()

bool remote_target::get_trace_state_variable_value ( int  tsv,
LONGEST *  val 
)
overridevirtual

◆ get_trace_status()

int remote_target::get_trace_status ( struct trace_status ts)
overridevirtual

◆ get_tracepoint_status()

void remote_target::get_tracepoint_status ( struct breakpoint tp,
struct uploaded_tp utp 
)
overridevirtual

◆ getpkt()

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().

◆ getpkt_or_notif_sane()

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().

Referenced by wait_as(), and wait_ns().

◆ 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 
)

◆ getpkt_sane()

int remote_target::getpkt_sane ( gdb::char_vector *  buf,
int  forever 
)

◆ has_pending_events()

bool remote_target::has_pending_events ( )
overridevirtual

◆ info()

const target_info & remote_target::info ( ) const
inlineoverridevirtual

◆ insert_breakpoint()

int remote_target::insert_breakpoint ( struct gdbarch gdbarch,
struct bp_target_info bp_tgt 
)
overridevirtual

◆ insert_exec_catchpoint()

int remote_target::insert_exec_catchpoint ( int  pid)
overridevirtual

Reimplemented from target_ops.

Definition at line 2415 of file remote.c.

References get_remote_state(), and remote_exec_event_p().

◆ insert_fork_catchpoint()

int remote_target::insert_fork_catchpoint ( int  pid)
overridevirtual

Reimplemented from target_ops.

Definition at line 2375 of file remote.c.

References get_remote_state(), and remote_fork_event_p().

◆ insert_hw_breakpoint()

int remote_target::insert_hw_breakpoint ( struct gdbarch gdbarch,
struct bp_target_info bp_tgt 
)
overridevirtual

◆ insert_vfork_catchpoint()

int remote_target::insert_vfork_catchpoint ( int  pid)
overridevirtual

Reimplemented from target_ops.

Definition at line 2395 of file remote.c.

References get_remote_state(), and remote_vfork_event_p().

◆ insert_watchpoint()

int remote_target::insert_watchpoint ( CORE_ADDR  addr,
int  len,
enum target_hw_bp_type  type,
struct expression cond 
)
overridevirtual

◆ interrupt()

void remote_target::interrupt ( )
overridevirtual

◆ interrupt_query()

void remote_target::interrupt_query ( )

◆ is_async_p()

bool remote_target::is_async_p ( )
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().

◆ kill()

void remote_target::kill ( )
overridevirtual

◆ kill_new_fork_children()

void remote_target::kill_new_fork_children ( inferior inf)

◆ load()

void remote_target::load ( const char *  name,
int  from_tty 
)
overridevirtual

Reimplemented from target_ops.

Definition at line 14286 of file remote.c.

References generic_load(), and name.

◆ log_command()

void remote_target::log_command ( const char *  cmd)
inlineoverridevirtual

Reimplemented from target_ops.

Definition at line 513 of file remote.c.

References serial_log_command().

◆ memory_map()

std::vector< mem_region > remote_target::memory_map ( )
override

◆ mourn_inferior()

void remote_target::mourn_inferior ( )
overridevirtual

◆ open()

void remote_target::open ( const char *  name,
int  from_tty 
)
static

Definition at line 5090 of file remote.c.

References name, and open_1().

◆ open_1()

void remote_target::open_1 ( const char *  name,
int  from_tty,
int  extended_p 
)
static

◆ parse_threadlist_response()

int remote_target::parse_threadlist_response ( const char *  pkt,
int  result_limit,
threadref original_echo,
threadref resultlist,
int *  doneflag 
)

◆ pass_ctrlc()

void remote_target::pass_ctrlc ( )
overridevirtual

◆ pass_signals()

void remote_target::pass_signals ( gdb::array_view< const unsigned char >  pass_signals)
override

◆ peek_stop_reply()

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().

◆ pid_to_exec_file()

const char * remote_target::pid_to_exec_file ( int  pid)
overridevirtual

◆ pid_to_str()

std::string remote_target::pid_to_str ( ptid_t  ptid)
overridevirtual

◆ prepare_to_store()

void remote_target::prepare_to_store ( struct regcache regcache)
overridevirtual

◆ print_one_stopped_thread()

void remote_target::print_one_stopped_thread ( thread_info thread)

◆ process_g_packet()

void remote_target::process_g_packet ( struct regcache regcache)

◆ process_initial_stop_replies()

void remote_target::process_initial_stop_replies ( int  from_tty)

◆ process_stop_reply()

ptid_t remote_target::process_stop_reply ( struct stop_reply stop_reply,
target_waitstatus status 
)

◆ program_signals()

void remote_target::program_signals ( gdb::array_view< const unsigned char >  signals)
override

◆ push_stop_reply()

void remote_target::push_stop_reply ( struct stop_reply new_event)

◆ putpkt() [1/2]

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().

◆ putpkt() [2/2]

int remote_target::putpkt ( const gdb::char_vector &  buf)
inline

Definition at line 905 of file remote.c.

References putpkt().

◆ putpkt_binary()

int remote_target::putpkt_binary ( const char *  buf,
int  cnt 
)

◆ queued_stop_reply()

struct stop_reply * remote_target::queued_stop_reply ( ptid_t  ptid)

◆ rcmd()

void remote_target::rcmd ( const char *  command,
struct ui_file output 
)
overridevirtual

◆ read_btrace()

enum btrace_error remote_target::read_btrace ( struct btrace_data *  data,
struct btrace_target_info btinfo,
enum btrace_read_type  type 
)
overridevirtual

◆ read_description()

const struct target_desc * remote_target::read_description ( )
overridevirtual

◆ read_frame()

long remote_target::read_frame ( gdb::char_vector *  buf_p)

◆ readchar()

int remote_target::readchar ( int  timeout)

◆ region_ok_for_hw_watchpoint()

int remote_target::region_ok_for_hw_watchpoint ( CORE_ADDR  addr,
int  len 
)
overridevirtual

Reimplemented from target_ops.

Definition at line 10758 of file remote.c.

References remote_hw_watchpoint_length_limit.

◆ remote_add_inferior()

inferior * remote_target::remote_add_inferior ( bool  fake_pid_p,
int  pid,
int  attached,
int  try_open_exec 
)

◆ remote_add_thread()

thread_info * remote_target::remote_add_thread ( ptid_t  ptid,
bool  running,
bool  executing,
bool  silent_p 
)

◆ remote_btrace_maybe_reopen()

void remote_target::remote_btrace_maybe_reopen ( )

◆ remote_check_symbols()

void remote_target::remote_check_symbols ( )

◆ remote_current_thread()

ptid_t remote_target::remote_current_thread ( ptid_t  oldpid)

◆ remote_detach_1()

void remote_target::remote_detach_1 ( struct inferior inf,
int  from_tty 
)

◆ remote_detach_pid()

void remote_target::remote_detach_pid ( int  pid)

◆ remote_download_command_source()

void remote_target::remote_download_command_source ( int  num,
ULONGEST  addr,
struct command_line cmds 
)

◆ remote_file_delete()

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().

◆ remote_file_get()

void remote_target::remote_file_get ( const char *  remote_file,
const char *  local_file,
int  from_tty 
)

◆ remote_file_put()

void remote_target::remote_file_put ( const char *  local_file,
const char *  remote_file,
int  from_tty 
)

◆ remote_flash_write()

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().

◆ remote_get_noisy_reply()

char * remote_target::remote_get_noisy_reply ( )

◆ remote_get_threadinfo()

int remote_target::remote_get_threadinfo ( threadref threadid,
int  fieldset,
gdb_ext_thread_info info 
)

◆ remote_get_threadlist()

int remote_target::remote_get_threadlist ( int  startflag,
threadref nextthread,
int  result_limit,
int *  done,
int *  result_count,
threadref threadlist 
)

◆ remote_get_threads_with_ql()

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().

◆ remote_get_threads_with_qthreadinfo()

int remote_target::remote_get_threads_with_qthreadinfo ( threads_listing_context context)

◆ remote_get_threads_with_qxfer()

int remote_target::remote_get_threads_with_qxfer ( threads_listing_context context)

◆ remote_hostio_close()

int remote_target::remote_hostio_close ( int  fd,
fileio_error *  remote_errno 
)

◆ remote_hostio_open()

int remote_target::remote_hostio_open ( struct inferior inf,
const char *  filename,
int  flags,
int  mode,
int  warn_if_slow,
fileio_error *  remote_errno 
)

◆ remote_hostio_pread()

int remote_target::remote_hostio_pread ( int  fd,
gdb_byte *  read_buf,
int  len,
ULONGEST  offset,
fileio_error *  remote_errno 
)

◆ remote_hostio_pread_vFile()

int remote_target::remote_hostio_pread_vFile ( int  fd,
gdb_byte *  read_buf,
int  len,
ULONGEST  offset,
fileio_error *  remote_errno 
)

◆ remote_hostio_pwrite()

int remote_target::remote_hostio_pwrite ( int  fd,
const gdb_byte *  write_buf,
int  len,
ULONGEST  offset,
fileio_error *  remote_errno 
)

◆ remote_hostio_send_command()

int remote_target::remote_hostio_send_command ( int  command_bytes,
int  which_packet,
fileio_error *  remote_errno,
const char **  attachment,
int *  attachment_len 
)

◆ remote_hostio_set_filesystem()

int remote_target::remote_hostio_set_filesystem ( struct inferior inf,
fileio_error *  remote_errno 
)

◆ remote_hostio_unlink()

int remote_target::remote_hostio_unlink ( inferior inf,
const char *  filename,
fileio_error *  remote_errno 
)

◆ remote_interrupt_as()

void remote_target::remote_interrupt_as ( )

◆ remote_interrupt_ns()

void remote_target::remote_interrupt_ns ( )

◆ remote_kill_k()

void remote_target::remote_kill_k ( )

Definition at line 10177 of file remote.c.

References putpkt().

Referenced by kill().

◆ remote_notice_new_inferior()

void remote_target::remote_notice_new_inferior ( ptid_t  currthread,
bool  executing 
)

◆ remote_notif_get_pending_events()

void remote_target::remote_notif_get_pending_events ( notif_client nc)

◆ remote_notif_remove_queued_reply()

struct stop_reply * remote_target::remote_notif_remove_queued_reply ( ptid_t  ptid)

◆ remote_packet_size()

void remote_target::remote_packet_size ( const protocol_feature feature,
packet_support  support,
const char *  value 
)

◆ remote_parse_stop_reply()

void remote_target::remote_parse_stop_reply ( const char *  buf,
stop_reply event 
)

◆ remote_query_attached()

int remote_target::remote_query_attached ( int  pid)

◆ remote_query_supported()

void remote_target::remote_query_supported ( )

◆ remote_read_bytes()

target_xfer_status remote_target::remote_read_bytes ( CORE_ADDR  memaddr,
gdb_byte *  myaddr,
ULONGEST  len,
int  unit_size,
ULONGEST *  xfered_len 
)

◆ remote_read_bytes_1()

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 
)

◆ remote_read_qxfer()

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 
)

◆ remote_resume_with_hc()

void remote_target::remote_resume_with_hc ( ptid_t  ptid,
int  step,
gdb_signal  siggnal 
)

◆ remote_resume_with_vcont()

int remote_target::remote_resume_with_vcont ( ptid_t  scope_ptid,
int  step,
gdb_signal  siggnal 
)

◆ remote_send_printf()

packet_result remote_target::remote_send_printf ( const char *  format,
  ... 
)

◆ remote_serial_quit_handler()

void remote_target::remote_serial_quit_handler ( )

◆ remote_serial_write()

void remote_target::remote_serial_write ( const char *  str,
int  len 
)

◆ remote_stop_ns()

void remote_target::remote_stop_ns ( ptid_t  ptid)

◆ remote_supported_packet()

void remote_target::remote_supported_packet ( const struct protocol_feature feature,
enum packet_support  support,
const char *  argument 
)

◆ remote_threadlist_iterator()

int remote_target::remote_threadlist_iterator ( rmt_thread_action  stepfunction,
void *  context,
int  looplimit 
)

◆ remote_unpack_thread_info_response()

int remote_target::remote_unpack_thread_info_response ( const char *  pkt,
threadref expectedref,
gdb_ext_thread_info info 
)

◆ remote_vcont_probe()

void remote_target::remote_vcont_probe ( )

◆ remote_vkill()

int remote_target::remote_vkill ( int  pid)

◆ remote_write_bytes()

target_xfer_status remote_target::remote_write_bytes ( CORE_ADDR  memaddr,
const gdb_byte *  myaddr,
ULONGEST  len,
int  unit_size,
ULONGEST *  xfered_len 
)

◆ remote_write_bytes_aux()

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 
)

◆ remote_write_qxfer()

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 
)

◆ remote_xfer_live_readonly_partial()

target_xfer_status remote_target::remote_xfer_live_readonly_partial ( gdb_byte *  readbuf,
ULONGEST  memaddr,
ULONGEST  len,
int  unit_size,
ULONGEST *  xfered_len 
)

◆ remove_breakpoint()

int remote_target::remove_breakpoint ( struct gdbarch gdbarch,
struct bp_target_info bp_tgt,
enum remove_bp_reason  reason 
)
overridevirtual

◆ remove_exec_catchpoint()

int remote_target::remove_exec_catchpoint ( int  pid)
overridevirtual

Reimplemented from target_ops.

Definition at line 2426 of file remote.c.

◆ remove_fork_catchpoint()

int remote_target::remove_fork_catchpoint ( int  pid)
overridevirtual

Reimplemented from target_ops.

Definition at line 2386 of file remote.c.

◆ remove_hw_breakpoint()

int remote_target::remove_hw_breakpoint ( struct gdbarch gdbarch,
struct bp_target_info bp_tgt 
)
overridevirtual

◆ remove_new_fork_children()

void remote_target::remove_new_fork_children ( threads_listing_context context)

◆ remove_vfork_catchpoint()

int remote_target::remove_vfork_catchpoint ( int  pid)
overridevirtual

Reimplemented from target_ops.

Definition at line 2406 of file remote.c.

◆ remove_watchpoint()

int remote_target::remove_watchpoint ( CORE_ADDR  addr,
int  len,
enum target_hw_bp_type  type,
struct expression cond 
)
overridevirtual

◆ resume()

void remote_target::resume ( ptid_t  scope_ptid,
int  step,
enum gdb_signal  siggnal 
)
override

◆ save_trace_data()

int remote_target::save_trace_data ( const char *  filename)
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().

◆ search_memory()

int remote_target::search_memory ( CORE_ADDR  start_addr,
ULONGEST  search_space_len,
const gdb_byte *  pattern,
ULONGEST  pattern_len,
CORE_ADDR *  found_addrp 
)
overridevirtual

◆ select_thread_for_ambiguous_stop_reply()

ptid_t remote_target::select_thread_for_ambiguous_stop_reply ( const struct target_waitstatus status)

◆ send_environment_packet()

void remote_target::send_environment_packet ( const char *  action,
const char *  packet,
const char *  value 
)

◆ send_g_packet()

int remote_target::send_g_packet ( )

◆ send_interrupt_sequence()

void remote_target::send_interrupt_sequence ( )

◆ set_circular_trace_buffer()

void remote_target::set_circular_trace_buffer ( int  val)
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().

◆ set_continue_thread()

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().

◆ set_disconnected_tracing()

void remote_target::set_disconnected_tracing ( int  val)
overridevirtual

◆ set_general_process()

void remote_target::set_general_process ( )

◆ set_general_thread()

void remote_target::set_general_thread ( ptid_t  ptid)

◆ set_permissions()

void remote_target::set_permissions ( )
overridevirtual

◆ set_remote_traceframe()

void remote_target::set_remote_traceframe ( )

◆ set_syscall_catchpoint()

int remote_target::set_syscall_catchpoint ( int  pid,
bool  needed,
int  any_count,
gdb::array_view< const int >  syscall_counts 
)
overridevirtual

◆ set_thread()

void remote_target::set_thread ( ptid_t  ptid,
int  gen 
)

◆ set_trace_buffer_size()

void remote_target::set_trace_buffer_size ( LONGEST  val)
overridevirtual

◆ set_trace_notes()

bool remote_target::set_trace_notes ( const char *  user,
const char *  notes,
const char *  stopnotes 
)
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().

◆ skip_frame()

void remote_target::skip_frame ( )

Definition at line 9707 of file remote.c.

References readchar(), remote_timeout, and SERIAL_TIMEOUT.

Referenced by putpkt_binary().

◆ start_remote()

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().

◆ start_remote_1()

bool remote_target::start_remote_1 ( int  from_tty,
int  extended_p 
)
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().

◆ static_tracepoint_marker_at()

bool remote_target::static_tracepoint_marker_at ( CORE_ADDR  addr,
struct static_tracepoint_marker marker 
)
overridevirtual

◆ static_tracepoint_markers_by_strid()

std::vector< static_tracepoint_marker > remote_target::static_tracepoint_markers_by_strid ( const char *  id)
overridevirtual

◆ stop()

void remote_target::stop ( ptid_t  ptid)
override

◆ stop_reply_queue_length()

int remote_target::stop_reply_queue_length ( )

◆ stopped_by_hw_breakpoint()

bool remote_target::stopped_by_hw_breakpoint ( )
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.

◆ stopped_by_sw_breakpoint()

bool remote_target::stopped_by_sw_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.

◆ stopped_by_watchpoint()

bool remote_target::stopped_by_watchpoint ( )
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.

◆ stopped_data_address()

bool remote_target::stopped_data_address ( CORE_ADDR *  addr_p)
overridevirtual

◆ store_memtags()

bool remote_target::store_memtags ( CORE_ADDR  address,
size_t  len,
const gdb::byte_vector &  tags,
int  type 
)
overridevirtual

◆ store_register_using_P()

int remote_target::store_register_using_P ( const struct regcache regcache,
packet_reg reg 
)

◆ store_registers()

void remote_target::store_registers ( struct regcache regcache,
int  regnum 
)
overridevirtual

◆ store_registers_using_G()

void remote_target::store_registers_using_G ( const struct regcache regcache)

◆ supports_disable_randomization()

bool remote_target::supports_disable_randomization ( )
overridevirtual

Reimplemented from process_stratum_target.

Reimplemented in extended_remote_target.

Definition at line 13004 of file remote.c.

◆ supports_enable_disable_tracepoint()

bool remote_target::supports_enable_disable_tracepoint ( )
overridevirtual

Reimplemented from target_ops.

Definition at line 13049 of file remote.c.

References PACKET_ENABLE, and PACKET_EnableDisableTracepoints_feature.

◆ supports_evaluation_of_breakpoint_conditions()

bool remote_target::supports_evaluation_of_breakpoint_conditions ( )
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().

◆ supports_memory_tagging()

bool remote_target::supports_memory_tagging ( )
overridevirtual

Reimplemented from target_ops.

Definition at line 14692 of file remote.c.

References remote_memory_tagging_p().

◆ supports_multi_process()

bool remote_target::supports_multi_process ( )
overridevirtual

Reimplemented from target_ops.

Definition at line 13011 of file remote.c.

References get_remote_state(), and remote_multi_process_p().

◆ supports_non_stop()

bool remote_target::supports_non_stop ( )
overridevirtual

Reimplemented from process_stratum_target.

Definition at line 12998 of file remote.c.

◆ supports_stopped_by_hw_breakpoint()

bool remote_target::supports_stopped_by_hw_breakpoint ( )
overridevirtual

Reimplemented from target_ops.

Definition at line 10833 of file remote.c.

References PACKET_ENABLE, and PACKET_hwbreak_feature.

◆ supports_stopped_by_sw_breakpoint()

bool remote_target::supports_stopped_by_sw_breakpoint ( )
overridevirtual

Reimplemented from target_ops.

Definition at line 10812 of file remote.c.

References PACKET_ENABLE, and PACKET_swbreak_feature.

◆ supports_string_tracing()

bool remote_target::supports_string_tracing ( )
overridevirtual

Reimplemented from target_ops.

Definition at line 13056 of file remote.c.

References PACKET_ENABLE, and PACKET_tracenz_feature.

◆ teardown_btrace()

void remote_target::teardown_btrace ( struct btrace_target_info tinfo)
overridevirtual

Reimplemented from target_ops.

Definition at line 14220 of file remote.c.

References xfree().

◆ terminal_inferior()

void remote_target::terminal_inferior ( )
overridevirtual

Reimplemented from target_ops.

Definition at line 7181 of file remote.c.

◆ terminal_ours()

void remote_target::terminal_ours ( )
overridevirtual

Reimplemented from target_ops.

Definition at line 7189 of file remote.c.

Referenced by close().

◆ thread_alive()

bool remote_target::thread_alive ( ptid_t  ptid)
overridevirtual

◆ thread_events()

void remote_target::thread_events ( int  enable)
overridevirtual

◆ thread_handle_to_thread_info()

thread_info * remote_target::thread_handle_to_thread_info ( const gdb_byte *  thread_handle,
int  handle_len,
inferior inf 
)
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.

◆ thread_info_to_thread_handle()

gdb::byte_vector remote_target::thread_info_to_thread_handle ( struct thread_info tp)
override

Definition at line 14383 of file remote.c.

References get_remote_thread_info(), and remote_thread_info::thread_handle.

◆ thread_name()

const char * remote_target::thread_name ( struct thread_info info)
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.

◆ trace_find()

int remote_target::trace_find ( enum trace_find_type  type,
int  num,
CORE_ADDR  addr1,
CORE_ADDR  addr2,
int *  tpp 
)
overridevirtual

◆ trace_init()

void remote_target::trace_init ( )
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().

◆ trace_set_readonly_regions()

void remote_target::trace_set_readonly_regions ( )
overridevirtual

◆ trace_start()

void remote_target::trace_start ( )
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().

◆ trace_stop()

void remote_target::trace_stop ( )
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().

◆ traceframe_info()

traceframe_info_up remote_target::traceframe_info ( )
overridevirtual

◆ update_thread_list()

void remote_target::update_thread_list ( )
overridevirtual

◆ upload_trace_state_variables()

int remote_target::upload_trace_state_variables ( struct uploaded_tsv **  utsvp)
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().

◆ upload_tracepoints()

int remote_target::upload_tracepoints ( struct uploaded_tp **  utpp)
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().

◆ use_agent()

bool remote_target::use_agent ( bool  use)
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().

◆ vcont_r_supported()

bool remote_target::vcont_r_supported ( )

◆ verify_memory()

int remote_target::verify_memory ( const gdb_byte *  data,
CORE_ADDR  memaddr,
ULONGEST  size 
)
overridevirtual

◆ wait()

ptid_t remote_target::wait ( ptid_t  ptid,
struct target_waitstatus status,
target_wait_flags  options 
)
overridevirtual

◆ wait_as()

ptid_t remote_target::wait_as ( ptid_t  ptid,
target_waitstatus status,
target_wait_flags  options 
)

◆ wait_ns()

ptid_t remote_target::wait_ns ( ptid_t  ptid,
struct target_waitstatus status,
target_wait_flags  options 
)

◆ watchpoint_addr_within_range()

bool remote_target::watchpoint_addr_within_range ( CORE_ADDR  addr,
CORE_ADDR  start,
int  length 
)
overridevirtual

Reimplemented from target_ops.

Definition at line 10707 of file remote.c.

References remote_address_masked().

◆ write_ptid()

char * remote_target::write_ptid ( char *  buf,
const char *  endbuf,
ptid_t  ptid 
)

◆ xfer_partial()

enum target_xfer_status remote_target::xfer_partial ( enum target_object  object,
const char *  annex,
gdb_byte *  readbuf,
const gdb_byte *  writebuf,
ULONGEST  offset,
ULONGEST  len,
ULONGEST *  xfered_len 
)
overridevirtual

Member Data Documentation

◆ m_remote_state

remote_state remote_target::m_remote_state
private

Definition at line 955 of file remote.c.

Referenced by get_remote_state().


The documentation for this class was generated from the following file: