GDB (xrefs)

Classes | Macros | Typedefs | Enumerations | Functions | Variables
/tmp/gdb-8.1/gdb/remote.c File Reference
`#include "defs.h"`
`#include <ctype.h>`
`#include <fcntl.h>`
`#include "inferior.h"`
`#include "infrun.h"`
`#include "bfd.h"`
`#include "symfile.h"`
`#include "target.h"`
`#include "gdbcmd.h"`
`#include "objfiles.h"`
`#include "gdb-stabs.h"`
`#include "gdbthread.h"`
`#include "remote.h"`
`#include "remote-notif.h"`
`#include "regcache.h"`
`#include "value.h"`
`#include "observer.h"`
`#include "solib.h"`
`#include "cli/cli-decode.h"`
`#include "cli/cli-setshow.h"`
`#include "target-descriptions.h"`
`#include "gdb_bfd.h"`
`#include "filestuff.h"`
`#include "rsp-low.h"`
`#include "disasm.h"`
`#include "location.h"`
`#include "gdb_sys_time.h"`
`#include "event-loop.h"`
`#include "event-top.h"`
`#include "inf-loop.h"`
`#include <signal.h>`
`#include "serial.h"`
`#include "gdbcore.h"`
`#include "remote-fileio.h"`
`#include "gdb/fileio.h"`
`#include <sys/stat.h>`
`#include "xml-support.h"`
`#include "memory-map.h"`
`#include "tracepoint.h"`
`#include "ax.h"`
`#include "ax-gdb.h"`
`#include "agent.h"`
`#include "btrace.h"`
`#include "record-btrace.h"`
`#include <algorithm>`
`#include "common/scoped_restore.h"`
`#include "environ.h"`
`#include "common/byte-vector.h"`

Go to the source code of this file.

## Classes
struct | vCont_action_support
struct | readahead_cache
struct | remote_state
struct | remote_thread_info
struct | packet_reg
struct | remote_arch_state
struct | memory_packet_config
struct | packet_config
struct | gdb_ext_thread_info
struct | thread_item
struct | threads_listing_context
struct | protocol_feature
struct | remote_inferior
struct | vcont_builder
struct | stop_reply
struct | queue_iter_param
struct | remote_g_packet_guess
struct | remote_g_packet_data
struct | btrace_target_info

## Macros
#define | OPAQUETHREADBYTES 8
#define | MAXTHREADLISTRESULTS 32
#define | REMOTE_DEBUG_MAX_CHAR 512
#define | DEFAULT_MAX_MEMORY_PACKET_SIZE 16384
#define | MIN_MEMORY_PACKET_SIZE 20
#define | TAG_THREADID 1
#define | TAG_EXISTS 2
#define | TAG_DISPLAY 4
#define | TAG_THREADNAME 8
#define | TAG_MOREDISPLAY 16
#define | BUF_THREAD_ID_SIZE (OPAQUETHREADBYTES * 2)
#define | TAG_THREADID 1 /* Echo the thread identifier. */
#define | TAG_EXISTS
#define | TAG_DISPLAY 4 /* A short thing maybe to put on a window */
#define | TAG_THREADNAME 8 /* string, maps 1-to-1 with a thread is. */
#define | TAG_MOREDISPLAY
#define | CRAZY_MAX_THREADS 1000
#define | MAX_ACTION_SIZE 200
#define | MAX_TRIES 3
#define | BUF_SIZE 2048

## Typedefs
typedef unsigned char | threadref[OPAQUETHREADBYTES]
typedef int | gdb_threadref
typedef int(* | rmt_thread_action) (threadref *ref, void *context)
typedef struct stop_reply * | stop_reply_p
typedef struct remote_g_packet_guess | remote_g_packet_guess_s

## Enumerations
enum | { REMOTE_ALIGN_WRITES = 16 }
enum | packet_support { PACKET_SUPPORT_UNKNOWN = 0, PACKET_ENABLE, PACKET_DISABLE }
enum | packet_result { PACKET_ERROR, PACKET_OK, PACKET_UNKNOWN }
enum | { PACKET_vCont = 0, PACKET_X, PACKET_qSymbol, PACKET_P, PACKET_p, PACKET_Z0, PACKET_Z1, PACKET_Z2, PACKET_Z3, PACKET_Z4, PACKET_vFile_setfs, PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite, PACKET_vFile_close, PACKET_vFile_unlink, PACKET_vFile_readlink, PACKET_vFile_fstat, PACKET_qXfer_auxv, PACKET_qXfer_features, PACKET_qXfer_exec_file, PACKET_qXfer_libraries, PACKET_qXfer_libraries_svr4, PACKET_qXfer_memory_map, PACKET_qXfer_spu_read, PACKET_qXfer_spu_write, PACKET_qXfer_osdata, PACKET_qXfer_threads, PACKET_qXfer_statictrace_read, PACKET_qXfer_traceframe_info, PACKET_qXfer_uib, PACKET_qGetTIBAddr, PACKET_qGetTLSAddr, PACKET_qSupported, PACKET_qTStatus, PACKET_QPassSignals, PACKET_QCatchSyscalls, PACKET_QProgramSignals, PACKET_QSetWorkingDir, PACKET_QStartupWithShell, PACKET_QEnvironmentHexEncoded, PACKET_QEnvironmentReset, PACKET_QEnvironmentUnset, PACKET_qCRC, PACKET_qSearch_memory, PACKET_vAttach, PACKET_vRun, PACKET_QStartNoAckMode, PACKET_vKill, PACKET_qXfer_siginfo_read, PACKET_qXfer_siginfo_write, PACKET_qAttached, PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints, PACKET_BreakpointCommands, PACKET_FastTracepoints, PACKET_StaticTracepoints, PACKET_InstallInTrace, PACKET_bc, PACKET_bs, PACKET_TracepointSource, PACKET_QAllow, PACKET_qXfer_fdpic, PACKET_QDisableRandomization, PACKET_QAgent, PACKET_QTBuffer_size, PACKET_Qbtrace_off, PACKET_Qbtrace_bts, PACKET_Qbtrace_pt, PACKET_qXfer_btrace, PACKET_QNonStop, PACKET_QThreadEvents, PACKET_multiprocess_feature, PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature, PACKET_DisconnectedTracing_feature, PACKET_augmented_libraries_svr4_read_feature, PACKET_qXfer_btrace_conf, PACKET_Qbtrace_conf_bts_size, PACKET_swbreak_feature, PACKET_hwbreak_feature, PACKET_fork_event_feature, PACKET_vfork_event_feature, PACKET_Qbtrace_conf_pt_size, PACKET_exec_event_feature, PACKET_vContSupported, PACKET_vCtrlC, PACKET_no_resumed, PACKET_MAX }
enum | Z_packet_type { Z_PACKET_SOFTWARE_BP, Z_PACKET_HARDWARE_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP, NR_Z_PACKET_TYPES }

## Functions
static int | getpkt_sane (char **buf, long *sizeof_buf, int forever)
static int | getpkt_or_notif_sane (char **buf, long *sizeof_buf, int forever, int *is_notif)
static void | remote_files_info (struct target_ops *ignore)
static void | remote_prepare_to_store (struct target_ops *self, struct regcache *regcache)
static void | remote_open_1 (const char *, int, struct target_ops *, int extended_p)
static void | remote_close (struct target_ops *self)
static int | remote_vkill (int pid, struct remote_state *rs)
static void | remote_kill_k (void)
static void | remote_mourn (struct target_ops *ops)
static void | extended_remote_restart (void)
static void | remote_send (char **buf, long *sizeof_buf_p)
static int | readchar (int timeout)
static void | remote_serial_write (const char *str, int len)
static void | remote_kill (struct target_ops *ops)
static int | remote_can_async_p (struct target_ops *)
static int | remote_is_async_p (struct target_ops *)
static void | remote_async (struct target_ops *ops, int enable)
static void | remote_thread_events (struct target_ops *ops, int enable)
static void | interrupt_query (void)
static void | set_general_thread (ptid_t ptid)
static void | set_continue_thread (ptid_t ptid)
static void | get_offsets (void)
static void | skip_frame (void)
static long | read_frame (char **buf_p, long *sizeof_buf)
static int | hexnumlen (ULONGEST num)
static void | init_remote_ops (void)
static void | init_extended_remote_ops (void)
static void | remote_stop (struct target_ops *self, ptid_t)
static int | stubhex (int ch)
static int | hexnumstr (char *, ULONGEST)
static int | hexnumnstr (char *, ULONGEST, int)
static CORE_ADDR | remote_address_masked (CORE_ADDR)
static void | print_packet (const char *)
static int | stub_unpack_int (char *buff, int fieldlength)
static ptid_t | remote_current_thread (ptid_t oldptid)
static int | putpkt_binary (const char *buf, int cnt)
static void | check_binary_download (CORE_ADDR addr)
static void | show_packet_config_cmd (struct packet_config *config)
static void | show_remote_protocol_packet_cmd (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static char * | write_ptid (char *buf, const char *endbuf, ptid_t ptid)
static ptid_t | read_ptid (const char *buf, const char **obuf)
static void | remote_set_permissions (struct target_ops *self)
static int | remote_get_trace_status (struct target_ops *self, struct trace_status *ts)
static int | remote_upload_tracepoints (struct target_ops *self, struct uploaded_tp **utpp)
static int | remote_upload_trace_state_variables (struct target_ops *self, struct uploaded_tsv **utsvp)
static void | remote_query_supported (void)
static void | remote_check_symbols (void)
static void | stop_reply_xfree (struct stop_reply *)
static void | remote_parse_stop_reply (char *, struct stop_reply *)
static void | push_stop_reply (struct stop_reply *)
static void | discard_pending_stop_replies_in_queue (struct remote_state *)
static int | peek_stop_reply (ptid_t ptid)
static void | remove_new_fork_children (struct threads_listing_context *)
static void | remote_async_inferior_event_handler (gdb_client_data)
static void | remote_terminal_ours (struct target_ops *self)
static int | remote_read_description_p (struct target_ops *target)
static void | remote_console_output (char *msg)
static int | remote_supports_cond_breakpoints (struct target_ops *self)
static int | remote_can_run_breakpoint_commands (struct target_ops *self)
static void | remote_btrace_reset (void)
static void | remote_btrace_maybe_reopen (void)
static int | stop_reply_queue_length (void)
static void | readahead_cache_invalidate (void)
static void | remote_unpush_and_throw (void)
static struct remote_state * | get_remote_state (void)
static struct remote_state * | get_remote_state_raw (void)
static struct remote_state * | new_remote_state (void)
static void | trace_error (char *buf)
static char * | remote_get_noisy_reply ()
static struct remote_arch_state * | get_remote_arch_state (struct gdbarch *gdbarch)
static void | remote_pspace_data_cleanup (struct program_space *pspace, void *arg)
static const char * | get_remote_exec_file (void)
static void | set_pspace_remote_exec_file (struct program_space *pspace, char *remote_exec_file)
static void | set_remote_exec_file (const char *ignored, int from_tty, struct cmd_list_element *c)
static void | show_remote_exec_file (struct ui_file *file, int from_tty, struct cmd_list_element *cmd, const char *value)
static int | compare_pnums (const void *lhs_, const void *rhs_)
static int | map_regcache_remote_table (struct gdbarch *gdbarch, struct packet_reg *regs)
int | remote_register_number_and_offset (struct gdbarch *gdbarch, int regnum, int *pnum, int *poffset)
static void * | init_remote_state (struct gdbarch *gdbarch)
static long | get_remote_packet_size (void)
static struct packet_reg * | packet_reg_from_regnum (struct gdbarch *gdbarch, struct remote_arch_state *rsa, long regnum)
static struct packet_reg * | packet_reg_from_pnum (struct gdbarch *gdbarch, struct remote_arch_state *rsa, LONGEST pnum)
static void | show_interrupt_sequence (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static void | set_remotebreak (const char *args, int from_tty, struct cmd_list_element *c)
static void | show_remotebreak (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static long | get_memory_packet_size (struct memory_packet_config *config)
static void | set_memory_packet_size (const char *args, struct memory_packet_config *config)
static void | show_memory_packet_size (struct memory_packet_config *config)
static void | set_memory_write_packet_size (const char *args, int from_tty)
static void | show_memory_write_packet_size (const char *args, int from_tty)
static long | get_memory_write_packet_size (void)
static void | set_memory_read_packet_size (const char *args, int from_tty)
static void | show_memory_read_packet_size (const char *args, int from_tty)
static long | get_memory_read_packet_size (void)
static enum packet_support | packet_config_support (struct packet_config *config)
static enum packet_support | packet_support (int packet)
static void | add_packet_config_cmd (struct packet_config *config, const char *name, const char *title, int legacy)
static enum packet_result | packet_check_result (const char *buf)
static enum packet_result | packet_ok (const char *buf, struct packet_config *config)
static enum auto_boolean | packet_set_cmd_state (int packet)
static void | set_remote_protocol_Z_packet_cmd (const char *args, int from_tty, struct cmd_list_element *c)
static void | show_remote_protocol_Z_packet_cmd (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static int | remote_multi_process_p (struct remote_state *rs)
static int | remote_fork_event_p (struct remote_state *rs)
static int | remote_vfork_event_p (struct remote_state *rs)
static int | remote_exec_event_p (struct remote_state *rs)
static int | remote_insert_fork_catchpoint (struct target_ops *ops, int pid)
static int | remote_remove_fork_catchpoint (struct target_ops *ops, int pid)
static int | remote_insert_vfork_catchpoint (struct target_ops *ops, int pid)
static int | remote_remove_vfork_catchpoint (struct target_ops *ops, int pid)
static int | remote_insert_exec_catchpoint (struct target_ops *ops, int pid)
static int | remote_remove_exec_catchpoint (struct target_ops *ops, int pid)
static int | remote_query_attached (int pid)
static struct inferior * | remote_add_inferior (int fake_pid_p, int pid, int attached, int try_open_exec)
static remote_thread_info * | get_remote_thread_info (thread_info *thread)
static void | remote_add_thread (ptid_t ptid, int running, int executing)
static void | remote_notice_new_inferior (ptid_t currthread, int executing)
static remote_thread_info * | get_remote_thread_info (ptid_t ptid)
static void | record_currthread (struct remote_state *rs, ptid_t currthread)
static void | remote_pass_signals (struct target_ops *self, int numsigs, unsigned char *pass_signals)
static int | remote_set_syscall_catchpoint (struct target_ops *self, int pid, bool needed, int any_count, gdb::array_view< const int > syscall_counts)
static void | remote_program_signals (struct target_ops *self, int numsigs, unsigned char *signals)
static void | set_thread (ptid_t ptid, int gen)
static void | set_general_process (void)
static int | remote_thread_always_alive (struct target_ops *ops, ptid_t ptid)
static int | remote_thread_alive (struct target_ops *ops, ptid_t ptid)
static const char * | remote_thread_name (struct target_ops *ops, struct thread_info *info)
static char * | unpack_nibble (char *buf, int *val)
static char * | unpack_byte (char *buf, int *value)
static char * | pack_int (char *buf, int value)
static char * | unpack_int (char *buf, int *value)
static char * | unpack_string (char *src, char *dest, int length)
static char * | pack_threadid (char *pkt, threadref *id)
static char * | unpack_threadid (char *inbuf, threadref *id)
void | int_to_threadref (threadref *id, int value)
static int | threadref_to_int (threadref *ref)
static void | copy_threadref (threadref *dest, threadref *src)
static int | threadmatch (threadref *dest, threadref *src)
static char * | pack_threadinfo_request (char *pkt, int mode, threadref *id)
static int | remote_unpack_thread_info_response (char *pkt, threadref *expectedref, struct gdb_ext_thread_info *info)
static int | remote_get_threadinfo (threadref *threadid, int fieldset, struct gdb_ext_thread_info *info)
static char * | pack_threadlist_request (char *pkt, int startflag, int threadcount, threadref *nextthread)
static int | parse_threadlist_response (char *pkt, int result_limit, threadref *original_echo, threadref *resultlist, int *doneflag)
static int | remote_get_threadlist (int startflag, threadref *nextthread, int result_limit, int *done, int *result_count, threadref *threadlist)
static int | remote_threadlist_iterator (rmt_thread_action stepfunction, void *context, int looplimit)
static int | remote_newthread_step (threadref *ref, void *context)
static int | remote_get_threads_with_ql (struct target_ops *ops, struct threads_listing_context *context)
static void | start_thread (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s) *attributes)
static void | end_thread (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, const char *body_text)
static int | remote_get_threads_with_qxfer (struct target_ops *ops, struct threads_listing_context *context)
static int | remote_get_threads_with_qthreadinfo (struct target_ops *ops, struct threads_listing_context *context)
static void | remote_update_thread_list (struct target_ops *ops)
static const char * | remote_threads_extra_info (struct target_ops *self, struct thread_info *tp)
static int | remote_static_tracepoint_marker_at (struct target_ops *self, CORE_ADDR addr, struct static_tracepoint_marker *marker)
static | VEC (static_tracepoint_marker_p)
static ptid_t | remote_get_ada_task_ptid (struct target_ops *self, long lwp, long thread)
static void | send_interrupt_sequence (void)
static ptid_t | stop_reply_extract_thread (char *stop_reply)
static ptid_t | get_current_thread (char *wait_status)
static void | add_current_inferior_and_thread (char *wait_status)
static void | print_one_stopped_thread (struct thread_info *thread)
static void | process_initial_stop_replies (int from_tty)
static void | remote_start_remote (int from_tty, struct target_ops *target, int extended_p)
static void | remote_open (const char *name, int from_tty)
static void | extended_remote_open (const char *name, int from_tty)
static void | reset_all_packet_configs_support (void)
static void | init_all_packet_configs (void)
static struct serial * | remote_serial_open (const char *name)
static void | remote_supported_packet (const struct protocol_feature *feature, enum packet_support support, const char *argument)
static void | remote_packet_size (const struct protocol_feature *feature, enum packet_support support, const char *value)
void | register_remote_support_xml (const char *xml)
static char * | remote_query_supported_append (char *msg, const char *append)
static void | remote_serial_quit_handler (void)
static void | remote_unpush_target (void)
static void | remote_detach_pid (int pid)
static void | remote_detach_1 (const char *args, int from_tty)
static void | remote_detach (struct target_ops *ops, const char *args, int from_tty)
static void | extended_remote_detach (struct target_ops *ops, const char *args, int from_tty)
static int | remote_follow_fork (struct target_ops *ops, int follow_child, int detach_fork)
static void | remote_follow_exec (struct target_ops *ops, struct inferior *inf, char *execd_pathname)
static void | remote_disconnect (struct target_ops *target, const char *args, int from_tty)
static void | extended_remote_attach (struct target_ops *target, const char *args, int from_tty)
static void | extended_remote_post_attach (struct target_ops *ops, int pid)
static void | remote_vcont_probe (struct remote_state *rs)
static char * | append_resumption (char *p, char *endp, ptid_t ptid, int step, enum gdb_signal siggnal)
static void | resume_clear_thread_private_info (struct thread_info *thread)
static char * | append_pending_thread_resumptions (char *p, char *endp, ptid_t ptid)
static void | remote_resume_with_hc (struct target_ops *ops, ptid_t ptid, int step, enum gdb_signal siggnal)
static int | remote_resume_with_vcont (ptid_t ptid, int step, enum gdb_signal siggnal)
static void | remote_resume (struct target_ops *ops, ptid_t ptid, int step, enum gdb_signal siggnal)
static void | check_pending_events_prevent_wildcard_vcont (int *may_global_wildcard_vcont)
static int | is_pending_fork_parent_thread (struct thread_info *thread)
static remote_inferior * | get_remote_inferior (inferior *inf)
static void | vcont_builder_restart (struct vcont_builder *builder)
static void | vcont_builder_flush (struct vcont_builder *builder)
static void | vcont_builder_push_action (struct vcont_builder *builder, ptid_t ptid, int step, enum gdb_signal siggnal)
static void | remote_commit_resume (struct target_ops *ops)
static void | remote_stop_ns (ptid_t ptid)
static void | remote_interrupt_as (void)
static void | remote_interrupt_ns (void)
static void | remote_interrupt (struct target_ops *self, ptid_t ptid)
static void | remote_pass_ctrlc (struct target_ops *self)
static void | remote_terminal_inferior (struct target_ops *self)
| DEF_VEC_O (cached_reg_t)
| DECLARE_QUEUE_P (stop_reply_p)
| DEFINE_QUEUE_P (stop_reply_p)
static | QUEUE (stop_reply_p)
static void | remote_notif_stop_parse (struct notif_client *self, char *buf, struct notif_event *event)
static void | remote_notif_stop_ack (struct notif_client *self, char *buf, struct notif_event *event)
static int | remote_notif_stop_can_get_pending_events (struct notif_client *self)
static void | stop_reply_dtr (struct notif_event *event)
static struct notif_event * | remote_notif_stop_alloc_reply (void)
static int | is_pending_fork_parent (struct target_waitstatus *ws, int event_pid, ptid_t thread_ptid)
static struct target_waitstatus * | thread_pending_fork_status (struct thread_info *thread)
static int | remove_child_of_pending_fork (QUEUE(stop_reply_p) *q, QUEUE_ITER(stop_reply_p) *iter, stop_reply_p event, void *data)
static int | check_pending_event_prevents_wildcard_vcont_callback (QUEUE(stop_reply_p) *q, QUEUE_ITER(stop_reply_p) *iter, stop_reply_p event, void *data)
static int | remove_stop_reply_for_inferior (QUEUE(stop_reply_p) *q, QUEUE_ITER(stop_reply_p) *iter, stop_reply_p event, void *data)
static void | discard_pending_stop_replies (struct inferior *inf)
static int | remove_stop_reply_of_remote_state (QUEUE(stop_reply_p) *q, QUEUE_ITER(stop_reply_p) *iter, stop_reply_p event, void *data)
static int | remote_notif_remove_once_on_match (QUEUE(stop_reply_p) *q, QUEUE_ITER(stop_reply_p) *iter, stop_reply_p event, void *data)
static struct stop_reply * | remote_notif_remove_queued_reply (ptid_t ptid)
static struct stop_reply * | queued_stop_reply (ptid_t ptid)
static int | stop_reply_match_ptid_and_ws (QUEUE(stop_reply_p) *q, QUEUE_ITER(stop_reply_p) *iter, struct stop_reply *event, void *data)
static int | strprefix (const char *p, const char *pend, const char *prefix)
void | remote_notif_get_pending_events (struct notif_client *nc)
static ptid_t | process_stop_reply (struct stop_reply *stop_reply, struct target_waitstatus *status)
static ptid_t | remote_wait_ns (ptid_t ptid, struct target_waitstatus *status, int options)
static ptid_t | remote_wait_as (ptid_t ptid, struct target_waitstatus *status, int options)
static ptid_t | remote_wait (struct target_ops *ops, ptid_t ptid, struct target_waitstatus *status, int options)
static int | fetch_register_using_p (struct regcache *regcache, struct packet_reg *reg)
static int | send_g_packet (void)
static void | process_g_packet (struct regcache *regcache)
static void | fetch_registers_using_g (struct regcache *regcache)
static void | set_remote_traceframe (void)
static void | remote_fetch_registers (struct target_ops *ops, struct regcache *regcache, int regnum)
static int | store_register_using_P (const struct regcache *regcache, struct packet_reg *reg)
static void | store_registers_using_G (const struct regcache *regcache)
static void | remote_store_registers (struct target_ops *ops, struct regcache *regcache, int regnum)
static int | align_for_efficient_write (int todo, CORE_ADDR memaddr)
static enum 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)
static enum target_xfer_status | remote_write_bytes (CORE_ADDR memaddr, const gdb_byte *myaddr, ULONGEST len, int unit_size, ULONGEST *xfered_len)
static enum target_xfer_status | remote_read_bytes_1 (CORE_ADDR memaddr, gdb_byte *myaddr, ULONGEST len_units, int unit_size, ULONGEST *xfered_len_units)
static enum target_xfer_status | remote_xfer_live_readonly_partial (struct target_ops *ops, gdb_byte *readbuf, ULONGEST memaddr, ULONGEST len, int unit_size, ULONGEST *xfered_len)
static enum target_xfer_status | remote_read_bytes (struct target_ops *ops, CORE_ADDR memaddr, gdb_byte *myaddr, ULONGEST len, int unit_size, ULONGEST *xfered_len)
static enum packet_result | remote_send_printf (const char *format,...) ATTRIBUTE_PRINTF(1
static void | remote_flash_erase (struct target_ops *ops, ULONGEST address, LONGEST length)
static enum target_xfer_status | remote_flash_write (struct target_ops *ops, ULONGEST address, ULONGEST length, ULONGEST *xfered_len, const gdb_byte *data)
static void | remote_flash_done (struct target_ops *ops)
static void | unpush_and_perror (const char *string)
static std::string | escape_buffer (const char *buf, int n)
int | putpkt (const char *buf)
void | getpkt (char **buf, long *sizeof_buf, int forever)
static int | getpkt_or_notif_sane_1 (char **buf, long *sizeof_buf, int forever, int expecting_notif, int *is_notif)
static int | kill_child_of_pending_fork (QUEUE(stop_reply_p) *q, QUEUE_ITER(stop_reply_p) *iter, stop_reply_p event, void *data)
static void | kill_new_fork_children (int pid, struct remote_state *rs)
static int | extended_remote_supports_disable_randomization (struct target_ops *self)
static void | extended_remote_disable_randomization (int val)
static int | extended_remote_run (const std::string &args)
static void | send_environment_packet (struct remote_state *rs, const char *action, const char *packet, const char *value)
static void | extended_remote_environment_support (struct remote_state *rs)
static void | extended_remote_set_inferior_cwd (struct remote_state *rs)
static void | extended_remote_create_inferior (struct target_ops *ops, const char *exec_file, const std::string &args, char **env, int from_tty)
static int | remote_add_target_side_condition (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt, char *buf, char *buf_end)
static void | remote_add_target_side_commands (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt, char *buf)
static int | remote_insert_breakpoint (struct target_ops *ops, struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
static int | remote_remove_breakpoint (struct target_ops *ops, struct gdbarch *gdbarch, struct bp_target_info *bp_tgt, enum remove_bp_reason reason)
static enum Z_packet_type | watchpoint_to_Z_packet (int type)
static int | remote_insert_watchpoint (struct target_ops *self, CORE_ADDR addr, int len, enum target_hw_bp_type type, struct expression *cond)
static int | remote_watchpoint_addr_within_range (struct target_ops *target, CORE_ADDR addr, CORE_ADDR start, int length)
static int | remote_remove_watchpoint (struct target_ops *self, CORE_ADDR addr, int len, enum target_hw_bp_type type, struct expression *cond)
static int | remote_region_ok_for_hw_watchpoint (struct target_ops *self, CORE_ADDR addr, int len)
static int | remote_check_watch_resources (struct target_ops *self, enum bptype type, int cnt, int ot)
static int | remote_stopped_by_sw_breakpoint (struct target_ops *ops)
static int | remote_supports_stopped_by_sw_breakpoint (struct target_ops *ops)
static int | remote_stopped_by_hw_breakpoint (struct target_ops *ops)
static int | remote_supports_stopped_by_hw_breakpoint (struct target_ops *ops)
static int | remote_stopped_by_watchpoint (struct target_ops *ops)
static int | remote_stopped_data_address (struct target_ops *target, CORE_ADDR *addr_p)
static int | remote_insert_hw_breakpoint (struct target_ops *self, struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
static int | remote_remove_hw_breakpoint (struct target_ops *self, struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
static int | remote_verify_memory (struct target_ops *ops, const gdb_byte *data, CORE_ADDR lma, ULONGEST size)
static void | compare_sections_command (const char *args, int from_tty)
static enum target_xfer_status | remote_write_qxfer (struct target_ops *ops, const char *object_name, const char *annex, const gdb_byte *writebuf, ULONGEST offset, LONGEST len, ULONGEST *xfered_len, struct packet_config *packet)
static enum target_xfer_status | remote_read_qxfer (struct target_ops *ops, const char *object_name, const char *annex, gdb_byte *readbuf, ULONGEST offset, LONGEST len, ULONGEST *xfered_len, struct packet_config *packet)
static enum target_xfer_status | remote_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len)
static ULONGEST | remote_get_memory_xfer_limit (struct target_ops *ops)
static int | remote_search_memory (struct target_ops *ops, CORE_ADDR start_addr, ULONGEST search_space_len, const gdb_byte *pattern, ULONGEST pattern_len, CORE_ADDR *found_addrp)
static void | remote_rcmd (struct target_ops *self, const char *command, struct ui_file *outbuf)
static std::vector< mem_region > | remote_memory_map (struct target_ops *ops)
static void | packet_command (const char *args, int from_tty)
static const char * | remote_pid_to_str (struct target_ops *ops, ptid_t ptid)
static CORE_ADDR | remote_get_thread_local_address (struct target_ops *ops, ptid_t ptid, CORE_ADDR lm, CORE_ADDR offset)
static int | remote_get_tib_address (struct target_ops *self, ptid_t ptid, CORE_ADDR *addr)
| DEF_VEC_O (remote_g_packet_guess_s)
static void * | remote_g_packet_data_init (struct obstack *obstack)
void | register_remote_g_packet_guess (struct gdbarch *gdbarch, int bytes, const struct target_desc *tdesc)
static const struct target_desc * | remote_read_description (struct target_ops *target)
static void | remote_buffer_add_string (char **buffer, int *left, const char *string)
static void | remote_buffer_add_bytes (char **buffer, int *left, const gdb_byte *bytes, int len)
static void | remote_buffer_add_int (char **buffer, int *left, ULONGEST value)
static int | remote_hostio_parse_result (char *buffer, int *retcode, int *remote_errno, char **attachment)
static int | remote_hostio_send_command (int command_bytes, int which_packet, int *remote_errno, char **attachment, int *attachment_len)
static void | readahead_cache_invalidate_fd (int fd)
static int | remote_hostio_set_filesystem (struct inferior *inf, int *remote_errno)
static int | remote_hostio_open (struct target_ops *self, struct inferior *inf, const char *filename, int flags, int mode, int warn_if_slow, int *remote_errno)
static int | remote_hostio_pwrite (struct target_ops *self, int fd, const gdb_byte *write_buf, int len, ULONGEST offset, int *remote_errno)
static int | remote_hostio_pread_vFile (struct target_ops *self, int fd, gdb_byte *read_buf, int len, ULONGEST offset, int *remote_errno)
static int | remote_hostio_pread_from_cache (struct remote_state *rs, int fd, gdb_byte *read_buf, size_t len, ULONGEST offset)
static int | remote_hostio_pread (struct target_ops *self, int fd, gdb_byte *read_buf, int len, ULONGEST offset, int *remote_errno)
static int | remote_hostio_close (struct target_ops *self, int fd, int *remote_errno)
static int | remote_hostio_unlink (struct target_ops *self, struct inferior *inf, const char *filename, int *remote_errno)
static char * | remote_hostio_readlink (struct target_ops *self, struct inferior *inf, const char *filename, int *remote_errno)
static int | remote_hostio_fstat (struct target_ops *self, int fd, struct stat *st, int *remote_errno)
static int | remote_filesystem_is_local (struct target_ops *self)
static int | remote_fileio_errno_to_host (int errnum)
static char * | remote_hostio_error (int errnum)
static void | remote_hostio_close_cleanup (void *opaque)
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)
static void | remote_put_command (const char *args, int from_tty)
static void | remote_get_command (const char *args, int from_tty)
static void | remote_delete_command (const char *args, int from_tty)
static void | remote_command (const char *args, int from_tty)
static int | remote_can_execute_reverse (struct target_ops *self)
static int | remote_supports_non_stop (struct target_ops *self)
static int | remote_supports_disable_randomization (struct target_ops *self)
static int | remote_supports_multi_process (struct target_ops *self)
static int | remote_supports_cond_tracepoints (void)
static int | remote_supports_fast_tracepoints (void)
static int | remote_supports_static_tracepoints (void)
static int | remote_supports_install_in_trace (void)
static int | remote_supports_enable_disable_tracepoint (struct target_ops *self)
static int | remote_supports_string_tracing (struct target_ops *self)
static void | remote_trace_init (struct target_ops *self)
static void | remote_download_command_source (int num, ULONGEST addr, struct command_line *cmds)
static void | remote_download_tracepoint (struct target_ops *self, struct bp_location *loc)
static int | remote_can_download_tracepoint (struct target_ops *self)
static void | remote_download_trace_state_variable (struct target_ops *self, struct trace_state_variable *tsv)
static void | remote_enable_tracepoint (struct target_ops *self, struct bp_location *location)
static void | remote_disable_tracepoint (struct target_ops *self, struct bp_location *location)
static void | remote_trace_set_readonly_regions (struct target_ops *self)
static void | remote_trace_start (struct target_ops *self)
static void | remote_get_tracepoint_status (struct target_ops *self, struct breakpoint *bp, struct uploaded_tp *utp)
static void | remote_trace_stop (struct target_ops *self)
static int | remote_trace_find (struct target_ops *self, enum trace_find_type type, int num, CORE_ADDR addr1, CORE_ADDR addr2, int *tpp)
static int | remote_get_trace_state_variable_value (struct target_ops *self, int tsvnum, LONGEST *val)
static int | remote_save_trace_data (struct target_ops *self, const char *filename)
static LONGEST | remote_get_raw_trace_data (struct target_ops *self, gdb_byte *buf, ULONGEST offset, LONGEST len)
static void | remote_set_disconnected_tracing (struct target_ops *self, int val)
static int | remote_core_of_thread (struct target_ops *ops, ptid_t ptid)
static void | remote_set_circular_trace_buffer (struct target_ops *self, int val)
static traceframe_info_up | remote_traceframe_info (struct target_ops *self)
static int | remote_get_min_fast_tracepoint_insn_len (struct target_ops *self)
static void | remote_set_trace_buffer_size (struct target_ops *self, LONGEST val)
static int | remote_set_trace_notes (struct target_ops *self, const char *user, const char *notes, const char *stop_notes)
static int | remote_use_agent (struct target_ops *self, int use)
static int | remote_can_use_agent (struct target_ops *self)
static int | remote_supports_btrace (struct target_ops *self, enum btrace_format format)
static void | btrace_sync_conf (const struct btrace_config *conf)
static void | btrace_read_config (struct btrace_config *conf)
static struct btrace_target_info * | remote_enable_btrace (struct target_ops *self, ptid_t ptid, const struct btrace_config *conf)
static void | remote_disable_btrace (struct target_ops *self, struct btrace_target_info *tinfo)
static void | remote_teardown_btrace (struct target_ops *self, struct btrace_target_info *tinfo)
static enum btrace_error | remote_read_btrace (struct target_ops *self, struct btrace_data *btrace, struct btrace_target_info *tinfo, enum btrace_read_type type)
static const struct btrace_config * | remote_btrace_conf (struct target_ops *self, const struct btrace_target_info *tinfo)
static int | remote_augmented_libraries_svr4_read (struct target_ops *self)
static void | remote_load (struct target_ops *self, const char *name, int from_tty)
static char * | remote_pid_to_exec_file (struct target_ops *self, int pid)
static int | remote_can_do_single_step (struct target_ops *ops)
static enum exec_direction_kind | remote_execution_direction (struct target_ops *self)
static struct thread_info * | remote_thread_handle_to_thread_info (struct target_ops *ops, const gdb_byte *thread_handle, int handle_len, struct inferior *inf)
static void | remote_async_serial_handler (struct serial *scb, void *context)
static void | set_remote_cmd (const char *args, int from_tty)
static void | show_remote_cmd (const char *args, int from_tty)
static void | remote_new_objfile (struct objfile *objfile)
static void | show_range_stepping (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static void | set_range_stepping (const char *ignore_args, int from_tty, struct cmd_list_element *c)
void | _initialize_remote (void)

## Variables
static const struct program_space_data * | remote_pspace_data
static char * | remote_exec_file_var
static struct cmd_list_element * | remote_cmdlist
static struct cmd_list_element * | remote_set_cmdlist
static struct cmd_list_element * | remote_show_cmdlist
static int | use_range_stepping = 1
static struct remote_state * | remote_state
static struct gdbarch_data * | remote_gdbarch_data_handle
static struct target_ops | remote_ops
static struct target_ops | extended_remote_ops
static int | wait_forever_enabled_p = 1
const char | interrupt_sequence_control_c [] = "Ctrl-C"
const char | interrupt_sequence_break [] = "BREAK"
const char | interrupt_sequence_break_g [] = "BREAK-g"
static const char *const | interrupt_sequence_modes []
static const char * | interrupt_sequence_mode = interrupt_sequence_control_c
static int | interrupt_on_connect = 0
static int | remote_break
static unsigned int | remote_address_size
static struct memory_packet_config | memory_write_packet_config
static struct memory_packet_config | memory_read_packet_config
static struct packet_config | remote_protocol_packets [PACKET_MAX]
static enum auto_boolean | remote_Z_packet_detect
static struct async_event_handler * | remote_async_inferior_event_token
static ptid_t | magic_null_ptid
static ptid_t | not_sent_ptid
static ptid_t | any_thread_ptid
const struct gdb_xml_attribute | thread_attributes []
const struct gdb_xml_element | thread_children []
const struct gdb_xml_element | threads_children []
const struct gdb_xml_element | threads_elements []
static const struct protocol_feature | remote_protocol_features []
static char * | remote_support_xml
struct notif_client | notif_client_stop
static const int | remote_flash_timeout = 1000
int | remote_hw_watchpoint_limit = -1
int | remote_hw_watchpoint_length_limit = -1
int | remote_hw_breakpoint_limit = -1
static struct gdbarch_data * | remote_g_packet_data_handle
static serial_event_ftype | remote_async_serial_handler

## Macro Definition Documentation

## ◆ BUF_SIZE

#define BUF_SIZE 2048

Referenced by remote_download_tracepoint().

## ◆ BUF_THREAD_ID_SIZE

#define BUF_THREAD_ID_SIZE (OPAQUETHREADBYTES * 2)

Definition at line 2320 of file remote.c.

Referenced by pack_threadid(), parse_threadlist_response(), remote_get_threadlist(), and unpack_threadid().

## ◆ CRAZY_MAX_THREADS

#define CRAZY_MAX_THREADS 1000

Definition at line 3037 of file remote.c.

Referenced by remote_get_threads_with_ql().

## ◆ DEFAULT_MAX_MEMORY_PACKET_SIZE

#define DEFAULT_MAX_MEMORY_PACKET_SIZE 16384

Definition at line 1021 of file remote.c.

Referenced by get_memory_packet_size(), and set_memory_packet_size().

## ◆ MAX_ACTION_SIZE

#define MAX_ACTION_SIZE 200

Definition at line 5834 of file remote.c.

Referenced by vcont_builder_push_action().

## ◆ MAX_TRIES

#define MAX_TRIES 3

Referenced by getpkt_or_notif_sane_1().

## ◆ MAXTHREADLISTRESULTS

#define MAXTHREADLISTRESULTS 32

Definition at line 279 of file remote.c.

Referenced by remote_threadlist_iterator().

## ◆ MIN_MEMORY_PACKET_SIZE

#define MIN_MEMORY_PACKET_SIZE 20

Definition at line 1025 of file remote.c.

Referenced by get_memory_packet_size().

## ◆ OPAQUETHREADBYTES

#define OPAQUETHREADBYTES 8

Definition at line 272 of file remote.c.

## ◆ REMOTE_DEBUG_MAX_CHAR

#define REMOTE_DEBUG_MAX_CHAR 512

Definition at line 284 of file remote.c.

Referenced by getpkt_or_notif_sane_1(), and putpkt_binary().

## ◆ TAG_DISPLAY [1/2]

#define TAG_DISPLAY 4

Definition at line 2679 of file remote.c.

Referenced by remote_threads_extra_info(), and remote_unpack_thread_info_response().

## ◆ TAG_DISPLAY [2/2]

#define TAG_DISPLAY 4 /* A short thing maybe to put on a window */

Definition at line 2679 of file remote.c.

## ◆ TAG_EXISTS [1/2]

#define TAG_EXISTS 2

Definition at line 2677 of file remote.c.

Referenced by remote_threads_extra_info(), and remote_unpack_thread_info_response().

## ◆ TAG_EXISTS [2/2]

#define TAG_EXISTS

Value:
2 /* Is this process defined enough to
fetch registers and its stack? */

Definition at line 2677 of file remote.c.

## ◆ TAG_MOREDISPLAY [1/2]

#define TAG_MOREDISPLAY 16

Definition at line 2681 of file remote.c.

Referenced by remote_threads_extra_info(), and remote_unpack_thread_info_response().

## ◆ TAG_MOREDISPLAY [2/2]

#define TAG_MOREDISPLAY

Value:
16 /* Whatever the kernel wants to say about
the process. */

Definition at line 2681 of file remote.c.

## ◆ TAG_THREADID [1/2]

#define TAG_THREADID 1

Definition at line 2676 of file remote.c.

Referenced by remote_threads_extra_info(), and remote_unpack_thread_info_response().

## ◆ TAG_THREADID [2/2]

#define TAG_THREADID 1 /* Echo the thread identifier. */

Definition at line 2676 of file remote.c.

## ◆ TAG_THREADNAME [1/2]

#define TAG_THREADNAME 8

Definition at line 2680 of file remote.c.

Referenced by remote_threads_extra_info(), and remote_unpack_thread_info_response().

## ◆ TAG_THREADNAME [2/2]

#define TAG_THREADNAME 8 /* string, maps 1-to-1 with a thread is. */

Definition at line 2680 of file remote.c.

## Typedef Documentation

## ◆ gdb_threadref

typedef int gdb_threadref

Definition at line 2292 of file remote.c.

## ◆ remote_g_packet_guess_s

typedef struct remote_g_packet_guess remote_g_packet_guess_s

Definition at line 11145 of file remote.c.

## ◆ rmt_thread_action

typedef int(* rmt_thread_action) (threadref *ref, void *context)

Definition at line 2374 of file remote.c.

## ◆ stop_reply_p

typedef struct stop_reply * stop_reply_p

## ◆ threadref

typedef unsigned char threadref[OPAQUETHREADBYTES]

Definition at line 275 of file remote.c.

## Enumeration Type Documentation

## ◆ anonymous enum

anonymous enum

Enumerator
REMOTE_ALIGN_WRITES |

Definition at line 98 of file remote.c.

## ◆ anonymous enum

anonymous enum

Enumerator
PACKET_vCont |
PACKET_X |
PACKET_qSymbol |
PACKET_P |
PACKET_p |
PACKET_Z0 |
PACKET_Z1 |
PACKET_Z2 |
PACKET_Z3 |
PACKET_Z4 |
PACKET_vFile_setfs |
PACKET_vFile_open |
PACKET_vFile_pread |
PACKET_vFile_pwrite |
PACKET_vFile_close |
PACKET_vFile_unlink |
PACKET_vFile_readlink |
PACKET_vFile_fstat |
PACKET_qXfer_auxv |
PACKET_qXfer_features |
PACKET_qXfer_exec_file |
PACKET_qXfer_libraries |
PACKET_qXfer_libraries_svr4 |
PACKET_qXfer_memory_map |
PACKET_qXfer_spu_read |
PACKET_qXfer_spu_write |
PACKET_qXfer_osdata |
PACKET_qXfer_threads |
PACKET_qXfer_statictrace_read |
PACKET_qXfer_traceframe_info |
PACKET_qXfer_uib |
PACKET_qGetTIBAddr |
PACKET_qGetTLSAddr |
PACKET_qSupported |
PACKET_qTStatus |
PACKET_QPassSignals |
PACKET_QCatchSyscalls |
PACKET_QProgramSignals |
PACKET_QSetWorkingDir |
PACKET_QStartupWithShell |
PACKET_QEnvironmentHexEncoded |
PACKET_QEnvironmentReset |
PACKET_QEnvironmentUnset |
PACKET_qCRC |
PACKET_qSearch_memory |
PACKET_vAttach |
PACKET_vRun |
PACKET_QStartNoAckMode |
PACKET_vKill |
PACKET_qXfer_siginfo_read |
PACKET_qXfer_siginfo_write |
PACKET_qAttached |
PACKET_ConditionalTracepoints |
PACKET_ConditionalBreakpoints |
PACKET_BreakpointCommands |
PACKET_FastTracepoints |
PACKET_StaticTracepoints |
PACKET_InstallInTrace |
PACKET_bc |
PACKET_bs |
PACKET_TracepointSource |
PACKET_QAllow |
PACKET_qXfer_fdpic |
PACKET_QDisableRandomization |
PACKET_QAgent |
PACKET_QTBuffer_size |
PACKET_Qbtrace_off |
PACKET_Qbtrace_bts |
PACKET_Qbtrace_pt |
PACKET_qXfer_btrace |
PACKET_QNonStop |
PACKET_QThreadEvents |
PACKET_multiprocess_feature |
PACKET_EnableDisableTracepoints_feature |
PACKET_tracenz_feature |
PACKET_DisconnectedTracing_feature |
PACKET_augmented_libraries_svr4_read_feature |
PACKET_qXfer_btrace_conf |
PACKET_Qbtrace_conf_bts_size |
PACKET_swbreak_feature |
PACKET_hwbreak_feature |
PACKET_fork_event_feature |
PACKET_vfork_event_feature |
PACKET_Qbtrace_conf_pt_size |
PACKET_exec_event_feature |
PACKET_vContSupported |
PACKET_vCtrlC |
PACKET_no_resumed |
PACKET_MAX |

Definition at line 1376 of file remote.c.

## ◆ packet_result

enum packet_result

Enumerator
PACKET_ERROR |
PACKET_OK |
PACKET_UNKNOWN |

Definition at line 1216 of file remote.c.

## ◆ packet_support

enum packet_support

Enumerator
PACKET_SUPPORT_UNKNOWN |
PACKET_ENABLE |
PACKET_DISABLE |

Definition at line 1190 of file remote.c.

## ◆ Z_packet_type

enum Z_packet_type

Enumerator
Z_PACKET_SOFTWARE_BP |
Z_PACKET_HARDWARE_BP |
Z_PACKET_WRITE_WP |
Z_PACKET_READ_WP |
Z_PACKET_ACCESS_WP |
NR_Z_PACKET_TYPES |

Definition at line 1586 of file remote.c.

## Function Documentation

## ◆ _initialize_remote()

void _initialize_remote | ( | void |  | ) |

Definition at line 13942 of file remote.c.

References _, add_cmd(), add_packet_config_cmd(), add_prefix_cmd(), add_setshow_auto_boolean_cmd(), add_setshow_boolean_cmd(), add_setshow_enum_cmd(), add_setshow_string_noescape_cmd(), add_setshow_zinteger_cmd(), add_setshow_zuinteger_cmd(), add_target(), any_thread_ptid, class_files, class_maintenance, class_obscure, class_run, class_support, cmdlist, compare_sections_command(), deprecate_cmd(), discard_pending_stop_replies(), extended_remote_ops, gdb_assert, gdbarch_data_register_post_init(), gdbarch_data_register_pre_init(), init_all_packet_configs(), init_extended_remote_ops(), init_remote_ops(), init_remote_state(), initialize_remote_fileio(), interrupt_on_connect, interrupt_sequence_mode, interrupt_sequence_modes, lookup_cmd(), magic_null_ptid, maintenancelist, name, new_remote_state(), no_class, not_sent_ptid, observer_attach_inferior_exit(), observer_attach_new_objfile(), PACKET_augmented_libraries_svr4_read_feature, PACKET_bc, PACKET_BreakpointCommands, PACKET_bs, packet_command(), PACKET_ConditionalBreakpoints, PACKET_ConditionalTracepoints, PACKET_DisconnectedTracing_feature, PACKET_EnableDisableTracepoints_feature, PACKET_exec_event_feature, PACKET_FastTracepoints, PACKET_fork_event_feature, PACKET_hwbreak_feature, PACKET_InstallInTrace, PACKET_MAX, PACKET_multiprocess_feature, PACKET_no_resumed, PACKET_P, PACKET_p, PACKET_QAgent, PACKET_QAllow, PACKET_qAttached, PACKET_Qbtrace_bts, PACKET_Qbtrace_conf_bts_size, PACKET_Qbtrace_conf_pt_size, PACKET_Qbtrace_off, PACKET_Qbtrace_pt, PACKET_QCatchSyscalls, PACKET_qCRC, PACKET_QDisableRandomization, PACKET_QEnvironmentHexEncoded, PACKET_QEnvironmentReset, PACKET_QEnvironmentUnset, PACKET_qGetTIBAddr, PACKET_qGetTLSAddr, PACKET_QNonStop, PACKET_QPassSignals, PACKET_QProgramSignals, PACKET_qSearch_memory, PACKET_QSetWorkingDir, PACKET_QStartNoAckMode, PACKET_QStartupWithShell, PACKET_qSupported, PACKET_qSymbol, PACKET_QTBuffer_size, PACKET_QThreadEvents, PACKET_qTStatus, 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_spu_read, PACKET_qXfer_spu_write, PACKET_qXfer_statictrace_read, PACKET_qXfer_threads, PACKET_qXfer_traceframe_info, PACKET_qXfer_uib, PACKET_StaticTracepoints, PACKET_swbreak_feature, PACKET_tracenz_feature, PACKET_TracepointSource, PACKET_vAttach, PACKET_vCont, PACKET_vContSupported, PACKET_vCtrlC, PACKET_vFile_close, PACKET_vFile_fstat, PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite, PACKET_vFile_readlink, PACKET_vFile_setfs, PACKET_vFile_unlink, PACKET_vfork_event_feature, PACKET_vKill, PACKET_vRun, PACKET_X, PACKET_Z0, PACKET_Z1, PACKET_Z2, PACKET_Z3, PACKET_Z4, ptid_build(), QUEUE_alloc, remote_address_size, remote_break, remote_cmdlist, remote_command(), remote_delete_command(), remote_exec_file_var, remote_g_packet_data_handle, remote_g_packet_data_init(), remote_gdbarch_data_handle, remote_get_command(), remote_hw_breakpoint_limit, remote_hw_watchpoint_length_limit, remote_hw_watchpoint_limit, remote_new_objfile(), remote_ops, remote_protocol_packets, remote_pspace_data, remote_pspace_data_cleanup(), remote_put_command(), remote_set_cmdlist, remote_show_cmdlist, remote_Z_packet_detect, set_memory_read_packet_size(), set_memory_write_packet_size(), set_range_stepping(), set_remote_cmd(), set_remote_exec_file(), set_remote_protocol_Z_packet_cmd(), set_remotebreak(), setlist, show_interrupt_sequence(), show_memory_read_packet_size(), show_memory_write_packet_size(), show_range_stepping(), show_remote_cmd(), show_remote_exec_file(), show_remote_protocol_Z_packet_cmd(), show_remotebreak(), showlist, stop_reply_xfree(), and use_range_stepping.

## ◆ add_current_inferior_and_thread()

static void add_current_inferior_and_thread | ( | char * | wait_status | ) |
| static

Definition at line 3773 of file remote.c.

References add_thread_silent(), get_current_thread(), get_remote_state(), inferior_ptid, magic_null_ptid, null_ptid, ptid_get_pid(), remote_add_inferior(), remote_multi_process_p(), and switch_to_thread_no_regs().

Referenced by extended_remote_create_inferior(), and remote_start_remote().

## ◆ add_packet_config_cmd()

static void add_packet_config_cmd | ( | struct packet_config * | config,
|  | const char * | name,
|  | const char * | title,
|  | int | legacy
| ) |  |
| static

Definition at line 1259 of file remote.c.

References add_alias_cmd(), add_setshow_auto_boolean_cmd(), class_obscure, packet_config::detect, name, packet_config::name, remote_set_cmdlist, remote_show_cmdlist, show_remote_protocol_packet_cmd(), packet_config::title, xfree(), and xstrprintf().

Referenced by _initialize_remote().

## ◆ align_for_efficient_write()

static int align_for_efficient_write | ( | int | todo,
|  | CORE_ADDR | memaddr
| ) |  |
| static

Definition at line 8023 of file remote.c.

References REMOTE_ALIGN_WRITES.

Referenced by remote_write_bytes_aux().

## ◆ append_pending_thread_resumptions()

static char* append_pending_thread_resumptions | ( | char * | p,
|  | char * | endp,
|  | ptid_t | ptid
| ) |  |
| static

Definition at line 5539 of file remote.c.

References ALL_NON_EXITED_THREADS, append_resumption(), inferior_ptid, thread_info::ptid, ptid_equal(), ptid_match(), resume_clear_thread_private_info(), thread_suspend_state::stop_signal, and thread_info::suspend.

Referenced by remote_resume_with_vcont().

## ◆ append_resumption()

static char* append_resumption | ( | char * | p,
|  | char * | endp,
|  | ptid_t | ptid,
|  | int | step,
|  | enum gdb_signal | siggnal
| ) |  |
| static

Definition at line 5452 of file remote.c.

References thread_info::control, find_thread_ptid(), gdb_assert, gdbarch_addr_bit(), get_remote_state(), magic_null_ptid, thread_control_state::may_range_step, minus_one_ptid, phex_nz(), thread_info::ptid, ptid_build(), ptid_equal(), ptid_get_pid(), ptid_is_pid(), 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, write_ptid(), and xsnprintf().

Referenced by append_pending_thread_resumptions(), remote_resume_with_vcont(), and vcont_builder_push_action().

## ◆ btrace_read_config()

static void btrace_read_config | ( | struct btrace_config * | conf | ) |
| static

Definition at line 13194 of file remote.c.

References current_target, parse_xml_btrace_conf(), TARGET_OBJECT_BTRACE_CONF, and target_read_stralloc().

Referenced by remote_btrace_maybe_reopen(), and remote_enable_btrace().

## ◆ btrace_sync_conf()

static void btrace_sync_conf | ( | const struct btrace_config * | conf | ) |
| static

Definition at line 13135 of file remote.c.

References _, remote_state::btrace_config, btrace_config::bts, remote_state::buf, remote_state::buf_size, error(), 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, btrace_config::pt, putpkt(), remote_protocol_packets, btrace_config_bts::size, btrace_config_pt::size, and xsnprintf().

Referenced by remote_enable_btrace().

## ◆ check_binary_download()

static void check_binary_download | ( | CORE_ADDR | addr | ) |
| static

Definition at line 7973 of file remote.c.

References remote_state::buf, remote_state::buf_size, fprintf_unfiltered(), gdb_stdlog, get_remote_state(), getpkt(), hexnumstr(), PACKET_DISABLE, PACKET_ENABLE, PACKET_SUPPORT_UNKNOWN, PACKET_X, putpkt_binary(), remote_debug, remote_protocol_packets, and packet_config::support.

Referenced by remote_write_bytes().

## ◆ check_pending_event_prevents_wildcard_vcont_callback()

static int check_pending_event_prevents_wildcard_vcont_callback | ( | QUEUE(stop_reply_p) * | q,
|  | QUEUE_ITER(stop_reply_p) * | iter,
|  | stop_reply_p | event,
|  | void * | data
| ) |  |
| static

Definition at line 6501 of file remote.c.

References find_inferior_ptid(), get_remote_inferior(), arm-linux::inf, target_waitstatus::kind, remote_inferior::may_wildcard_vcont, stop_reply::ptid, TARGET_WAITKIND_FORKED, TARGET_WAITKIND_NO_HISTORY, TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_VFORKED, and stop_reply::ws.

Referenced by check_pending_events_prevent_wildcard_vcont().

## ◆ check_pending_events_prevent_wildcard_vcont()

static void check_pending_events_prevent_wildcard_vcont | ( | int * | may_global_wildcard_vcont | ) |
| static

Definition at line 6536 of file remote.c.

References check_pending_event_prevents_wildcard_vcont_callback(), notif_client_stop, QUEUE_iterate, and remote_notif_get_pending_events().

Referenced by remote_commit_resume().

## ◆ compare_pnums()

static int compare_pnums | ( | const void * | lhs_,
|  | const void * | rhs_
| ) |  |
| static

Definition at line 729 of file remote.c.

Referenced by map_regcache_remote_table().

## ◆ compare_sections_command()

static void compare_sections_command | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 10231 of file remote.c.

References _, error(), exec_bfd, paddress(), printf_filtered(), set_general_process(), size, target_gdbarch(), target_verify_memory(), and warning().

Referenced by _initialize_remote().

## ◆ copy_threadref()

static void copy_threadref | ( | threadref * | dest,
|  | threadref * | src
| ) |  |
| static

Definition at line 2621 of file remote.c.

Referenced by remote_threadlist_iterator(), and remote_unpack_thread_info_response().

## ◆ DECLARE_QUEUE_P()

DECLARE_QUEUE_P | ( | stop_reply_p |  | ) |

## ◆ DEF_VEC_O() [1/2]

DEF_VEC_O | ( | cached_reg_t |  | ) |

## ◆ DEF_VEC_O() [2/2]

DEF_VEC_O | ( | remote_g_packet_guess_s |  | ) |

## ◆ DEFINE_QUEUE_P()

DEFINE_QUEUE_P | ( | stop_reply_p |  | ) |

## ◆ discard_pending_stop_replies()

static void discard_pending_stop_replies | ( | struct inferior * | inf | ) |
| static

Definition at line 6570 of file remote.c.

References get_remote_state(), notif_client::id, if(), arm-linux::inf, queue_iter_param::input, notif_client_stop, remote_state::notif_state, queue_iter_param::output, remote_notif_state::pending_event, inf::pid, stop_reply::ptid, ptid_get_pid(), QUEUE_iterate, remote_state::remote_desc, remove_stop_reply_for_inferior(), and stop_reply_xfree().

Referenced by _initialize_remote().

## ◆ discard_pending_stop_replies_in_queue()

static void discard_pending_stop_replies_in_queue | ( | struct remote_state * | rs | ) |
| static

Definition at line 6623 of file remote.c.

References queue_iter_param::input, queue_iter_param::output, QUEUE_iterate, and remove_stop_reply_of_remote_state().

Referenced by remote_close().

## ◆ end_thread()

static void end_thread | ( | struct gdb_xml_parser * | parser,
|  | const struct gdb_xml_element * | element,
|  | void * | user_data,
|  | const char * | body_text
| ) |  |
| static

Definition at line 3106 of file remote.c.

References threads_listing_context::items.

## ◆ escape_buffer()

static std::string escape_buffer | ( | const char * | buf,
|  | int | n
| ) |  |
| static

Definition at line 8630 of file remote.c.

References remote_state::buf, ui_file::putstrn(), and string_file::string().

Referenced by getpkt_or_notif_sane_1(), putpkt_binary(), and read_frame().

## ◆ extended_remote_attach()

static void extended_remote_attach | ( | struct target_ops * | target,
|  | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 5257 of file remote.c.

References _, add_thread_silent(), remote_state::buf, remote_state::buf_size, remote_state::cached_wait_status, error(), first_thread_of_process(), gdb_assert, gdb_flush(), gdb_stdout, get_exec_file(), get_remote_packet_size(), get_remote_state(), getpkt(), inferior_ptid, minus_one_ptid, notif_client_stop, PACKET_DISABLE, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_vAttach, parse_pid_to_attach(), pid, pid_to_ptid(), printf_unfiltered(), thread_info::ptid, push_stop_reply(), putpkt(), record_currthread(), remote_add_inferior(), remote_current_thread(), remote_notif_parse(), remote_protocol_packets, remote_update_thread_list(), set_current_inferior(), target_async(), target_can_async_p, target_find_description(), target_is_non_stop_p(), target_pid_to_str(), and xsnprintf().

Referenced by init_extended_remote_ops().

## ◆ extended_remote_create_inferior()

static void extended_remote_create_inferior | ( | struct target_ops * | ops,
|  | const char * | exec_file,
|  | const std::string & | args,
|  | char ** | env,
|  | int | from_tty
| ) |  |
| static

Definition at line 9635 of file remote.c.

References _, add_current_inferior_and_thread(), remote_state::buf, remote_state::buf_size, disable_randomization, error(), extended_remote_disable_randomization(), extended_remote_environment_support(), extended_remote_restart(), extended_remote_run(), extended_remote_set_inferior_cwd(), extended_remote_supports_disable_randomization(), get_offsets(), get_remote_exec_file(), get_remote_packet_size(), get_remote_state(), getpkt(), have_inferiors(), init_thread_list(), init_wait_for_inferior(), PACKET_DISABLE, PACKET_QStartupWithShell, putpkt(), startup_with_shell, target_async(), target_can_async_p, and xsnprintf().

Referenced by init_extended_remote_ops().

## ◆ extended_remote_detach()

static void extended_remote_detach | ( | struct target_ops * | ops,
|  | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 5173 of file remote.c.

References remote_detach_1().

Referenced by init_extended_remote_ops().

## ◆ extended_remote_disable_randomization()

static void extended_remote_disable_randomization | ( | int | val | ) |
| static

Definition at line 9464 of file remote.c.

References _, remote_state::buf, error(), get_remote_packet_size(), get_remote_state(), putpkt(), remote_get_noisy_reply(), and xsnprintf().

Referenced by extended_remote_create_inferior().

## ◆ extended_remote_environment_support()

static void extended_remote_environment_support | ( | struct remote_state * | rs | ) |
| static

Definition at line 9567 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, current_inferior(), inferior::environment, getpkt(), PACKET_DISABLE, PACKET_QEnvironmentHexEncoded, PACKET_QEnvironmentReset, PACKET_QEnvironmentUnset, putpkt(), send_environment_packet(), string, gdb_environ::user_set_env(), gdb_environ::user_unset_env(), and warning().

Referenced by extended_remote_create_inferior().

## ◆ extended_remote_open()

static void extended_remote_open | ( | const char * | name,
|  | int | from_tty
| ) |  |
| static

Definition at line 4322 of file remote.c.

References extended_remote_ops, name, and remote_open_1().

Referenced by init_extended_remote_ops().

## ◆ extended_remote_post_attach()

static void extended_remote_post_attach | ( | struct target_ops * | ops,
|  | int | pid
| ) |  |
| static

Definition at line 5373 of file remote.c.

References get_offsets(), remote_check_symbols(), and symfile_objfile.

Referenced by init_extended_remote_ops().

## ◆ extended_remote_restart()

static void extended_remote_restart | ( | void |  | ) |
| static

Definition at line 3474 of file remote.c.

References remote_state::buf, get_remote_packet_size(), get_remote_state(), putpkt(), remote_fileio_reset(), and xsnprintf().

Referenced by extended_remote_create_inferior().

## ◆ extended_remote_run()

static int extended_remote_run | ( | const std::string & | args | ) |
| static

Definition at line 9480 of file remote.c.

References _, gdb::argv, bin2hex(), remote_state::buf, remote_state::buf_size, error(), gdb_assert_not_reached, 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_create_inferior().

## ◆ extended_remote_set_inferior_cwd()

static void extended_remote_set_inferior_cwd | ( | struct remote_state * | rs | ) |
| static

Definition at line 9593 of file remote.c.

References _, bin2hex(), remote_state::buf, remote_state::buf_size, error(), get_inferior_cwd(), get_remote_packet_size(), getpkt(), PACKET_DISABLE, PACKET_OK, packet_ok(), PACKET_QSetWorkingDir, putpkt(), remote_protocol_packets, string, and xsnprintf().

Referenced by extended_remote_create_inferior().

## ◆ extended_remote_supports_disable_randomization()

static int extended_remote_supports_disable_randomization | ( | struct target_ops * | self | ) |
| static

Definition at line 9458 of file remote.c.

References PACKET_ENABLE, and PACKET_QDisableRandomization.

Referenced by extended_remote_create_inferior(), and init_extended_remote_ops().

## ◆ fetch_register_using_p()

static int fetch_register_using_p | ( | struct regcache * | regcache,
|  | struct packet_reg * | reg
| ) |  |
| static

Definition at line 7467 of file remote.c.

References _, regcache::arch(), remote_state::buf, remote_state::buf_size, error(), fromhex(), gdbarch_register_name(), get_remote_state(), getpkt(), hexnumstr(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_p, PACKET_UNKNOWN, putpkt(), regcache_raw_supply(), register_size(), and remote_protocol_packets.

Referenced by remote_fetch_registers().

## ◆ fetch_registers_using_g()

static void fetch_registers_using_g | ( | struct regcache * | regcache | ) |
| static

Definition at line 7665 of file remote.c.

References process_g_packet(), and send_g_packet().

Referenced by remote_fetch_registers().

## ◆ get_current_thread()

static ptid_t get_current_thread | ( | char * | wait_status | ) |
| static

Definition at line 3746 of file remote.c.

References inferior_ptid, null_ptid, ptid_equal(), remote_current_thread(), and stop_reply_extract_thread().

Referenced by add_current_inferior_and_thread(), and remote_start_remote().

## ◆ get_memory_packet_size()

static long get_memory_packet_size | ( | struct memory_packet_config * | config | ) |
| static

Definition at line 1031 of file remote.c.

References remote_arch_state::actual_register_packet_size, remote_state::buf, remote_state::buf_size, DEFAULT_MAX_MEMORY_PACKET_SIZE, remote_state::explicit_packet_size, memory_packet_config::fixed_p, get_remote_arch_state(), get_remote_packet_size(), get_remote_state(), MIN_MEMORY_PACKET_SIZE, memory_packet_config::size, target_gdbarch(), and xrealloc().

Referenced by get_memory_read_packet_size(), get_memory_write_packet_size(), and show_memory_packet_size().

## ◆ get_memory_read_packet_size()

static long get_memory_read_packet_size | ( | void |  | ) |
| static

Definition at line 1173 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().

## ◆ get_memory_write_packet_size()

static long get_memory_write_packet_size | ( | void |  | ) |
| static

Definition at line 1150 of file remote.c.

References get_memory_packet_size(), and memory_write_packet_config.

Referenced by remote_get_memory_xfer_limit(), remote_search_memory(), remote_write_bytes_aux(), and remote_write_qxfer().

## ◆ get_offsets()

static void get_offsets | ( | void |  | ) |
| static

Definition at line 3524 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, error(), free_symfile_segment_data(), fromhex(), get_remote_state(), get_symfile_segment_data(), getpkt(), symfile_segment_data::num_segments, objfile_relocate(), section_offsets::offsets, putpkt(), SECT_OFF_BSS, SECT_OFF_DATA, SECT_OFF_TEXT, symfile_segment_data::segment_bases, SIZEOF_N_SECTION_OFFSETS, startswith(), symfile_map_offsets_to_segments(), symfile_objfile, and warning().

Referenced by extended_remote_create_inferior(), extended_remote_post_attach(), and remote_start_remote().

## ◆ get_remote_arch_state()

static struct remote_arch_state* get_remote_arch_state | ( | struct gdbarch * | gdbarch | ) |
| static

Definition at line 648 of file remote.c.

References gdb_assert, and remote_gdbarch_data_handle.

Referenced by get_memory_packet_size(), get_remote_packet_size(), get_remote_state(), process_g_packet(), remote_fetch_registers(), remote_get_trace_status(), remote_parse_stop_reply(), remote_prepare_to_store(), remote_store_registers(), and store_registers_using_G().

## ◆ get_remote_exec_file()

static const char* get_remote_exec_file | ( | void |  | ) |
| static

Definition at line 683 of file remote.c.

References current_program_space, and remote_pspace_data.

Referenced by extended_remote_create_inferior(), and extended_remote_run().

## ◆ get_remote_inferior()

static remote_inferior* get_remote_inferior | ( | inferior * | inf | ) |
| static

Definition at line 5774 of file remote.c.

Referenced by check_pending_event_prevents_wildcard_vcont_callback(), and remote_commit_resume().

## ◆ get_remote_packet_size()

static long get_remote_packet_size | ( | void |  | ) |
| static

Definition at line 863 of file remote.c.

References remote_state::explicit_packet_size, get_remote_arch_state(), get_remote_state(), remote_arch_state::remote_packet_size, and target_gdbarch().

Referenced by btrace_sync_conf(), extended_remote_attach(), extended_remote_create_inferior(), extended_remote_disable_randomization(), extended_remote_restart(), extended_remote_run(), extended_remote_set_inferior_cwd(), get_memory_packet_size(), get_memory_read_packet_size(), remote_check_symbols(), remote_detach_pid(), remote_disable_btrace(), remote_disable_tracepoint(), remote_download_trace_state_variable(), remote_enable_btrace(), remote_enable_tracepoint(), remote_file_get(), remote_file_put(), remote_get_min_fast_tracepoint_insn_len(), remote_get_thread_local_address(), remote_get_threadlist(), remote_get_tib_address(), remote_get_trace_state_variable_value(), remote_get_tracepoint_status(), remote_hostio_close(), remote_hostio_fstat(), remote_hostio_open(), remote_hostio_pread(), remote_hostio_pread_vFile(), remote_hostio_pwrite(), remote_hostio_readlink(), remote_hostio_set_filesystem(), remote_hostio_unlink(), remote_insert_breakpoint(), remote_insert_hw_breakpoint(), remote_insert_watchpoint(), remote_interrupt_ns(), remote_query_attached(), remote_rcmd(), remote_read_qxfer(), remote_remove_breakpoint(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_resume_with_vcont(), remote_save_trace_data(), remote_send_printf(), remote_set_circular_trace_buffer(), remote_set_disconnected_tracing(), remote_set_permissions(), remote_set_syscall_catchpoint(), remote_set_trace_buffer_size(), remote_set_trace_notes(), remote_static_tracepoint_marker_at(), remote_stop_ns(), remote_thread_alive(), remote_thread_events(), remote_threads_extra_info(), remote_trace_find(), remote_use_agent(), remote_verify_memory(), remote_vkill(), remote_xfer_partial(), send_environment_packet(), send_g_packet(), set_thread(), store_register_using_P(), and vcont_builder_restart().

## ◆ get_remote_state()

static struct remote_state * get_remote_state | ( | void |  | ) |
| static

Definition at line 658 of file remote.c.

References get_remote_arch_state(), get_remote_state_raw(), and target_gdbarch().

Referenced by add_current_inferior_and_thread(), append_resumption(), btrace_sync_conf(), check_binary_download(), discard_pending_stop_replies(), extended_remote_attach(), extended_remote_create_inferior(), extended_remote_disable_randomization(), extended_remote_restart(), extended_remote_run(), fetch_register_using_p(), get_memory_packet_size(), get_offsets(), get_remote_packet_size(), getpkt_or_notif_sane_1(), interrupt_query(), kill_child_of_pending_fork(), kill_new_fork_children(), packet_command(), parse_threadlist_response(), process_g_packet(), putpkt_binary(), read_frame(), readahead_cache_invalidate(), readahead_cache_invalidate_fd(), readchar(), remote_add_thread(), remote_async(), remote_btrace_maybe_reopen(), remote_btrace_reset(), remote_can_async_p(), remote_can_do_single_step(), remote_can_download_tracepoint(), remote_close(), remote_current_thread(), remote_detach_1(), remote_detach_pid(), remote_disable_btrace(), remote_disable_tracepoint(), remote_download_command_source(), remote_download_trace_state_variable(), remote_download_tracepoint(), remote_enable_btrace(), remote_enable_tracepoint(), remote_execution_direction(), remote_file_delete(), remote_file_get(), remote_file_put(), remote_follow_fork(), remote_get_min_fast_tracepoint_insn_len(), remote_get_noisy_reply(), remote_get_raw_trace_data(), remote_get_thread_local_address(), remote_get_threadinfo(), remote_get_threadlist(), remote_get_threads_with_qthreadinfo(), remote_get_tib_address(), remote_get_trace_state_variable_value(), remote_get_trace_status(), remote_get_tracepoint_status(), remote_hostio_close(), remote_hostio_fstat(), remote_hostio_open(), remote_hostio_pread(), remote_hostio_pread_vFile(), remote_hostio_pwrite(), remote_hostio_readlink(), remote_hostio_send_command(), remote_hostio_set_filesystem(), remote_hostio_unlink(), remote_insert_breakpoint(), remote_insert_exec_catchpoint(), remote_insert_fork_catchpoint(), remote_insert_hw_breakpoint(), remote_insert_vfork_catchpoint(), remote_insert_watchpoint(), remote_interrupt_as(), remote_interrupt_ns(), remote_is_async_p(), remote_kill(), remote_mourn(), remote_new_objfile(), remote_notice_new_inferior(), remote_notif_get_pending_events(), remote_open_1(), remote_packet_size(), remote_parse_stop_reply(), remote_pass_ctrlc(), remote_pass_signals(), remote_pid_to_str(), remote_program_signals(), remote_query_attached(), remote_query_supported(), remote_rcmd(), remote_read_bytes_1(), remote_read_qxfer(), remote_remove_breakpoint(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_resume(), remote_resume_with_hc(), remote_resume_with_vcont(), remote_save_trace_data(), remote_search_memory(), remote_send_printf(), remote_serial_quit_handler(), remote_serial_write(), remote_set_circular_trace_buffer(), remote_set_disconnected_tracing(), remote_set_permissions(), remote_set_syscall_catchpoint(), remote_set_trace_buffer_size(), remote_set_trace_notes(), remote_start_remote(), remote_static_tracepoint_marker_at(), remote_stop_ns(), remote_supports_multi_process(), remote_thread_alive(), remote_thread_events(), remote_threadlist_iterator(), remote_threads_extra_info(), remote_trace_find(), remote_trace_init(), remote_trace_set_readonly_regions(), remote_trace_start(), remote_trace_stop(), remote_unpack_thread_info_response(), remote_upload_trace_state_variables(), remote_upload_tracepoints(), remote_use_agent(), remote_verify_memory(), remote_wait_as(), remote_wait_ns(), remote_write_bytes_aux(), remote_write_qxfer(), remote_xfer_partial(), send_g_packet(), send_interrupt_sequence(), set_general_process(), set_range_stepping(), set_remote_traceframe(), set_thread(), store_register_using_P(), store_registers_using_G(), vcont_builder_flush(), vcont_builder_restart(), VEC(), and write_ptid().

## ◆ get_remote_state_raw()

static struct remote_state* get_remote_state_raw | ( | void |  | ) |
| static

Definition at line 486 of file remote.c.

References remote_state.

Referenced by get_remote_state(), and init_remote_state().

## ◆ get_remote_thread_info() [1/2]

static remote_thread_info * get_remote_thread_info | ( | thread_info * | thread | ) |
| static

Definition at line 1940 of file remote.c.

References gdb_assert, and thread_info::priv.

Referenced by get_remote_thread_info(), process_initial_stop_replies(), process_stop_reply(), remote_add_thread(), remote_commit_resume(), remote_core_of_thread(), remote_resume(), remote_stopped_by_hw_breakpoint(), remote_stopped_by_sw_breakpoint(), remote_stopped_by_watchpoint(), remote_stopped_data_address(), remote_thread_handle_to_thread_info(), remote_thread_name(), remote_threads_extra_info(), remote_update_thread_list(), and resume_clear_thread_private_info().

## ◆ get_remote_thread_info() [2/2]

static remote_thread_info* get_remote_thread_info | ( | ptid_t | ptid | ) |
| static

Definition at line 1953 of file remote.c.

References find_thread_ptid(), get_remote_thread_info(), and thread_info::ptid.

## ◆ getpkt()

void getpkt | ( | char ** | buf,
|  | long * | sizeof_buf,
|  | int | forever
| ) |  |

Definition at line 9044 of file remote.c.

References remote_state::buf, and getpkt_sane().

Referenced by btrace_sync_conf(), check_binary_download(), extended_remote_attach(), extended_remote_create_inferior(), extended_remote_environment_support(), extended_remote_run(), extended_remote_set_inferior_cwd(), fetch_register_using_p(), get_offsets(), packet_command(), remote_check_symbols(), remote_current_thread(), remote_detach_pid(), remote_disable_btrace(), remote_enable_btrace(), remote_get_noisy_reply(), remote_get_thread_local_address(), remote_get_threadinfo(), remote_get_threadlist(), remote_get_threads_with_qthreadinfo(), remote_get_tib_address(), remote_insert_breakpoint(), remote_insert_hw_breakpoint(), remote_insert_watchpoint(), remote_interrupt_ns(), remote_mourn(), remote_notif_get_pending_events(), remote_pass_signals(), remote_program_signals(), remote_query_attached(), remote_query_supported(), remote_read_bytes_1(), remote_remove_breakpoint(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_resume_with_vcont(), remote_send(), remote_send_printf(), remote_set_permissions(), remote_set_syscall_catchpoint(), remote_start_remote(), remote_static_tracepoint_marker_at(), remote_stop_ns(), remote_thread_alive(), remote_thread_events(), remote_threads_extra_info(), remote_trace_set_readonly_regions(), remote_upload_trace_state_variables(), remote_upload_tracepoints(), remote_use_agent(), remote_vcont_probe(), remote_verify_memory(), remote_vkill(), remote_write_bytes_aux(), remote_xfer_partial(), send_environment_packet(), send_g_packet(), set_thread(), store_register_using_P(), store_registers_using_G(), vcont_builder_flush(), and VEC().

## ◆ getpkt_or_notif_sane()

static int getpkt_or_notif_sane | ( | char ** | buf,
|  | long * | sizeof_buf,
|  | int | forever,
|  | int * | is_notif
| ) |  |
| static

Definition at line 9214 of file remote.c.

References remote_state::buf, and getpkt_or_notif_sane_1().

Referenced by remote_wait_as(), and remote_wait_ns().

## ◆ getpkt_or_notif_sane_1()

static int getpkt_or_notif_sane_1 | ( | char ** | buf,
|  | long * | sizeof_buf,
|  | int | forever,
|  | int | expecting_notif,
|  | int * | is_notif
| ) |  |
| static

Definition at line 9065 of file remote.c.

References _, remote_state::buf, remote_state::cached_wait_status, escape_buffer(), fprintf_unfiltered(), fputs_filtered(), gdb_assert, gdb_stdlog, get_remote_state(), handle_notification(), MAX_TRIES, remote_state::noack_mode, remote_state::notif_state, printf_unfiltered(), read_frame(), readchar(), remote_debug, REMOTE_DEBUG_MAX_CHAR, remote_serial_write(), remote_timeout, remote_unpush_target(), SERIAL_TIMEOUT, string, TARGET_CLOSE_ERROR, throw_error(), and watchdog.

Referenced by getpkt_or_notif_sane(), and getpkt_sane().

## ◆ getpkt_sane()

static int getpkt_sane | ( | char ** | buf,
|  | long * | sizeof_buf,
|  | int | forever
| ) |  |
| static

Definition at line 9208 of file remote.c.

References remote_state::buf, and getpkt_or_notif_sane_1().

Referenced by getpkt(), remote_hostio_send_command(), remote_rcmd(), remote_read_qxfer(), remote_search_memory(), and remote_write_qxfer().

## ◆ hexnumlen()

static int hexnumlen | ( | ULONGEST | num | ) |
| static

Definition at line 7898 of file remote.c.

Referenced by hexnumstr(), remote_buffer_add_int(), and remote_write_bytes_aux().

## ◆ hexnumnstr()

static int hexnumnstr | ( | char * | buf,
|  | ULONGEST | num,
|  | int | width
| ) |  |
| static

Definition at line 7922 of file remote.c.

Referenced by hexnumstr(), and remote_write_bytes_aux().

## ◆ hexnumstr()

static int hexnumstr | ( | char * | buf,
|  | ULONGEST | num
| ) |  |
| static

Definition at line 7911 of file remote.c.

References hexnumlen(), and hexnumnstr().

Referenced by check_binary_download(), fetch_register_using_p(), remote_buffer_add_int(), remote_get_raw_trace_data(), remote_get_thread_local_address(), remote_insert_breakpoint(), remote_insert_hw_breakpoint(), remote_insert_watchpoint(), remote_read_bytes_1(), remote_remove_breakpoint(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_set_trace_buffer_size(), remote_static_tracepoint_marker_at(), and remote_write_bytes_aux().

## ◆ init_all_packet_configs()

static void init_all_packet_configs | ( | void |  | ) |
| static

Definition at line 4342 of file remote.c.

References AUTO_BOOLEAN_AUTO, packet_config::detect, PACKET_MAX, PACKET_SUPPORT_UNKNOWN, remote_protocol_packets, and packet_config::support.

Referenced by _initialize_remote().

## ◆ init_extended_remote_ops()

static void init_extended_remote_ops | ( | void |  | ) |
| static

Definition at line 13680 of file remote.c.

References extended_remote_attach(), extended_remote_create_inferior(), extended_remote_detach(), extended_remote_open(), extended_remote_ops, extended_remote_post_attach(), extended_remote_supports_disable_randomization(), remote_ops, target_ops::to_attach, target_ops::to_create_inferior, target_ops::to_detach, target_ops::to_doc, target_ops::to_longname, target_ops::to_open, target_ops::to_post_attach, target_ops::to_shortname, and target_ops::to_supports_disable_randomization.

Referenced by _initialize_remote().

## ◆ init_remote_ops()

static void init_remote_ops | ( | void |  | ) |
| static

Definition at line 13525 of file remote.c.

References default_child_has_all_memory(), default_child_has_execution(), default_child_has_memory(), default_child_has_registers(), default_child_has_stack(), OPS_MAGIC, process_stratum, remote_async(), remote_augmented_libraries_svr4_read(), remote_btrace_conf(), remote_can_async_p(), remote_can_do_single_step(), remote_can_download_tracepoint(), remote_can_execute_reverse(), remote_can_run_breakpoint_commands(), remote_can_use_agent(), remote_check_watch_resources(), remote_close(), remote_commit_resume(), remote_core_of_thread(), remote_detach(), remote_disable_btrace(), remote_disable_tracepoint(), remote_disconnect(), remote_download_trace_state_variable(), remote_download_tracepoint(), remote_enable_btrace(), remote_enable_tracepoint(), remote_execution_direction(), remote_fetch_registers(), remote_files_info(), remote_filesystem_is_local(), remote_flash_done(), remote_flash_erase(), remote_follow_exec(), remote_follow_fork(), remote_get_ada_task_ptid(), remote_get_memory_xfer_limit(), remote_get_min_fast_tracepoint_insn_len(), remote_get_raw_trace_data(), remote_get_thread_local_address(), remote_get_tib_address(), remote_get_trace_state_variable_value(), remote_get_trace_status(), remote_get_tracepoint_status(), remote_hostio_close(), remote_hostio_fstat(), remote_hostio_open(), remote_hostio_pread(), remote_hostio_pwrite(), remote_hostio_readlink(), remote_hostio_unlink(), remote_insert_breakpoint(), remote_insert_exec_catchpoint(), remote_insert_fork_catchpoint(), remote_insert_hw_breakpoint(), remote_insert_vfork_catchpoint(), remote_insert_watchpoint(), remote_interrupt(), remote_is_async_p(), remote_kill(), remote_load(), remote_memory_map(), remote_mourn(), remote_open(), remote_ops, remote_pass_ctrlc(), remote_pass_signals(), remote_pid_to_exec_file(), remote_pid_to_str(), remote_prepare_to_store(), remote_program_signals(), remote_rcmd(), remote_read_btrace(), remote_read_description(), remote_region_ok_for_hw_watchpoint(), remote_remove_breakpoint(), remote_remove_exec_catchpoint(), remote_remove_fork_catchpoint(), remote_remove_hw_breakpoint(), remote_remove_vfork_catchpoint(), remote_remove_watchpoint(), remote_resume(), remote_save_trace_data(), remote_search_memory(), remote_set_circular_trace_buffer(), remote_set_disconnected_tracing(), remote_set_permissions(), remote_set_syscall_catchpoint(), remote_set_trace_buffer_size(), remote_set_trace_notes(), remote_static_tracepoint_marker_at(), remote_stop(), remote_stopped_by_hw_breakpoint(), remote_stopped_by_sw_breakpoint(), remote_stopped_by_watchpoint(), remote_stopped_data_address(), remote_store_registers(), remote_supports_btrace(), remote_supports_cond_breakpoints(), remote_supports_disable_randomization(), remote_supports_enable_disable_tracepoint(), remote_supports_multi_process(), remote_supports_non_stop(), remote_supports_stopped_by_hw_breakpoint(), remote_supports_stopped_by_sw_breakpoint(), remote_supports_string_tracing(), remote_teardown_btrace(), remote_terminal_inferior(), remote_terminal_ours(), remote_thread_alive(), remote_thread_events(), remote_thread_handle_to_thread_info(), remote_thread_name(), remote_threads_extra_info(), remote_trace_find(), remote_trace_init(), remote_trace_set_readonly_regions(), remote_trace_start(), remote_trace_stop(), remote_traceframe_info(), remote_update_thread_list(), remote_upload_trace_state_variables(), remote_upload_tracepoints(), remote_use_agent(), remote_verify_memory(), remote_wait(), remote_watchpoint_addr_within_range(), remote_xfer_partial(), serial_log_command(), tc_schedlock, target_ops::to_async, target_ops::to_augmented_libraries_svr4_read, target_ops::to_btrace_conf, target_ops::to_can_async_p, target_ops::to_can_do_single_step, target_ops::to_can_download_tracepoint, target_ops::to_can_execute_reverse, target_ops::to_can_run_breakpoint_commands, target_ops::to_can_use_agent, target_ops::to_can_use_hw_breakpoint, target_ops::to_close, target_ops::to_commit_resume, target_ops::to_core_of_thread, target_ops::to_detach, target_ops::to_disable_btrace, target_ops::to_disable_tracepoint, target_ops::to_disconnect, target_ops::to_doc, target_ops::to_download_trace_state_variable, target_ops::to_download_tracepoint, target_ops::to_enable_btrace, target_ops::to_enable_tracepoint, target_ops::to_execution_direction, target_ops::to_extra_thread_info, target_ops::to_fetch_registers, target_ops::to_fileio_close, target_ops::to_fileio_fstat, target_ops::to_fileio_open, target_ops::to_fileio_pread, target_ops::to_fileio_pwrite, target_ops::to_fileio_readlink, target_ops::to_fileio_unlink, target_ops::to_files_info, target_ops::to_filesystem_is_local, target_ops::to_flash_done, target_ops::to_flash_erase, target_ops::to_follow_exec, target_ops::to_follow_fork, target_ops::to_get_ada_task_ptid, target_ops::to_get_memory_xfer_limit, target_ops::to_get_min_fast_tracepoint_insn_len, target_ops::to_get_raw_trace_data, target_ops::to_get_thread_local_address, target_ops::to_get_tib_address, target_ops::to_get_trace_state_variable_value, target_ops::to_get_trace_status, target_ops::to_get_tracepoint_status, target_ops::to_has_all_memory, target_ops::to_has_execution, target_ops::to_has_memory, target_ops::to_has_registers, target_ops::to_has_stack, target_ops::to_has_thread_control, target_ops::to_insert_breakpoint, target_ops::to_insert_exec_catchpoint, target_ops::to_insert_fork_catchpoint, target_ops::to_insert_hw_breakpoint, target_ops::to_insert_vfork_catchpoint, target_ops::to_insert_watchpoint, target_ops::to_interrupt, target_ops::to_is_async_p, target_ops::to_kill, target_ops::to_load, target_ops::to_log_command, target_ops::to_longname, target_ops::to_magic, target_ops::to_mourn_inferior, target_ops::to_open, target_ops::to_pass_ctrlc, target_ops::to_pass_signals, target_ops::to_pid_to_exec_file, target_ops::to_pid_to_str, target_ops::to_prepare_to_store, target_ops::to_program_signals, target_ops::to_rcmd, target_ops::to_read_btrace, target_ops::to_read_description, target_ops::to_region_ok_for_hw_watchpoint, target_ops::to_remove_breakpoint, target_ops::to_remove_exec_catchpoint, target_ops::to_remove_fork_catchpoint, target_ops::to_remove_hw_breakpoint, target_ops::to_remove_vfork_catchpoint, target_ops::to_remove_watchpoint, target_ops::to_resume, target_ops::to_save_trace_data, target_ops::to_search_memory, target_ops::to_set_circular_trace_buffer, target_ops::to_set_disconnected_tracing, target_ops::to_set_permissions, target_ops::to_set_syscall_catchpoint, target_ops::to_set_trace_buffer_size, target_ops::to_set_trace_notes, target_ops::to_shortname, target_ops::to_static_tracepoint_marker_at, target_ops::to_stop, target_ops::to_stopped_by_hw_breakpoint, target_ops::to_stopped_by_sw_breakpoint, target_ops::to_stopped_by_watchpoint, target_ops::to_stopped_data_address, target_ops::to_store_registers, target_ops::to_stratum, target_ops::to_supports_btrace, target_ops::to_supports_disable_randomization, target_ops::to_supports_enable_disable_tracepoint, target_ops::to_supports_evaluation_of_breakpoint_conditions, target_ops::to_supports_multi_process, target_ops::to_supports_non_stop, target_ops::to_supports_stopped_by_hw_breakpoint, target_ops::to_supports_stopped_by_sw_breakpoint, target_ops::to_supports_string_tracing, target_ops::to_teardown_btrace, target_ops::to_terminal_inferior, target_ops::to_terminal_ours, target_ops::to_thread_alive, target_ops::to_thread_events, target_ops::to_thread_handle_to_thread_info, target_ops::to_thread_name, target_ops::to_trace_find, target_ops::to_trace_init, target_ops::to_trace_set_readonly_regions, target_ops::to_trace_start, target_ops::to_trace_stop, target_ops::to_traceframe_info, target_ops::to_update_thread_list, target_ops::to_upload_trace_state_variables, target_ops::to_upload_tracepoints, target_ops::to_use_agent, target_ops::to_verify_memory, target_ops::to_wait, target_ops::to_watchpoint_addr_within_range, and target_ops::to_xfer_partial.

Referenced by _initialize_remote().

## ◆ init_remote_state()

static void* init_remote_state | ( | struct gdbarch * | gdbarch | ) |
| static

Definition at line 810 of file remote.c.

References remote_arch_state::actual_register_packet_size, remote_state::buf, remote_state::buf_size, gdbarch_num_regs(), GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC, get_remote_state_raw(), map_regcache_remote_table(), remote_arch_state::regs, remote_arch_state::remote_packet_size, remote_arch_state::sizeof_g_packet, and xrealloc().

Referenced by _initialize_remote().

## ◆ int_to_threadref()

void int_to_threadref | ( | threadref * | id,
|  | int | value
| ) |  |

Definition at line 2590 of file remote.c.

References scan().

Referenced by remote_threads_extra_info().

## ◆ interrupt_query()

static void interrupt_query | ( | void |  | ) |
| static

Definition at line 6205 of file remote.c.

References _, remote_state::ctrlc_pending_p, get_remote_state(), query(), quit(), remote_unpush_target(), TARGET_CLOSE_ERROR, throw_error(), and remote_state::waiting_for_stop_reply.

Referenced by putpkt_binary(), remote_pass_ctrlc(), and remote_serial_quit_handler().

## ◆ is_pending_fork_parent()

static int is_pending_fork_parent | ( | struct target_waitstatus * | ws,
|  | int | event_pid,
|  | ptid_t | thread_ptid
| ) |  |
| static

Definition at line 6405 of file remote.c.

References target_waitstatus::kind, ptid_get_pid(), TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED, and stop_reply::ws.

Referenced by is_pending_fork_parent_thread(), kill_child_of_pending_fork(), kill_new_fork_children(), and remove_new_fork_children().

## ◆ is_pending_fork_parent_thread()

static int is_pending_fork_parent_thread | ( | struct thread_info * | thread | ) |
| static

Definition at line 6433 of file remote.c.

References is_pending_fork_parent(), pid, thread_info::ptid, and thread_pending_fork_status().

Referenced by remote_commit_resume().

## ◆ kill_child_of_pending_fork()

static int kill_child_of_pending_fork | ( | QUEUE(stop_reply_p) * | q,
|  | QUEUE_ITER(stop_reply_p) * | iter,
|  | stop_reply_p | event,
|  | void * | data
| ) |  |
| static

Definition at line 9225 of file remote.c.

References _, error(), get_remote_state(), if(), queue_iter_param::input, is_pending_fork_parent(), stop_reply::ptid, ptid_get_pid(), target_waitstatus::related_pid, remote_vkill(), target_waitstatus::value, and stop_reply::ws.

Referenced by kill_new_fork_children().

## ◆ kill_new_fork_children()

static void kill_new_fork_children | ( | int | pid,
|  | struct remote_state * | rs
| ) |  |
| static

Definition at line 9251 of file remote.c.

References _, ALL_NON_EXITED_THREADS, error(), get_remote_state(), queue_iter_param::input, is_pending_fork_parent(), kill_child_of_pending_fork(), notif_client_stop, queue_iter_param::output, thread_info::pending_follow, pid, thread_info::ptid, ptid_get_pid(), QUEUE_iterate, target_waitstatus::related_pid, remote_notif_get_pending_events(), remote_vkill(), and target_waitstatus::value.

Referenced by remote_kill().

## ◆ map_regcache_remote_table()

static int map_regcache_remote_table | ( | struct gdbarch * | gdbarch,
|  | struct packet_reg * | regs
| ) |  |
| static

Definition at line 745 of file remote.c.

References compare_pnums(), gdbarch_num_regs(), gdbarch_remote_register_number(), packet_reg::in_g_packet, offset, packet_reg::offset, packet_reg::pnum, qsort, register_size(), regnum, and packet_reg::regnum.

Referenced by init_remote_state(), and remote_register_number_and_offset().

## ◆ new_remote_state()

static struct remote_state* new_remote_state | ( | void |  | ) |
| static

Definition at line 495 of file remote.c.

References remote_state::buf, remote_state::buf_size, EXEC_FORWARD, remote_state::fs_pid, remote_state::last_resume_exec_dir, remote_state::last_sent_signal, remote_state::remote_traceframe_number, XCNEW, and xmalloc().

Referenced by _initialize_remote().

## ◆ pack_int()

static char * pack_int | ( | char * | buf,
|  | int | value
| ) |  |
| static

Definition at line 2503 of file remote.c.

References remote_state::buf, and pack_hex_byte().

Referenced by pack_threadinfo_request().

## ◆ pack_threadid()

static char * pack_threadid | ( | char * | pkt,
|  | threadref * | id
| ) |  |
| static

Definition at line 2553 of file remote.c.

References BUF_THREAD_ID_SIZE, and pack_hex_byte().

Referenced by pack_threadinfo_request(), and pack_threadlist_request().

## ◆ pack_threadinfo_request()

static char * pack_threadinfo_request | ( | char * | pkt,
|  | int | mode,
|  | threadref * | id
| ) |  |
| static

Definition at line 2662 of file remote.c.

References pack_int(), and pack_threadid().

Referenced by remote_get_threadinfo().

## ◆ pack_threadlist_request()

static char * pack_threadlist_request | ( | char * | pkt,
|  | int | startflag,
|  | int | threadcount,
|  | threadref * | nextthread
| ) |  |
| static

Definition at line 2799 of file remote.c.

References remote_state::nextthread, pack_hex_byte(), pack_nibble(), and pack_threadid().

Referenced by remote_get_threadlist().

## ◆ packet_check_result()

static enum packet_result packet_check_result | ( | const char * | buf | ) |
| static

Definition at line 1298 of file remote.c.

References PACKET_ERROR, PACKET_OK, and PACKET_UNKNOWN.

Referenced by packet_ok(), remote_send_printf(), and store_registers_using_G().

## ◆ packet_command()

static void packet_command | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 10826 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, error(), get_remote_state(), getpkt(), print_packet(), putpkt(), puts_filtered(), and remote_state::remote_desc.

Referenced by _initialize_remote().

## ◆ packet_config_support()

static enum packet_support packet_config_support | ( | struct packet_config * | config | ) |
| static

Definition at line 1537 of file remote.c.

References _, AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_FALSE, AUTO_BOOLEAN_TRUE, packet_config::detect, gdb_assert_not_reached, PACKET_DISABLE, PACKET_ENABLE, and packet_config::support.

Referenced by btrace_sync_conf(), packet_support(), remote_disable_btrace(), remote_enable_btrace(), remote_read_btrace(), remote_read_qxfer(), remote_search_memory(), remote_start_remote(), remote_write_qxfer(), and show_packet_config_cmd().

## ◆ packet_ok()

static enum packet_result packet_ok | ( | const char * | buf,
|  | struct packet_config * | config
| ) |  |
| static

Definition at line 1324 of file remote.c.

References _, AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_TRUE, packet_config::detect, error(), fprintf_unfiltered(), gdb_stdlog, internal_error(), packet_config::name, packet_check_result(), PACKET_DISABLE, PACKET_ENABLE, PACKET_ERROR, PACKET_OK, PACKET_SUPPORT_UNKNOWN, PACKET_UNKNOWN, remote_debug, packet_config::support, and packet_config::title.

Referenced by btrace_sync_conf(), extended_remote_attach(), extended_remote_run(), extended_remote_set_inferior_cwd(), fetch_register_using_p(), remote_check_symbols(), remote_disable_btrace(), remote_enable_btrace(), remote_get_thread_local_address(), remote_get_tib_address(), remote_get_trace_status(), remote_hostio_send_command(), remote_insert_breakpoint(), remote_insert_hw_breakpoint(), remote_insert_watchpoint(), remote_interrupt_ns(), remote_pass_signals(), remote_program_signals(), remote_query_attached(), remote_query_supported(), remote_read_qxfer(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_search_memory(), remote_set_syscall_catchpoint(), remote_set_trace_buffer_size(), remote_start_remote(), remote_thread_events(), remote_vcont_probe(), remote_verify_memory(), remote_vkill(), remote_write_qxfer(), and store_register_using_P().

## ◆ packet_reg_from_pnum()

static struct packet_reg* packet_reg_from_pnum | ( | struct gdbarch * | gdbarch,
|  | struct remote_arch_state * | rsa,
|  | LONGEST | pnum
| ) |  |
| static

Definition at line 890 of file remote.c.

References gdbarch_num_regs(), packet_reg::pnum, and remote_arch_state::regs.

Referenced by remote_parse_stop_reply().

## ◆ packet_reg_from_regnum()

static struct packet_reg* packet_reg_from_regnum | ( | struct gdbarch * | gdbarch,
|  | struct remote_arch_state * | rsa,
|  | long | regnum
| ) |  |
| static

Definition at line 875 of file remote.c.

References gdb_assert, gdbarch_num_regs(), regnum, packet_reg::regnum, and remote_arch_state::regs.

Referenced by remote_fetch_registers(), and remote_store_registers().

## ◆ packet_set_cmd_state()

static enum auto_boolean packet_set_cmd_state | ( | int | packet | ) |
| static

Definition at line 1527 of file remote.c.

References packet_config::detect, and remote_protocol_packets.

Referenced by remote_query_supported().

## ◆ packet_support()

static enum packet_support packet_support | ( | int | packet | ) |
| static

Definition at line 1556 of file remote.c.

References packet_config_support(), and remote_protocol_packets.

## ◆ parse_threadlist_response()

static int parse_threadlist_response | ( | char * | pkt,
|  | int | result_limit,
|  | threadref * | original_echo,
|  | threadref * | resultlist,
|  | int * | doneflag
| ) |  |
| static

Definition at line 2814 of file remote.c.

References remote_state::buf_size, BUF_THREAD_ID_SIZE, get_remote_state(), unpack_byte(), unpack_nibble(), and unpack_threadid().

Referenced by remote_get_threadlist().

## ◆ peek_stop_reply()

static int peek_stop_reply | ( | ptid_t | ptid | ) |
| static

Definition at line 6728 of file remote.c.

References stop_reply::ptid, QUEUE_iterate, and stop_reply_match_ptid_and_ws().

Referenced by remote_stop_ns().

## ◆ print_one_stopped_thread()

static void print_one_stopped_thread | ( | struct thread_info * | thread | ) |
| static

Definition at line 3811 of file remote.c.

References get_current_frame(), get_frame_pc(), target_waitstatus::kind, observer_notify_normal_stop(), observer_notify_signal_received(), thread_info::ptid, set_current_sal_from_frame(), target_waitstatus::sig, signal_print_state(), stop_pc, thread_info::suspend, switch_to_thread(), TARGET_WAITKIND_STOPPED, target_waitstatus::value, thread_suspend_state::waitstatus, and thread_suspend_state::waitstatus_pending_p.

Referenced by process_initial_stop_replies().

## ◆ print_packet()

static void print_packet | ( | const char * | buf | ) |
| static

Definition at line 8642 of file remote.c.

References remote_state::buf, fputstr_filtered(), gdb_stdout, and puts_filtered().

Referenced by packet_command().

## ◆ process_g_packet()

static void process_g_packet | ( | struct regcache * | regcache | ) |
| static

Definition at line 7560 of file remote.c.

References _, remote_arch_state::actual_register_packet_size, regcache::arch(), remote_state::buf, error(), fromhex(), gdb_assert, gdbarch_num_regs(), get_remote_arch_state(), get_remote_state(), packet_reg::in_g_packet, internal_error(), memset(), offset, packet_reg::offset, packet_reg::pnum, regcache_raw_supply(), register_size(), packet_reg::regnum, remote_arch_state::regs, and remote_arch_state::sizeof_g_packet.

Referenced by fetch_registers_using_g().

## ◆ process_initial_stop_replies()

static void process_initial_stop_replies | ( | int | from_tty | ) |
| static

Definition at line 3837 of file remote.c.

References ALL_INFERIORS, ALL_NON_EXITED_THREADS, any_live_thread_of_process(), target_waitstatus::execd_pathname, find_thread_ptid(), fprintf_unfiltered(), gdb_stdlog, get_remote_thread_info(), arm-linux::inf, thread_info::inf, inferior_ptid, inferior_thread(), target_waitstatus::kind, memset(), minus_one_ptid, non_stop, notice_new_inferior(), inferior::num, thread_info::per_inf_num, inf::pid, print_one_stopped_thread(), print_target_wait_results(), thread_info::ptid, remote_debug, set_executing(), set_last_target_status(), set_running(), setup_inferior(), target_waitstatus::sig, thread_info::state, stop_all_threads(), stop_reply_queue_length(), thread_suspend_state::stop_signal, thread_info::suspend, switch_to_thread_no_regs(), target_wait(), TARGET_WAITKIND_EXECD, TARGET_WAITKIND_EXITED, TARGET_WAITKIND_IGNORE, TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_SIGNALLED, TARGET_WAITKIND_STOPPED, TARGET_WNOHANG, THREAD_RUNNING, THREAD_STOPPED, target_waitstatus::value, remote_thread_info::vcont_resumed, thread_suspend_state::waitstatus, thread_suspend_state::waitstatus_pending_p, and xfree().

Referenced by remote_start_remote().

## ◆ process_stop_reply()

static ptid_t process_stop_reply | ( | struct stop_reply * | stop_reply,
|  | struct target_waitstatus * | status
| ) |  |
| static

Definition at line 7186 of file remote.c.

References stop_reply::arch, remote_thread_info::core, get_remote_thread_info(), get_thread_arch_regcache(), inferior_ptid, null_ptid, regcache::ptid(), stop_reply::ptid, ptid_equal(), regcache_raw_supply(), remote_notice_new_inferior(), status, remote_thread_info::stop_reason, stop_reply_xfree(), TARGET_WAITKIND_EXITED, TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_SIGNALLED, remote_thread_info::vcont_resumed, VEC_free, VEC_iterate, remote_thread_info::watch_data_address, stop_reply::ws, and xfree().

Referenced by remote_wait_as(), and remote_wait_ns().

## ◆ push_stop_reply()

static void push_stop_reply | ( | struct stop_reply * | new_event | ) |
| static

Definition at line 6699 of file remote.c.

References fprintf_unfiltered(), gdb_stdlog, mark_async_event_handler(), notif_debug, stop_reply::ptid, QUEUE_enque, QUEUE_length, remote_async_inferior_event_token, and target_pid_to_str().

Referenced by extended_remote_attach(), and remote_notif_stop_ack().

## ◆ putpkt()

int putpkt | ( | const char * | buf | ) |

Definition at line 8650 of file remote.c.

References remote_state::buf, and putpkt_binary().

Referenced by btrace_sync_conf(), extended_remote_attach(), extended_remote_create_inferior(), extended_remote_disable_randomization(), extended_remote_environment_support(), extended_remote_restart(), extended_remote_run(), extended_remote_set_inferior_cwd(), fetch_register_using_p(), get_offsets(), packet_command(), remote_check_symbols(), remote_current_thread(), remote_detach_pid(), remote_disable_btrace(), remote_disable_tracepoint(), remote_download_command_source(), remote_download_trace_state_variable(), remote_download_tracepoint(), remote_enable_btrace(), remote_enable_tracepoint(), remote_fileio_reply(), remote_get_min_fast_tracepoint_insn_len(), remote_get_noisy_reply(), remote_get_raw_trace_data(), remote_get_thread_local_address(), remote_get_threadinfo(), remote_get_threadlist(), remote_get_threads_with_qthreadinfo(), remote_get_tib_address(), remote_get_trace_state_variable_value(), remote_get_trace_status(), remote_get_tracepoint_status(), remote_insert_breakpoint(), remote_insert_hw_breakpoint(), remote_insert_watchpoint(), remote_interrupt_ns(), remote_kill_k(), remote_mourn(), remote_notif_stop_ack(), remote_pass_signals(), remote_program_signals(), remote_query_attached(), remote_query_supported(), remote_rcmd(), remote_read_bytes_1(), remote_read_qxfer(), remote_remove_breakpoint(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_resume_with_hc(), remote_resume_with_vcont(), remote_save_trace_data(), remote_send(), remote_send_printf(), remote_set_circular_trace_buffer(), remote_set_disconnected_tracing(), remote_set_permissions(), remote_set_syscall_catchpoint(), remote_set_trace_buffer_size(), remote_set_trace_notes(), remote_start_remote(), remote_static_tracepoint_marker_at(), remote_stop_ns(), remote_thread_alive(), remote_thread_events(), remote_threads_extra_info(), remote_trace_find(), remote_trace_init(), remote_trace_set_readonly_regions(), remote_trace_start(), remote_trace_stop(), remote_upload_trace_state_variables(), remote_upload_tracepoints(), remote_use_agent(), remote_vcont_probe(), remote_verify_memory(), remote_vkill(), remote_wait_as(), remote_xfer_partial(), send_environment_packet(), set_thread(), store_register_using_P(), store_registers_using_G(), vcont_builder_flush(), and VEC().

## ◆ putpkt_binary()

static int putpkt_binary | ( | const char * | buf,
|  | int | cnt
| ) |  |
| static

Definition at line 8662 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, remote_state::cached_wait_status, error(), escape_buffer(), fprintf_unfiltered(), fputc_unfiltered(), gdb_flush(), gdb_stdlog, get_remote_state(), handle_notification(), interrupt_query(), remote_state::noack_mode, remote_state::notif_state, putchar_unfiltered(), quit_flag, read_frame(), readchar(), remote_debug, REMOTE_DEBUG_MAX_CHAR, remote_serial_write(), remote_timeout, SERIAL_TIMEOUT, skip_frame(), string, target_is_async_p, target_is_non_stop_p(), tohex(), and remote_state::waiting_for_stop_reply.

Referenced by check_binary_download(), putpkt(), remote_hostio_send_command(), remote_search_memory(), remote_write_bytes_aux(), and remote_write_qxfer().

## ◆ QUEUE()

static QUEUE | ( | stop_reply_p |  | ) |
| static

Definition at line 6302 of file remote.c.

References notif_event_xfree().

## ◆ queued_stop_reply()

static struct stop_reply* queued_stop_reply | ( | ptid_t | ptid | ) |
| static

Definition at line 6683 of file remote.c.

References mark_async_event_handler(), stop_reply::ptid, QUEUE_is_empty, remote_async_inferior_event_token, and remote_notif_remove_queued_reply().

Referenced by remote_wait_as(), and remote_wait_ns().

## ◆ read_frame()

static long read_frame | ( | char ** | buf_p,
|  | long * | sizeof_buf
| ) |  |
| static

Definition at line 8912 of file remote.c.

References _, remote_state::buf, escape_buffer(), fprintf_unfiltered(), fputs_filtered(), fromhex(), gdb_stdlog, get_remote_state(), memset(), remote_state::noack_mode, printf_filtered(), readchar(), remote_debug, remote_timeout, SERIAL_TIMEOUT, string, and xrealloc().

Referenced by getpkt_or_notif_sane_1(), and putpkt_binary().

## ◆ read_ptid()

static ptid_t read_ptid | ( | const char * | buf,
|  | const char ** | obuf
| ) |  |
| static

Definition at line 2414 of file remote.c.

References _, remote_state::buf, error(), inferior_ptid, magic_null_ptid, null_ptid, pid, ptid_build(), ptid_equal(), ptid_get_pid(), selftests::ptid::tid, and unpack_varlen_hex().

Referenced by remote_current_thread(), remote_get_threads_with_qthreadinfo(), remote_parse_stop_reply(), start_thread(), and stop_reply_extract_thread().

## ◆ readahead_cache_invalidate()

static void readahead_cache_invalidate | ( | void |  | ) |
| static

Definition at line 11435 of file remote.c.

References readahead_cache::fd, get_remote_state(), and remote_state::readahead_cache.

Referenced by remote_open_1().

## ◆ readahead_cache_invalidate_fd()

static void readahead_cache_invalidate_fd | ( | int | fd | ) |
| static

Definition at line 11445 of file remote.c.

References readahead_cache::fd, get_remote_state(), and remote_state::readahead_cache.

Referenced by remote_hostio_close(), remote_hostio_pread(), and remote_hostio_pwrite().

## ◆ readchar()

static int readchar | ( | int | timeout | ) |
| static

Definition at line 8548 of file remote.c.

References _, get_remote_state(), remote_state::got_ctrlc_during_io, make_scoped_restore(), quit_handler, remote_state::remote_desc, remote_serial_quit_handler(), remote_unpush_target(), SERIAL_EOF, SERIAL_ERROR, serial_readchar(), SERIAL_TIMEOUT, set_quit_flag(), TARGET_CLOSE_ERROR, throw_error(), and unpush_and_perror().

Referenced by getpkt_or_notif_sane_1(), putpkt_binary(), read_frame(), and skip_frame().

## ◆ record_currthread()

static void record_currthread | ( | struct remote_state * | rs,
|  | ptid_t | currthread
| ) |  |
| static

Definition at line 1966 of file remote.c.

References remote_state::general_thread.

Referenced by extended_remote_attach(), remote_mourn(), and remote_wait_as().

## ◆ register_remote_g_packet_guess()

void register_remote_g_packet_guess | ( | struct gdbarch * | gdbarch,
|  | int | bytes,
|  | const struct target_desc * | tdesc
| ) |  |

Definition at line 11162 of file remote.c.

References _, remote_g_packet_guess::bytes, gdb_assert, internal_error(), remote_g_packet_data_handle, remote_g_packet_guess::tdesc, VEC_iterate, and VEC_safe_push.

Referenced by arm_register_g_packet_guesses(), microblaze_register_g_packet_guesses(), and mips_register_g_packet_guesses().

## ◆ register_remote_support_xml()

void register_remote_support_xml | ( | const char * | xml | ) |

Definition at line 4662 of file remote.c.

References remote_support_xml, and xfree().

Referenced by _initialize_i386_tdep().

## ◆ remote_add_inferior()

static struct inferior* remote_add_inferior | ( | int | fake_pid_p,
|  | int | pid,
|  | int | attached,
|  | int | try_open_exec
| ) |  |
| static

Definition at line 1777 of file remote.c.

References add_inferior(), current_inferior(), current_program_space, exec_file_locate_attach(), inferior::fake_pid_p, gdbarch_has_global_solist(), get_exec_file(), arm-linux::inf, inferior_appeared(), maybe_new_address_space(), pid, remote_query_attached(), and target_gdbarch().

Referenced by add_current_inferior_and_thread(), extended_remote_attach(), and remote_notice_new_inferior().

## ◆ remote_add_target_side_commands()

static void remote_add_target_side_commands | ( | struct gdbarch * | gdbarch,
|  | struct bp_target_info * | bp_tgt,
|  | char * | buf
| ) |  |
| static

Definition at line 9735 of file remote.c.

References agent_expr::buf, remote_state::buf, agent_expr::len, pack_hex_byte(), bp_target_info::persist, and bp_target_info::tcommands.

Referenced by remote_insert_breakpoint(), and remote_insert_hw_breakpoint().

## ◆ remote_add_target_side_condition()

static int remote_add_target_side_condition | ( | struct gdbarch * | gdbarch,
|  | struct bp_target_info * | bp_tgt,
|  | char * | buf,
|  | char * | buf_end
| ) |  |
| static

Definition at line 9711 of file remote.c.

References agent_expr::buf, remote_state::buf, bp_target_info::conditions, agent_expr::len, pack_hex_byte(), and xsnprintf().

Referenced by remote_insert_breakpoint(), and remote_insert_hw_breakpoint().

## ◆ remote_add_thread()

static void remote_add_thread | ( | ptid_t | ptid,
|  | int | running,
|  | int | executing
| ) |  |
| static

Definition at line 1826 of file remote.c.

References add_thread(), add_thread_silent(), thread_info::executing, get_remote_state(), get_remote_thread_info(), thread_info::ptid, set_executing(), set_running(), remote_state::starting_up, and remote_thread_info::vcont_resumed.

Referenced by remote_notice_new_inferior().

## ◆ remote_address_masked()

static CORE_ADDR remote_address_masked | ( | CORE_ADDR | addr | ) |
| static

Definition at line 7940 of file remote.c.

References gdbarch_addr_bit(), remote_address_size, and target_gdbarch().

Referenced by remote_insert_breakpoint(), remote_insert_hw_breakpoint(), remote_insert_watchpoint(), remote_read_bytes_1(), remote_remove_breakpoint(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_watchpoint_addr_within_range(), and remote_write_bytes_aux().

## ◆ remote_async()

static void remote_async | ( | struct target_ops * | ops,
|  | int | enable
| ) |  |
| static

Definition at line 13747 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, QUEUE_is_empty, remote_async_inferior_event_token, remote_async_serial_handler, remote_state::remote_desc, serial_async(), and target_is_non_stop_p().

Referenced by init_remote_ops().

## ◆ remote_async_inferior_event_handler()

static void remote_async_inferior_event_handler | ( | gdb_client_data | data | ) |
| static

Definition at line 13741 of file remote.c.

References INF_REG_EVENT, and inferior_event_handler().

Referenced by remote_open_1().

## ◆ remote_async_serial_handler()

static void remote_async_serial_handler | ( | struct serial * | scb,
|  | void * | context
| ) |  |
| static

Definition at line 13733 of file remote.c.

References INF_REG_EVENT, and inferior_event_handler().

## ◆ remote_augmented_libraries_svr4_read()

static int remote_augmented_libraries_svr4_read | ( | struct target_ops * | self | ) |
| static

Definition at line 13414 of file remote.c.

References PACKET_augmented_libraries_svr4_read_feature, and PACKET_ENABLE.

Referenced by init_remote_ops().

## ◆ remote_btrace_conf()

static const struct btrace_config* remote_btrace_conf | ( | struct target_ops * | self,
|  | const struct btrace_target_info * | tinfo
| ) |  |
| static

Definition at line 13407 of file remote.c.

References btrace_target_info::conf.

Referenced by init_remote_ops().

## ◆ remote_btrace_maybe_reopen()

static void remote_btrace_maybe_reopen | ( | void |  | ) |
| static

Definition at line 13205 of file remote.c.

References _, ALL_NON_EXITED_THREADS, remote_state::btrace_config, BTRACE_FORMAT_NONE, BTRACE_FORMAT_PT, btrace_format_string(), btrace_read_config(), btrace_config::format, get_remote_state(), memset(), printf_filtered(), thread_info::ptid, record_btrace_push_target(), set_general_thread(), warning(), and XCNEW.

Referenced by remote_start_remote().

## ◆ remote_btrace_reset()

static void remote_btrace_reset | ( | void |  | ) |
| static

Definition at line 13094 of file remote.c.

References remote_state::btrace_config, get_remote_state(), and memset().

Referenced by remote_open_1().

## ◆ remote_buffer_add_bytes()

static void remote_buffer_add_bytes | ( | char ** | buffer,
|  | int * | left,
|  | const gdb_byte * | bytes,
|  | int | len
| ) |  |
| static

Definition at line 11264 of file remote.c.

References _, bin2hex(), remote_g_packet_guess::bytes, and error().

Referenced by remote_hostio_open(), remote_hostio_readlink(), and remote_hostio_unlink().

## ◆ remote_buffer_add_int()

static void remote_buffer_add_int | ( | char ** | buffer,
|  | int * | left,
|  | ULONGEST | value
| ) |  |
| static

Definition at line 11285 of file remote.c.

References _, error(), hexnumlen(), and hexnumstr().

Referenced by remote_hostio_close(), remote_hostio_fstat(), remote_hostio_open(), remote_hostio_pread_vFile(), and remote_hostio_pwrite().

## ◆ remote_buffer_add_string()

static void remote_buffer_add_string | ( | char ** | buffer,
|  | int * | left,
|  | const char * | string
| ) |  |
| static

Definition at line 11242 of file remote.c.

References _, and error().

Referenced by remote_hostio_close(), remote_hostio_fstat(), remote_hostio_open(), remote_hostio_pread_vFile(), remote_hostio_pwrite(), remote_hostio_readlink(), remote_hostio_set_filesystem(), and remote_hostio_unlink().

## ◆ remote_can_async_p()

static int remote_can_async_p | ( | struct target_ops * | ops | ) |
| static

Definition at line 13700 of file remote.c.

References get_remote_state(), remote_state::remote_desc, serial_can_async_p(), and target_async_permitted.

Referenced by init_remote_ops().

## ◆ remote_can_do_single_step()

static int remote_can_do_single_step | ( | struct target_ops * | ops | ) |
| static

Definition at line 13464 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.

Referenced by init_remote_ops().

## ◆ remote_can_download_tracepoint()

static int remote_can_download_tracepoint | ( | struct target_ops * | self | ) |
| static

Definition at line 12447 of file remote.c.

References current_trace_status(), get_remote_state(), remote_get_trace_status(), remote_supports_install_in_trace(), trace_status::running, trace_status::running_known, remote_state::starting_up, and status.

Referenced by init_remote_ops().

## ◆ remote_can_execute_reverse()

static int remote_can_execute_reverse | ( | struct target_ops * | self | ) |
| static

Definition at line 12152 of file remote.c.

References PACKET_bc, PACKET_bs, and PACKET_ENABLE.

Referenced by init_remote_ops().

## ◆ remote_can_run_breakpoint_commands()

static int remote_can_run_breakpoint_commands | ( | struct target_ops * | self | ) |
| static

Definition at line 12226 of file remote.c.

References PACKET_BreakpointCommands, and PACKET_ENABLE.

Referenced by init_remote_ops(), remote_insert_breakpoint(), and remote_insert_hw_breakpoint().

## ◆ remote_can_use_agent()

static int remote_can_use_agent | ( | struct target_ops * | self | ) |
| static

Definition at line 13077 of file remote.c.

References PACKET_DISABLE, and PACKET_QAgent.

Referenced by init_remote_ops().

## ◆ remote_check_symbols()

static void remote_check_symbols | ( | void |  | ) |
| static

Definition at line 4356 of file remote.c.

References BMSYMBOL_VALUE_ADDRESS, current_target, do_cleanups(), free_current_contents(), gdbarch_addr_bit(), gdbarch_convert_from_func_ptr_addr(), get_remote_packet_size(), getpkt(), hex2bin(), lookup_minimal_symbol(), make_cleanup(), bound_minimal_symbol::minsym, PACKET_DISABLE, packet_ok(), PACKET_qSymbol, phex_nz(), putpkt(), remote_protocol_packets, set_general_process(), startswith(), target_gdbarch(), target_has_execution, xfree(), xmalloc(), and xsnprintf().

Referenced by extended_remote_post_attach(), remote_new_objfile(), and remote_start_remote().

## ◆ remote_check_watch_resources()

static int remote_check_watch_resources | ( | struct target_ops * | self,
|  | enum bptype | type,
|  | int | cnt,
|  | int | ot
| ) |  |
| static

Definition at line 9985 of file remote.c.

References bp_hardware_breakpoint, remote_hw_breakpoint_limit, and remote_hw_watchpoint_limit.

Referenced by init_remote_ops().

## ◆ remote_close()

static void remote_close | ( | struct target_ops * | self | ) |
| static

Definition at line 3489 of file remote.c.

References delete_async_event_handler(), discard_all_inferiors(), discard_pending_stop_replies_in_queue(), get_remote_state(), inferior_ptid, remote_state::notif_state, null_ptid, remote_async_inferior_event_token, remote_state::remote_desc, remote_notif_state_xfree(), remote_terminal_ours(), serial_close(), and trace_reset_local_state().

Referenced by init_remote_ops().

## ◆ remote_command()

static void remote_command | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 12146 of file remote.c.

References all_commands, gdb_stdout, help_list(), and remote_cmdlist.

Referenced by _initialize_remote().

## ◆ remote_commit_resume()

static void remote_commit_resume | ( | struct target_ops * | ops | ) |
| static

Definition at line 5873 of file remote.c.

References ALL_NON_EXITED_INFERIORS, ALL_NON_EXITED_THREADS, check_pending_events_prevent_wildcard_vcont(), EXEC_REVERSE, thread_info::executing, execution_direction, gdb_assert, get_remote_inferior(), get_remote_thread_info(), arm-linux::inf, thread_info::inf, is_pending_fork_parent_thread(), remote_thread_info::last_resume_sig, remote_thread_info::last_resume_step, remote_inferior::may_wildcard_vcont, minus_one_ptid, inf::pid, pid_to_ptid(), thread_info::ptid, target_is_non_stop_p(), thread_is_in_step_over_chain(), vcont_builder_flush(), vcont_builder_push_action(), vcont_builder_restart(), and remote_thread_info::vcont_resumed.

Referenced by init_remote_ops().

## ◆ remote_console_output()

static void remote_console_output | ( | char * | msg | ) |
| static

Definition at line 6245 of file remote.c.

References fputs_unfiltered(), fromhex(), gdb_flush(), and gdb_stdtarg.

Referenced by remote_get_noisy_reply(), remote_rcmd(), remote_wait_as(), and remote_wait_ns().

## ◆ remote_core_of_thread()

static int remote_core_of_thread | ( | struct target_ops * | ops,
|  | ptid_t | ptid
| ) |  |
| static

Definition at line 12905 of file remote.c.

References remote_thread_info::core, find_thread_ptid(), get_remote_thread_info(), thread_info::priv, and thread_info::ptid.

Referenced by init_remote_ops().

## ◆ remote_current_thread()

static ptid_t remote_current_thread | ( | ptid_t | oldptid | ) |
| static

Definition at line 3040 of file remote.c.

References remote_state::buf, remote_state::buf_size, fprintf_unfiltered(), gdb_stdlog, get_remote_state(), getpkt(), putpkt(), read_ptid(), and remote_debug.

Referenced by extended_remote_attach(), and get_current_thread().

## ◆ remote_delete_command()

static void remote_delete_command | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 12133 of file remote.c.

References _, gdb::argv, error(), error_no_arg(), and remote_file_delete().

Referenced by _initialize_remote().

## ◆ remote_detach()

static void remote_detach | ( | struct target_ops * | ops,
|  | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 5167 of file remote.c.

References remote_detach_1().

Referenced by init_remote_ops().

## ◆ remote_detach_1()

static void remote_detach_1 | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 5128 of file remote.c.

References _, detach_inferior(), error(), remote_state::extended, find_thread_ptid(), get_remote_state(), inferior_ptid, target_waitstatus::kind, null_ptid, number_of_live_inferiors(), thread_info::pending_follow, pid, ptid_get_pid(), puts_filtered(), remote_detach_pid(), target_announce_detach(), target_has_execution, target_mourn_inferior(), and TARGET_WAITKIND_FORKED.

Referenced by extended_remote_detach(), and remote_detach().

## ◆ remote_detach_pid()

static void remote_detach_pid | ( | int | pid | ) |
| static

Definition at line 5101 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, error(), get_remote_packet_size(), get_remote_state(), getpkt(), pid, putpkt(), remote_multi_process_p(), and xsnprintf().

Referenced by remote_detach_1(), and remote_follow_fork().

## ◆ remote_disable_btrace()

static void remote_disable_btrace | ( | struct target_ops * | self,
|  | struct btrace_target_info * | tinfo
| ) |  |
| static

Definition at line 13321 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, error(), 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(), xfree(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_disable_tracepoint()

static void remote_disable_tracepoint | ( | struct target_ops * | self,
|  | struct bp_location * | location
| ) |  |
| static

Definition at line 12516 of file remote.c.

References _, bp_location::address, remote_state::buf, error(), get_remote_packet_size(), get_remote_state(), breakpoint::number, bp_location::owner, putpkt(), remote_get_noisy_reply(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_disconnect()

static void remote_disconnect | ( | struct target_ops * | target,
|  | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 5238 of file remote.c.

References _, error(), generic_mourn_inferior(), puts_filtered(), and unpush_target().

Referenced by init_remote_ops().

## ◆ remote_download_command_source()

static void remote_download_command_source | ( | int | num,
|  | ULONGEST | addr,
|  | struct command_line * | cmds
| ) |  |
| static

Definition at line 12246 of file remote.c.

References _, command_line::body_list, remote_state::buf, remote_state::buf_size, command_line::control_type, encode_source_string(), get_remote_state(), command_line::line, command_line::next, putpkt(), QUIT, remote_get_noisy_reply(), warning(), while_control, and while_stepping_control.

Referenced by remote_download_tracepoint().

## ◆ remote_download_trace_state_variable()

static void remote_download_trace_state_variable | ( | struct target_ops * | self,
|  | struct trace_state_variable * | tsv
| ) |  |
| static

Definition at line 12475 of file remote.c.

References _, bin2hex(), remote_state::buf, trace_state_variable::builtin, error(), get_remote_packet_size(), get_remote_state(), trace_state_variable::initial_value, trace_state_variable::name, trace_state_variable::number, phex(), putpkt(), remote_get_noisy_reply(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_download_tracepoint()

static void remote_download_tracepoint | ( | struct target_ops * | self,
|  | struct bp_location * | loc
| ) |  |
| static

Definition at line 12283 of file remote.c.

References _, bp_enabled, bp_fast_tracepoint, bp_static_tracepoint, breakpoint_commands(), remote_state::buf, BUF_SIZE, breakpoint::commands, breakpoint::cond_string, default_collect, breakpoint::enable_state, encode_actions_rsp(), encode_source_string(), error(), event_location_to_string(), gdb_insn_length(), gdbarch_fast_tracepoint_valid_at(), gen_eval_for_expr(), get_remote_state(), internal_error(), breakpoint::loc, loc, breakpoint::location, breakpoint::number, bp_location::owner, pack_hex_byte(), 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, breakpoint::type, warning(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_enable_btrace()

static struct btrace_target_info* remote_enable_btrace | ( | struct target_ops * | self,
|  | ptid_t | ptid,
|  | const struct btrace_config * | conf
| ) |  |
| static

Definition at line 13258 of file remote.c.

References _, BTRACE_FORMAT_BTS, BTRACE_FORMAT_PT, btrace_read_config(), btrace_sync_conf(), remote_state::buf, remote_state::buf_size, CATCH, btrace_target_info::conf, END_CATCH, err, error(), btrace_config::format, 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, btrace_target_info::ptid, putpkt(), remote_protocol_packets, RETURN_MASK_ERROR, set_general_thread(), target_pid_to_str(), TRY, warning(), XCNEW, and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_enable_tracepoint()

static void remote_enable_tracepoint | ( | struct target_ops * | self,
|  | struct bp_location * | location
| ) |  |
| static

Definition at line 12498 of file remote.c.

References _, bp_location::address, remote_state::buf, error(), get_remote_packet_size(), get_remote_state(), breakpoint::number, bp_location::owner, putpkt(), remote_get_noisy_reply(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_exec_event_p()

static int remote_exec_event_p | ( | struct remote_state * | rs | ) |
| static

Definition at line 1651 of file remote.c.

References PACKET_ENABLE, and PACKET_exec_event_feature.

Referenced by remote_insert_exec_catchpoint().

## ◆ remote_execution_direction()

static enum exec_direction_kind remote_execution_direction | ( | struct target_ops * | self | ) |
| static

Definition at line 13488 of file remote.c.

References get_remote_state(), and remote_state::last_resume_exec_dir.

Referenced by init_remote_ops().

## ◆ remote_fetch_registers()

static void remote_fetch_registers | ( | struct target_ops * | ops,
|  | struct regcache * | regcache,
|  | int | regnum
| ) |  |
| static

Definition at line 7695 of file remote.c.

References regcache::arch(), fetch_register_using_p(), fetch_registers_using_g(), gdb_assert, gdbarch_num_regs(), get_remote_arch_state(), packet_reg::in_g_packet, packet_reg_from_regnum(), regcache_get_ptid(), regcache_raw_supply(), regnum, remote_arch_state::regs, set_general_thread(), and set_remote_traceframe().

Referenced by init_remote_ops().

## ◆ remote_file_delete()

void remote_file_delete | ( | const char * | remote_file,
|  | int | from_tty
| ) |  |

Definition at line 12089 of file remote.c.

References _, error(), find_target_at(), get_remote_state(), printf_filtered(), process_stratum, remote_state::remote_desc, remote_hostio_error(), and remote_hostio_unlink().

Referenced by mi_cmd_target_file_delete(), and remote_delete_command().

## ◆ remote_file_get()

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

Definition at line 12032 of file remote.c.

References _, discard_cleanups(), do_cleanups(), error(), find_target_at(), gdb_fopen_cloexec(), get_remote_packet_size(), get_remote_state(), make_cleanup(), offset, perror_with_name(), printf_filtered(), process_stratum, remote_state::remote_desc, remote_hostio_close(), remote_hostio_close_cleanup(), remote_hostio_error(), remote_hostio_open(), remote_hostio_pread(), xfree(), and xmalloc().

Referenced by mi_cmd_target_file_get(), and remote_get_command().

## ◆ remote_file_put()

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

Definition at line 11941 of file remote.c.

References _, discard_cleanups(), do_cleanups(), error(), find_target_at(), gdb_fopen_cloexec(), get_remote_packet_size(), get_remote_state(), make_cleanup(), offset, perror_with_name(), printf_filtered(), process_stratum, remote_state::remote_desc, remote_hostio_close(), remote_hostio_close_cleanup(), remote_hostio_error(), remote_hostio_open(), remote_hostio_pwrite(), xfree(), and xmalloc().

Referenced by mi_cmd_target_file_put(), and remote_put_command().

## ◆ remote_fileio_errno_to_host()

static int remote_fileio_errno_to_host | ( | int | errnum | ) |
| static

Definition at line 11870 of file remote.c.

Referenced by remote_hostio_error().

## ◆ remote_files_info()

static void remote_files_info | ( | struct target_ops * | ignore | ) |
| static

Definition at line 8518 of file remote.c.

References puts_filtered().

Referenced by init_remote_ops().

## ◆ remote_filesystem_is_local()

static int remote_filesystem_is_local | ( | struct target_ops * | self | ) |
| static

Definition at line 11821 of file remote.c.

References _, gdb_sysroot, PACKET_DISABLE, PACKET_SUPPORT_UNKNOWN, PACKET_vFile_open, cleanup_check::ps, remote_hostio_close(), remote_hostio_open(), TARGET_SYSROOT_PREFIX, and warning().

Referenced by init_remote_ops().

## ◆ remote_flash_done()

static void remote_flash_done | ( | struct target_ops * | ops | ) |
| static

Definition at line 8497 of file remote.c.

References _, error(), make_scoped_restore(), PACKET_ERROR, PACKET_UNKNOWN, remote_flash_timeout, remote_send_printf(), and remote_timeout.

Referenced by init_remote_ops().

## ◆ remote_flash_erase()

static void remote_flash_erase | ( | struct target_ops * | ops,
|  | ULONGEST | address,
|  | LONGEST | length
| ) |  |
| static

Definition at line 8463 of file remote.c.

References _, error(), gdbarch_addr_bit(), make_scoped_restore(), PACKET_ERROR, PACKET_UNKNOWN, phex(), remote_flash_timeout, remote_send_printf(), remote_timeout, and target_gdbarch().

Referenced by init_remote_ops().

## ◆ remote_flash_write()

static enum target_xfer_status remote_flash_write | ( | struct target_ops * | ops,
|  | ULONGEST | address,
|  | ULONGEST | length,
|  | ULONGEST * | xfered_len,
|  | const gdb_byte * | data
| ) |  |
| static

Definition at line 8486 of file remote.c.

References make_scoped_restore(), remote_flash_timeout, remote_timeout, and remote_write_bytes_aux().

Referenced by remote_xfer_partial().

## ◆ remote_follow_exec()

static void remote_follow_exec | ( | struct target_ops * | ops,
|  | struct inferior * | inf,
|  | char * | execd_pathname
| ) |  |
| static

Definition at line 5224 of file remote.c.

References is_target_filename(), set_pspace_remote_exec_file(), and TARGET_SYSROOT_PREFIX.

Referenced by init_remote_ops().

## ◆ remote_follow_fork()

static int remote_follow_fork | ( | struct target_ops * | ops,
|  | int | follow_child,
|  | int | detach_fork
| ) |  |
| static

Definition at line 5186 of file remote.c.

References detach_fork, detach_inferior(), get_remote_state(), inferior_thread(), target_waitstatus::kind, thread_info::pending_follow, ptid_get_pid(), target_waitstatus::related_pid, remote_detach_pid(), remote_fork_event_p(), remote_vfork_event_p(), TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED, and target_waitstatus::value.

Referenced by init_remote_ops().

## ◆ remote_fork_event_p()

static int remote_fork_event_p | ( | struct remote_state * | rs | ) |
| static

Definition at line 1635 of file remote.c.

References PACKET_ENABLE, and PACKET_fork_event_feature.

Referenced by remote_follow_fork(), and remote_insert_fork_catchpoint().

## ◆ remote_g_packet_data_init()

static void* remote_g_packet_data_init | ( | struct obstack * | obstack | ) |
| static

Definition at line 11156 of file remote.c.

References OBSTACK_ZALLOC.

Referenced by _initialize_remote().

## ◆ remote_get_ada_task_ptid()

static ptid_t remote_get_ada_task_ptid | ( | struct target_ops * | self,
|  | long | lwp,
|  | long | thread
| ) |  |
| static

Definition at line 3465 of file remote.c.

References inferior_ptid, selftests::ptid::lwp, ptid_build(), and ptid_get_pid().

Referenced by init_remote_ops().

## ◆ remote_get_command()

static void remote_get_command | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 12120 of file remote.c.

References _, gdb::argv, error(), error_no_arg(), and remote_file_get().

Referenced by _initialize_remote().

## ◆ remote_get_memory_xfer_limit()

static ULONGEST remote_get_memory_xfer_limit | ( | struct target_ops * | ops | ) |
| static

Definition at line 10645 of file remote.c.

References get_memory_write_packet_size().

Referenced by init_remote_ops().

## ◆ remote_get_min_fast_tracepoint_insn_len()

static int remote_get_min_fast_tracepoint_insn_len | ( | struct target_ops * | self | ) |
| static

Definition at line 12948 of file remote.c.

References remote_state::buf, get_remote_packet_size(), get_remote_state(), putpkt(), remote_get_noisy_reply(), set_general_process(), target_has_execution, unpack_varlen_hex(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_get_noisy_reply()

static char* remote_get_noisy_reply | ( |  | ) |
| static

Definition at line 569 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, CATCH, END_CATCH, error(), exception_fprintf(), gdb_stderr, gdbarch_relocate_instruction(), get_remote_state(), getpkt(), MEMORY_ERROR, putpkt(), QUIT, remote_console_output(), RETURN_MASK_ALL, startswith(), target_gdbarch(), trace_error(), TRY, unpack_varlen_hex(), and xsnprintf().

Referenced by extended_remote_disable_randomization(), remote_disable_tracepoint(), remote_download_command_source(), remote_download_trace_state_variable(), remote_download_tracepoint(), remote_enable_tracepoint(), remote_get_min_fast_tracepoint_insn_len(), remote_get_raw_trace_data(), remote_get_trace_state_variable_value(), remote_get_trace_status(), remote_get_tracepoint_status(), remote_save_trace_data(), remote_set_circular_trace_buffer(), remote_set_disconnected_tracing(), remote_set_trace_buffer_size(), remote_set_trace_notes(), remote_trace_find(), remote_trace_init(), remote_trace_start(), and remote_trace_stop().

## ◆ remote_get_raw_trace_data()

static LONGEST remote_get_raw_trace_data | ( | struct target_ops * | self,
|  | gdb_byte * | buf,
|  | ULONGEST | offset,
|  | LONGEST | len
| ) |  |
| static

Definition at line 12845 of file remote.c.

References remote_state::buf, get_remote_state(), hex2bin(), hexnumstr(), offset, putpkt(), and remote_get_noisy_reply().

Referenced by init_remote_ops().

## ◆ remote_get_thread_local_address()

static CORE_ADDR remote_get_thread_local_address | ( | struct target_ops * | ops,
|  | ptid_t | ptid,
|  | CORE_ADDR | lm,
|  | CORE_ADDR | offset
| ) |  |
| static

Definition at line 11048 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), offset, PACKET_DISABLE, PACKET_OK, packet_ok(), PACKET_qGetTLSAddr, PACKET_UNKNOWN, putpkt(), remote_protocol_packets, throw_error(), TLS_GENERIC_ERROR, unpack_varlen_hex(), and write_ptid().

Referenced by init_remote_ops().

## ◆ remote_get_threadinfo()

static int remote_get_threadinfo | ( | threadref * | threadid,
|  | int | fieldset,
|  | struct gdb_ext_thread_info * | info
| ) |  |
| static

Definition at line 2778 of file remote.c.

References remote_state::buf, remote_state::buf_size, get_remote_state(), getpkt(), pack_threadinfo_request(), putpkt(), and remote_unpack_thread_info_response().

Referenced by remote_threads_extra_info().

## ◆ remote_get_threadlist()

static int remote_get_threadlist | ( | int | startflag,
|  | threadref * | nextthread,
|  | int | result_limit,
|  | int * | done,
|  | int * | result_count,
|  | threadref * | threadlist
| ) |  |
| static

Definition at line 2845 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, BUF_THREAD_ID_SIZE, remote_state::echo_nextthread, get_remote_packet_size(), get_remote_state(), getpkt(), remote_state::nextthread, pack_threadlist_request(), parse_threadlist_response(), putpkt(), threadmatch(), and warning().

Referenced by remote_threadlist_iterator().

## ◆ remote_get_threads_with_ql()

static int remote_get_threads_with_ql | ( | struct target_ops * | ops,
|  | struct threads_listing_context * | context
| ) |  |
| static

Definition at line 3065 of file remote.c.

References CRAZY_MAX_THREADS, remote_newthread_step(), and remote_threadlist_iterator().

Referenced by remote_update_thread_list().

## ◆ remote_get_threads_with_qthreadinfo()

static int remote_get_threads_with_qthreadinfo | ( | struct target_ops * | ops,
|  | struct threads_listing_context * | context
| ) |  |
| static

Definition at line 3172 of file remote.c.

References remote_state::buf, remote_state::buf_size, get_remote_state(), getpkt(), threads_listing_context::items, putpkt(), read_ptid(), and remote_state::use_threadinfo_query.

Referenced by remote_update_thread_list().

## ◆ remote_get_threads_with_qxfer()

static int remote_get_threads_with_qxfer | ( | struct target_ops * | ops,
|  | struct threads_listing_context * | context
| ) |  |
| static

Definition at line 3147 of file remote.c.

References _, gdb_xml_parse_quick(), PACKET_ENABLE, PACKET_qXfer_threads, TARGET_OBJECT_THREADS, target_read_stralloc(), and threads_elements.

Referenced by remote_update_thread_list().

## ◆ remote_get_tib_address()

static int remote_get_tib_address | ( | struct target_ops * | self,
|  | ptid_t | ptid,
|  | CORE_ADDR * | addr
| ) |  |
| static

Definition at line 11096 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, error(), get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_DISABLE, PACKET_OK, packet_ok(), PACKET_qGetTIBAddr, PACKET_UNKNOWN, putpkt(), remote_protocol_packets, unpack_varlen_hex(), and write_ptid().

Referenced by init_remote_ops().

## ◆ remote_get_trace_state_variable_value()

static int remote_get_trace_state_variable_value | ( | struct target_ops * | self,
|  | int | tsvnum,
|  | LONGEST * | val
| ) |  |
| static

Definition at line 12793 of file remote.c.

References remote_state::buf, get_remote_packet_size(), get_remote_state(), putpkt(), remote_get_noisy_reply(), set_remote_traceframe(), unpack_varlen_hex(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_get_trace_status()

static int remote_get_trace_status | ( | struct target_ops * | self,
|  | struct trace_status * | ts
| ) |  |
| static

Definition at line 12598 of file remote.c.

References _, remote_state::buf, CATCH, END_CATCH, error(), exception_fprintf(), trace_status::filename, gdb_stderr, 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, RETURN_MASK_ERROR, trace_status::running, remote_arch_state::sizeof_g_packet, TARGET_CLOSE_ERROR, target_gdbarch(), throw_exception(), trace_regblock_size, and TRY.

Referenced by init_remote_ops(), remote_can_download_tracepoint(), and remote_start_remote().

## ◆ remote_get_tracepoint_status()

static void remote_get_tracepoint_status | ( | struct target_ops * | self,
|  | struct breakpoint * | bp,
|  | struct uploaded_tp * | utp
| ) |  |
| static

Definition at line 12650 of file remote.c.

References uploaded_tp::addr, bp_location::address, bp, remote_state::buf, get_remote_packet_size(), get_remote_state(), uploaded_tp::hit_count, breakpoint::hit_count, breakpoint::loc, loc, bp_location::next, uploaded_tp::number, tracepoint::number_on_target, parse_tracepoint_status(), phex_nz(), putpkt(), remote_get_noisy_reply(), size, uploaded_tp::traceframe_usage, tracepoint::traceframe_usage, and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_hostio_close()

static int remote_hostio_close | ( | struct target_ops * | self,
|  | int | fd,
|  | int * | remote_errno
| ) |  |
| static

Definition at line 11678 of file remote.c.

References remote_state::buf, get_remote_packet_size(), get_remote_state(), PACKET_vFile_close, readahead_cache_invalidate_fd(), remote_buffer_add_int(), remote_buffer_add_string(), and remote_hostio_send_command().

Referenced by init_remote_ops(), remote_file_get(), remote_file_put(), remote_filesystem_is_local(), and remote_hostio_close_cleanup().

## ◆ remote_hostio_close_cleanup()

static void remote_hostio_close_cleanup | ( | void * | opaque | ) |
| static

Definition at line 11932 of file remote.c.

References find_target_at(), process_stratum, and remote_hostio_close().

Referenced by remote_file_get(), and remote_file_put().

## ◆ remote_hostio_error()

static char* remote_hostio_error | ( | int | errnum | ) |
| static

Definition at line 11921 of file remote.c.

References _, error(), remote_fileio_errno_to_host(), and safe_strerror().

Referenced by remote_file_delete(), remote_file_get(), and remote_file_put().

## ◆ remote_hostio_fstat()

static int remote_hostio_fstat | ( | struct target_ops * | self,
|  | int | fd,
|  | struct stat * | st,
|  | int * | remote_errno
| ) |  |
| static

Definition at line 11761 of file remote.c.

References _, remote_state::buf, error(), get_remote_packet_size(), get_remote_state(), INT_MAX, memset(), PACKET_vFile_fstat, remote_buffer_add_int(), remote_buffer_add_string(), remote_fileio_to_host_stat(), remote_hostio_send_command(), and remote_unescape_input().

Referenced by init_remote_ops().

## ◆ remote_hostio_open()

static int remote_hostio_open | ( | struct target_ops * | self,
|  | struct inferior * | inf,
|  | const char * | filename,
|  | int | flags,
|  | int | mode,
|  | int | warn_if_slow,
|  | int * | remote_errno
| ) |  |
| static

Definition at line 11493 of file remote.c.

References _, remote_state::buf, flags, get_remote_packet_size(), get_remote_state(), PACKET_vFile_open, printf_unfiltered(), remote_buffer_add_bytes(), remote_buffer_add_int(), remote_buffer_add_string(), remote_hostio_send_command(), remote_hostio_set_filesystem(), and warning().

Referenced by init_remote_ops(), remote_file_get(), remote_file_put(), and remote_filesystem_is_local().

## ◆ remote_hostio_parse_result()

static int remote_hostio_parse_result | ( | char * | buffer,
|  | int * | retcode,
|  | int * | remote_errno,
|  | char ** | attachment
| ) |  |
| static

Definition at line 11312 of file remote.c.

Referenced by remote_hostio_send_command().

## ◆ remote_hostio_pread()

static int remote_hostio_pread | ( | struct target_ops * | self,
|  | int | fd,
|  | gdb_byte * | read_buf,
|  | int | len,
|  | ULONGEST | offset,
|  | int * | remote_errno
| ) |  |
| static

Definition at line 11634 of file remote.c.

References readahead_cache::buf, readahead_cache::bufsize, readahead_cache::fd, fprintf_unfiltered(), gdb_stdlog, get_remote_packet_size(), get_remote_state(), readahead_cache::hit_count, readahead_cache::miss_count, offset, readahead_cache::offset, pulongest(), remote_state::readahead_cache, readahead_cache_invalidate_fd(), remote_debug, remote_hostio_pread_from_cache(), remote_hostio_pread_vFile(), and xrealloc().

Referenced by init_remote_ops(), and remote_file_get().

## ◆ remote_hostio_pread_from_cache()

static int remote_hostio_pread_from_cache | ( | struct remote_state * | rs,
|  | int | fd,
|  | gdb_byte * | read_buf,
|  | size_t | len,
|  | ULONGEST | offset
| ) |  |
| static

Definition at line 11609 of file remote.c.

References readahead_cache::buf, readahead_cache::bufsize, readahead_cache::fd, offset, readahead_cache::offset, and remote_state::readahead_cache.

Referenced by remote_hostio_pread().

## ◆ remote_hostio_pread_vFile()

static int remote_hostio_pread_vFile | ( | struct target_ops * | self,
|  | int | fd,
|  | gdb_byte * | read_buf,
|  | int | len,
|  | ULONGEST | offset,
|  | int * | remote_errno
| ) |  |
| static

Definition at line 11569 of file remote.c.

References _, remote_state::buf, error(), get_remote_packet_size(), get_remote_state(), offset, PACKET_vFile_pread, remote_buffer_add_int(), remote_buffer_add_string(), remote_hostio_send_command(), and remote_unescape_input().

Referenced by remote_hostio_pread().

## ◆ remote_hostio_pwrite()

static int remote_hostio_pwrite | ( | struct target_ops * | self,
|  | int | fd,
|  | const gdb_byte * | write_buf,
|  | int | len,
|  | ULONGEST | offset,
|  | int * | remote_errno
| ) |  |
| static

Definition at line 11539 of file remote.c.

References remote_state::buf, get_remote_packet_size(), get_remote_state(), offset, PACKET_vFile_pwrite, readahead_cache_invalidate_fd(), remote_buffer_add_int(), remote_buffer_add_string(), remote_escape_output(), and remote_hostio_send_command().

Referenced by init_remote_ops(), and remote_file_put().

## ◆ remote_hostio_readlink()

static char* remote_hostio_readlink | ( | struct target_ops * | self,
|  | struct inferior * | inf,
|  | const char * | filename,
|  | int * | remote_errno
| ) |  |
| static

Definition at line 11720 of file remote.c.

References _, remote_state::buf, error(), get_remote_packet_size(), get_remote_state(), PACKET_vFile_readlink, remote_buffer_add_bytes(), remote_buffer_add_string(), remote_hostio_send_command(), remote_hostio_set_filesystem(), remote_unescape_input(), and xmalloc().

Referenced by init_remote_ops().

## ◆ remote_hostio_send_command()

static int remote_hostio_send_command | ( | int | command_bytes,
|  | int | which_packet,
|  | int * | remote_errno,
|  | char ** | attachment,
|  | int * | attachment_len
| ) |  |
| static

Definition at line 11368 of file remote.c.

References remote_state::buf, remote_state::buf_size, get_remote_state(), getpkt_sane(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, putpkt_binary(), remote_state::remote_desc, remote_hostio_parse_result(), and remote_protocol_packets.

Referenced by remote_hostio_close(), remote_hostio_fstat(), remote_hostio_open(), remote_hostio_pread_vFile(), remote_hostio_pwrite(), remote_hostio_readlink(), remote_hostio_set_filesystem(), and remote_hostio_unlink().

## ◆ remote_hostio_set_filesystem()

static int remote_hostio_set_filesystem | ( | struct inferior * | inf,
|  | int * | remote_errno
| ) |  |
| static

Definition at line 11458 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(), remote_hostio_send_command(), and xsnprintf().

Referenced by remote_hostio_open(), remote_hostio_readlink(), and remote_hostio_unlink().

## ◆ remote_hostio_unlink()

static int remote_hostio_unlink | ( | struct target_ops * | self,
|  | struct inferior * | inf,
|  | const char * | filename,
|  | int * | remote_errno
| ) |  |
| static

Definition at line 11697 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 init_remote_ops(), and remote_file_delete().

## ◆ remote_insert_breakpoint()

static int remote_insert_breakpoint | ( | struct target_ops * | ops,
|  | struct gdbarch * | gdbarch,
|  | struct bp_target_info * | bp_tgt
| ) |  |
| static

Definition at line 9763 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, gdbarch_has_global_breakpoints(), get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), bp_target_info::kind, memory_insert_breakpoint(), NOT_SUPPORTED_ERROR, 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_can_run_breakpoint_commands(), remote_protocol_packets, remote_supports_cond_breakpoints(), bp_target_info::reqstd_address, set_general_process(), target_gdbarch(), bp_target_info::tcommands, throw_error(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_insert_exec_catchpoint()

static int remote_insert_exec_catchpoint | ( | struct target_ops * | ops,
|  | int | pid
| ) |  |
| static

Definition at line 1700 of file remote.c.

References get_remote_state(), and remote_exec_event_p().

Referenced by init_remote_ops().

## ◆ remote_insert_fork_catchpoint()

static int remote_insert_fork_catchpoint | ( | struct target_ops * | ops,
|  | int | pid
| ) |  |
| static

Definition at line 1660 of file remote.c.

References get_remote_state(), and remote_fork_event_p().

Referenced by init_remote_ops().

## ◆ remote_insert_hw_breakpoint()

static int remote_insert_hw_breakpoint | ( | struct target_ops * | self,
|  | struct gdbarch * | gdbarch,
|  | struct bp_target_info * | bp_tgt
| ) |  |
| static

Definition at line 10081 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, error(), gdbarch_has_global_breakpoints(), get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), internal_error(), 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_can_run_breakpoint_commands(), remote_protocol_packets, remote_supports_cond_breakpoints(), bp_target_info::reqstd_address, set_general_process(), target_gdbarch(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_insert_vfork_catchpoint()

static int remote_insert_vfork_catchpoint | ( | struct target_ops * | ops,
|  | int | pid
| ) |  |
| static

Definition at line 1680 of file remote.c.

References get_remote_state(), and remote_vfork_event_p().

Referenced by init_remote_ops().

## ◆ remote_insert_watchpoint()

static int remote_insert_watchpoint | ( | struct target_ops * | self,
|  | CORE_ADDR | addr,
|  | int | len,
|  | enum target_hw_bp_type | type,
|  | struct expression * | cond
| ) |  |
| static

Definition at line 9880 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, gdbarch_has_global_breakpoints(), get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), internal_error(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_Z0, putpkt(), remote_address_masked(), remote_protocol_packets, set_general_process(), target_gdbarch(), watchpoint_to_Z_packet(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_interrupt()

static void remote_interrupt | ( | struct target_ops * | self,
|  | ptid_t | ptid
| ) |  |
| static

Definition at line 6170 of file remote.c.

References fprintf_unfiltered(), gdb_stdlog, remote_debug, remote_interrupt_as(), remote_interrupt_ns(), and target_is_non_stop_p().

Referenced by init_remote_ops().

## ◆ remote_interrupt_as()

static void remote_interrupt_as | ( | void |  | ) |
| static

Definition at line 6103 of file remote.c.

References remote_state::cached_wait_status, remote_state::ctrlc_pending_p, get_remote_state(), and send_interrupt_sequence().

Referenced by remote_interrupt(), and remote_stop().

## ◆ remote_interrupt_ns()

static void remote_interrupt_ns | ( | void |  | ) |
| static

Definition at line 6125 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, error(), get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_vCtrlC, putpkt(), remote_protocol_packets, and xsnprintf().

Referenced by remote_interrupt().

## ◆ remote_is_async_p()

static int remote_is_async_p | ( | struct target_ops * | ops | ) |
| static

Definition at line 13714 of file remote.c.

References get_remote_state(), remote_state::remote_desc, serial_is_async_p(), and target_async_permitted.

Referenced by init_remote_ops().

## ◆ remote_kill()

static void remote_kill | ( | struct target_ops * | ops | ) |
| static

Definition at line 9288 of file remote.c.

References _, error(), get_remote_state(), inferior_ptid, kill_new_fork_children(), number_of_live_inferiors(), PACKET_DISABLE, PACKET_vKill, pid, ptid_get_pid(), remote_kill_k(), remote_multi_process_p(), remote_vkill(), and target_mourn_inferior().

Referenced by init_remote_ops().

## ◆ remote_kill_k()

static void remote_kill_k | ( | void |  | ) |
| static

Definition at line 9360 of file remote.c.

References CATCH, END_CATCH, putpkt(), RETURN_MASK_ERROR, TARGET_CLOSE_ERROR, throw_exception(), and TRY.

Referenced by remote_kill().

## ◆ remote_load()

static void remote_load | ( | struct target_ops * | self,
|  | const char * | name,
|  | int | from_tty
| ) |  |
| static

Definition at line 13423 of file remote.c.

References generic_load(), and name.

Referenced by init_remote_ops().

## ◆ remote_memory_map()

static std::vector<mem_region> remote_memory_map | ( | struct target_ops * | ops | ) |
| static

Definition at line 10813 of file remote.c.

References current_target, parse_memory_map(), TARGET_OBJECT_MEMORY_MAP, and target_read_stralloc().

Referenced by init_remote_ops().

## ◆ remote_mourn()

static void remote_mourn | ( | struct target_ops * | ops | ) |
| static

Definition at line 9390 of file remote.c.

References remote_state::buf, remote_state::buf_size, remote_state::extended, generic_mourn_inferior(), get_remote_state(), getpkt(), have_inferiors(), inferior_ptid, magic_null_ptid, minus_one_ptid, number_of_live_inferiors(), putpkt(), record_currthread(), remote_multi_process_p(), unpush_target(), and remote_state::waiting_for_stop_reply.

Referenced by init_remote_ops().

## ◆ remote_multi_process_p()

static int remote_multi_process_p | ( | struct remote_state * | rs | ) |
| static

Definition at line 1627 of file remote.c.

References PACKET_ENABLE, and PACKET_multiprocess_feature.

Referenced by add_current_inferior_and_thread(), append_resumption(), remote_detach_pid(), remote_kill(), remote_mourn(), remote_notice_new_inferior(), remote_pid_to_str(), remote_query_attached(), remote_stop_ns(), remote_supports_multi_process(), set_general_process(), and write_ptid().

## ◆ remote_new_objfile()

static void remote_new_objfile | ( | struct objfile * | objfile | ) |
| static

Definition at line 13847 of file remote.c.

References get_remote_state(), remote_check_symbols(), and remote_state::remote_desc.

Referenced by _initialize_remote().

## ◆ remote_newthread_step()

static int remote_newthread_step | ( | threadref * | ref,
|  | void * | context
| ) |  |
| static

Definition at line 3024 of file remote.c.

References inferior_ptid, threads_listing_context::items, selftests::ptid::lwp, ptid_t::pid(), pid, and threadref_to_int().

Referenced by remote_get_threads_with_ql().

## ◆ remote_notice_new_inferior()

static void remote_notice_new_inferior | ( | ptid_t | currthread,
|  | int | executing
| ) |  |
| static

Definition at line 1855 of file remote.c.

References thread_info::executing, get_remote_state(), in_inferior_list(), in_thread_list(), inferior_ptid, is_exited(), magic_null_ptid, notice_new_inferior(), pid, pid_to_ptid(), ptid_equal(), ptid_get_pid(), ptid_is_pid(), remote_add_inferior(), remote_add_thread(), remote_multi_process_p(), remote_state::starting_up, target_is_non_stop_p(), and thread_change_ptid().

Referenced by process_stop_reply(), and remote_update_thread_list().

## ◆ remote_notif_get_pending_events()

void remote_notif_get_pending_events | ( | struct notif_client * | nc | ) |

Definition at line 7148 of file remote.c.

References notif_client::ack, remote_state::buf, remote_state::buf_size, fprintf_unfiltered(), 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_notif_process(), remote_start_remote(), remote_wait_ns(), and remove_new_fork_children().

## ◆ remote_notif_remove_once_on_match()

static int remote_notif_remove_once_on_match | ( | QUEUE(stop_reply_p) * | q,
|  | QUEUE_ITER(stop_reply_p) * | iter,
|  | stop_reply_p | event,
|  | void * | data
| ) |  |
| static

Definition at line 6638 of file remote.c.

References if(), queue_iter_param::input, queue_iter_param::output, stop_reply::ptid, ptid_match(), and QUEUE_remove_elem.

Referenced by remote_notif_remove_queued_reply().

## ◆ remote_notif_remove_queued_reply()

static struct stop_reply* remote_notif_remove_queued_reply | ( | ptid_t | ptid | ) |
| static

Definition at line 6660 of file remote.c.

References fprintf_unfiltered(), gdb_stdlog, queue_iter_param::input, notif_debug, queue_iter_param::output, QUEUE_iterate, remote_notif_remove_once_on_match(), and target_pid_to_str().

Referenced by queued_stop_reply().

## ◆ remote_notif_stop_ack()

static void remote_notif_stop_ack | ( | struct notif_client * | self,
|  | char * | buf,
|  | struct notif_event * | event
| ) |  |
| static

Definition at line 6326 of file remote.c.

References _, error(), target_waitstatus::kind, push_stop_reply(), putpkt(), TARGET_WAITKIND_IGNORE, and stop_reply::ws.

## ◆ remote_notif_stop_alloc_reply()

static struct notif_event* remote_notif_stop_alloc_reply | ( | void |  | ) |
| static

Definition at line 6369 of file remote.c.

References notif_event::dtr, stop_reply_dtr(), and XNEW.

## ◆ remote_notif_stop_can_get_pending_events()

static int remote_notif_stop_can_get_pending_events | ( | struct notif_client * | self | ) |
| static

Definition at line 6342 of file remote.c.

References mark_async_event_handler(), and remote_async_inferior_event_token.

## ◆ remote_notif_stop_parse()

static void remote_notif_stop_parse | ( | struct notif_client * | self,
|  | char * | buf,
|  | struct notif_event * | event
| ) |  |
| static

Definition at line 6319 of file remote.c.

References remote_parse_stop_reply().

## ◆ remote_open()

static void remote_open | ( | const char * | name,
|  | int | from_tty
| ) |  |
| static

Definition at line 4313 of file remote.c.

References name, remote_open_1(), and remote_ops.

Referenced by init_remote_ops().

## ◆ remote_open_1()

static void remote_open_1 | ( | const char * | name,
|  | int | from_tty,
|  | struct target_ops * | target,
|  | int | extended_p
| ) |  |
| static

Definition at line 4938 of file remote.c.

References _, baud_rate, remote_state::cached_wait_status, CATCH, remote_state::continue_thread, create_async_event_handler(), remote_state::ctrlc_pending_p, END_CATCH, error(), EXEC_FORWARD, remote_state::explicit_packet_size, remote_state::extended, remote_state::general_thread, get_remote_state(), remote_state::got_ctrlc_during_io, have_inferiors(), init_thread_list(), remote_state::last_pass_packet, remote_state::last_program_signals_packet, remote_state::last_resume_exec_dir, name, no_shared_libraries(), remote_state::noack_mode, not_sent_ptid, remote_state::notif_state, perror_with_name(), push_target(), puts_filtered(), query(), readahead_cache_invalidate(), remote_async_inferior_event_handler(), remote_async_inferior_event_token, remote_btrace_reset(), remote_state::remote_desc, remote_fileio_reset(), remote_notif_state_allocate(), remote_serial_open(), remote_start_remote(), remote_state::remote_traceframe_number, remote_unpush_target(), reopen_exec_file(), reread_symbols(), reset_all_packet_configs_support(), RETURN_MASK_ALL, serial_close(), serial_flush_input(), serial_parity, serial_raw(), serial_setbaudrate(), serial_setparity(), target_async_permitted, target_preopen(), throw_exception(), TRY, remote_state::use_threadextra_query, remote_state::use_threadinfo_query, wait_forever_enabled_p, remote_state::waiting_for_stop_reply, and xfree().

Referenced by extended_remote_open(), and remote_open().

## ◆ remote_packet_size()

static void remote_packet_size | ( | const struct protocol_feature * | feature,
|  | enum packet_support | support,
|  | const char * | value
| ) |  |
| static

Definition at line 4517 of file remote.c.

References _, remote_state::explicit_packet_size, get_remote_state(), protocol_feature::name, PACKET_ENABLE, and warning().

## ◆ remote_parse_stop_reply()

static void remote_parse_stop_reply | ( | char * | buf,
|  | struct stop_reply * | event
| ) |  |
| static

Definition at line 6750 of file remote.c.

References _, stop_reply::arch, cached_reg::data, error(), find_inferior_ptid(), fromhex(), GDB_SIGNAL_FIRST, get_remote_arch_state(), get_remote_state(), hex2bin(), hex_string(), inferior_ptid, target_waitstatus::kind, minus_one_ptid, null_ptid, cached_reg::num, PACKET_ENABLE, PACKET_hwbreak_feature, packet_reg_from_pnum(), PACKET_swbreak_feature, pid, pid_to_ptid(), stop_reply::ptid, ptid_equal(), ptid_get_pid(), read_ptid(), register_size(), startswith(), strprefix(), target_is_non_stop_p(), TARGET_STOPPED_BY_HW_BREAKPOINT, TARGET_STOPPED_BY_NO_REASON, TARGET_STOPPED_BY_SW_BREAKPOINT, TARGET_STOPPED_BY_WATCHPOINT, TARGET_WAITKIND_EXECD, TARGET_WAITKIND_EXITED, TARGET_WAITKIND_FORKED, TARGET_WAITKIND_IGNORE, TARGET_WAITKIND_LOADED, TARGET_WAITKIND_NO_HISTORY, TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_SIGNALLED, TARGET_WAITKIND_STOPPED, TARGET_WAITKIND_SYSCALL_ENTRY, TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_THREAD_CREATED, TARGET_WAITKIND_THREAD_EXITED, TARGET_WAITKIND_VFORK_DONE, TARGET_WAITKIND_VFORKED, unpack_varlen_hex(), VEC_safe_push, warning(), stop_reply::ws, and xmalloc().

Referenced by remote_notif_stop_parse().

## ◆ remote_pass_ctrlc()

static void remote_pass_ctrlc | ( | struct target_ops * | self | ) |
| static

Definition at line 6184 of file remote.c.

References remote_state::ctrlc_pending_p, fprintf_unfiltered(), gdb_stdlog, get_remote_state(), inferior_ptid, interrupt_query(), quit(), remote_debug, remote_state::starting_up, and target_interrupt().

Referenced by init_remote_ops().

## ◆ remote_pass_signals()

static void remote_pass_signals | ( | struct target_ops * | self,
|  | int | numsigs,
|  | unsigned char * | pass_signals
| ) |  |
| static

Definition at line 1975 of file remote.c.

References remote_state::buf, remote_state::buf_size, gdb_assert, get_remote_state(), getpkt(), remote_state::last_pass_packet, PACKET_DISABLE, packet_ok(), PACKET_QPassSignals, putpkt(), remote_protocol_packets, tohex(), xfree(), and xmalloc().

Referenced by init_remote_ops(), and remote_start_remote().

## ◆ remote_pid_to_exec_file()

static char* remote_pid_to_exec_file | ( | struct target_ops * | self,
|  | int | pid
| ) |  |
| static

Definition at line 13433 of file remote.c.

References _, current_target, find_inferior_pid(), arm-linux::inf, internal_error(), PACKET_ENABLE, PACKET_qXfer_exec_file, pid, TARGET_OBJECT_EXEC_FILE, target_read_stralloc(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_pid_to_str()

static const char* remote_pid_to_str | ( | struct target_ops * | ops,
|  | ptid_t | ptid
| ) |  |
| static

Definition at line 10999 of file remote.c.

References remote_state::buf, get_remote_state(), magic_null_ptid, normal_pid_to_str(), null_ptid, ptid_equal(), ptid_get_lwp(), ptid_get_pid(), ptid_is_pid(), remote_multi_process_p(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_prepare_to_store()

static void remote_prepare_to_store | ( | struct target_ops * | self,
|  | struct regcache * | regcache
| ) |  |
| static

Definition at line 7747 of file remote.c.

References regcache::arch(), gdbarch_num_regs(), get_remote_arch_state(), packet_reg::in_g_packet, PACKET_DISABLE, PACKET_ENABLE, PACKET_P, PACKET_SUPPORT_UNKNOWN, regcache_raw_update(), packet_reg::regnum, and remote_arch_state::regs.

Referenced by init_remote_ops().

## ◆ remote_program_signals()

static void remote_program_signals | ( | struct target_ops * | self,
|  | int | numsigs,
|  | unsigned char * | signals
| ) |  |
| static

Definition at line 2103 of file remote.c.

References remote_state::buf, remote_state::buf_size, gdb_assert, get_remote_state(), getpkt(), remote_state::last_program_signals_packet, PACKET_DISABLE, packet_ok(), PACKET_QProgramSignals, putpkt(), remote_protocol_packets, signal_pass_state(), signals, tohex(), xfree(), and xmalloc().

Referenced by init_remote_ops().

## ◆ remote_pspace_data_cleanup()

static void remote_pspace_data_cleanup | ( | struct program_space * | pspace,
|  | void * | arg
| ) |  |
| static

Definition at line 673 of file remote.c.

References xfree().

Referenced by _initialize_remote().

## ◆ remote_put_command()

static void remote_put_command | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 12107 of file remote.c.

References _, gdb::argv, error(), error_no_arg(), and remote_file_put().

Referenced by _initialize_remote().

## ◆ remote_query_attached()

static int remote_query_attached | ( | int | pid | ) |
| static

Definition at line 1732 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, 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, size, warning(), and xsnprintf().

Referenced by remote_add_inferior().

## ◆ remote_query_supported()

static void remote_query_supported | ( | void |  | ) |
| static

Definition at line 4701 of file remote.c.

References _, AUTO_BOOLEAN_FALSE, remote_state::buf, remote_state::buf_size, protocol_feature::default_support, do_cleanups(), remote_state::explicit_packet_size, free_current_contents(), protocol_feature::func, get_remote_state(), getpkt(), make_cleanup(), memset(), name, cleanup::next, PACKET_DISABLE, PACKET_ENABLE, PACKET_ERROR, PACKET_exec_event_feature, PACKET_fork_event_feature, PACKET_hwbreak_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(), remote_support_xml, warning(), and xrealloc().

Referenced by remote_start_remote().

## ◆ remote_query_supported_append()

static char* remote_query_supported_append | ( | char * | msg,
|  | const char * | append
| ) |  |
| static

Definition at line 4692 of file remote.c.

Referenced by remote_query_supported().

## ◆ remote_rcmd()

static void remote_rcmd | ( | struct target_ops * | self,
|  | const char * | command,
|  | struct ui_file * | outbuf
| ) |  |
| static

Definition at line 10743 of file remote.c.

References _, bin2hex(), remote_state::buf, remote_state::buf_size, error(), fputc_unfiltered(), fromhex(), get_remote_packet_size(), get_remote_state(), getpkt_sane(), putpkt(), QUIT, remote_console_output(), and remote_state::remote_desc.

Referenced by init_remote_ops().

## ◆ remote_read_btrace()

static enum btrace_error remote_read_btrace | ( | struct target_ops * | self,
|  | struct btrace_data * | btrace,
|  | struct btrace_target_info * | tinfo,
|  | enum btrace_read_type | type
| ) |  |
| static

Definition at line 13364 of file remote.c.

References _, BTRACE_ERR_NONE, BTRACE_ERR_UNKNOWN, BTRACE_READ_ALL, BTRACE_READ_DELTA, BTRACE_READ_NEW, current_target, error(), internal_error(), packet_config_support(), PACKET_ENABLE, PACKET_qXfer_btrace, parse_xml_btrace(), remote_protocol_packets, TARGET_OBJECT_BTRACE, and target_read_stralloc().

Referenced by init_remote_ops().

## ◆ remote_read_bytes()

static enum target_xfer_status remote_read_bytes | ( | struct target_ops * | ops,
|  | CORE_ADDR | memaddr,
|  | gdb_byte * | myaddr,
|  | ULONGEST | len,
|  | int | unit_size,
|  | ULONGEST * | xfered_len
| ) |  |
| static

Definition at line 8369 of file remote.c.

References available, gdb_assert, 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 remote_xfer_partial().

## ◆ remote_read_bytes_1()

static enum target_xfer_status remote_read_bytes_1 | ( | CORE_ADDR | memaddr,
|  | gdb_byte * | myaddr,
|  | ULONGEST | len_units,
|  | int | unit_size,
|  | ULONGEST * | xfered_len_units
| ) |  |
| static

Definition at line 8270 of file remote.c.

References remote_state::buf, remote_state::buf_size, get_memory_read_packet_size(), get_remote_state(), getpkt(), hex2bin(), 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().

## ◆ remote_read_description()

static const struct target_desc* remote_read_description | ( | struct target_ops * | target | ) |
| static

Definition at line 11203 of file remote.c.

References target_ops::beneath, remote_g_packet_guess::bytes, inferior_ptid, null_ptid, ptid_equal(), remote_g_packet_data_handle, send_g_packet(), target_gdbarch(), target_has_execution, remote_g_packet_guess::tdesc, target_ops::to_read_description, VEC_empty, and VEC_iterate.

Referenced by init_remote_ops().

## ◆ remote_read_description_p()

static int remote_read_description_p | ( | struct target_ops * | target | ) |
| static

Definition at line 11190 of file remote.c.

References remote_g_packet_data_handle, target_gdbarch(), and VEC_empty.

Referenced by remote_start_remote().

## ◆ remote_read_qxfer()

static enum target_xfer_status remote_read_qxfer | ( | struct target_ops * | ops,
|  | const char * | object_name,
|  | const char * | annex,
|  | gdb_byte * | readbuf,
|  | ULONGEST | offset,
|  | LONGEST | len,
|  | ULONGEST * | xfered_len,
|  | struct packet_config * | packet
| ) |  |
| static

Definition at line 10349 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, error(), remote_state::finished_annex, remote_state::finished_object, remote_state::finished_offset, get_remote_packet_size(), get_remote_state(), getpkt_sane(), offset, packet_config_support(), PACKET_DISABLE, PACKET_OK, packet_ok(), phex_nz(), putpkt(), remote_unescape_input(), TARGET_XFER_E_IO, TARGET_XFER_EOF, TARGET_XFER_OK, and xfree().

Referenced by remote_xfer_partial().

## ◆ remote_region_ok_for_hw_watchpoint()

static int remote_region_ok_for_hw_watchpoint | ( | struct target_ops * | self,
|  | CORE_ADDR | addr,
|  | int | len
| ) |  |
| static

Definition at line 9971 of file remote.c.

References remote_hw_watchpoint_length_limit.

Referenced by init_remote_ops().

## ◆ remote_register_number_and_offset()

int remote_register_number_and_offset | ( | struct gdbarch * | gdbarch,
|  | int | regnum,
|  | int * | pnum,
|  | int * | poffset
| ) |  |

Definition at line 794 of file remote.c.

References gdbarch::data, gdb_assert, gdbarch_num_regs(), map_regcache_remote_table(), packet_reg::pnum, and regnum.

Referenced by regcache::dump(), and tfile_fetch_registers().

## ◆ remote_remove_breakpoint()

static int remote_remove_breakpoint | ( | struct target_ops * | ops,
|  | struct gdbarch * | gdbarch,
|  | struct bp_target_info * | bp_tgt,
|  | enum remove_bp_reason | reason
| ) |  |
| static

Definition at line 9824 of file remote.c.

References remote_state::buf, remote_state::buf_size, 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(), target_gdbarch(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_remove_exec_catchpoint()

static int remote_remove_exec_catchpoint | ( | struct target_ops * | ops,
|  | int | pid
| ) |  |
| static

Definition at line 1711 of file remote.c.

Referenced by init_remote_ops().

## ◆ remote_remove_fork_catchpoint()

static int remote_remove_fork_catchpoint | ( | struct target_ops * | ops,
|  | int | pid
| ) |  |
| static

Definition at line 1671 of file remote.c.

Referenced by init_remote_ops().

## ◆ remote_remove_hw_breakpoint()

static int remote_remove_hw_breakpoint | ( | struct target_ops * | self,
|  | struct gdbarch * | gdbarch,
|  | struct bp_target_info * | bp_tgt
| ) |  |
| static

Definition at line 10139 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, gdbarch_has_global_breakpoints(), get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), internal_error(), 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(), target_gdbarch(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_remove_vfork_catchpoint()

static int remote_remove_vfork_catchpoint | ( | struct target_ops * | ops,
|  | int | pid
| ) |  |
| static

Definition at line 1691 of file remote.c.

Referenced by init_remote_ops().

## ◆ remote_remove_watchpoint()

static int remote_remove_watchpoint | ( | struct target_ops * | self,
|  | CORE_ADDR | addr,
|  | int | len,
|  | enum target_hw_bp_type | type,
|  | struct expression * | cond
| ) |  |
| static

Definition at line 9929 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, gdbarch_has_global_breakpoints(), get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), internal_error(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_Z0, putpkt(), remote_address_masked(), remote_protocol_packets, set_general_process(), target_gdbarch(), watchpoint_to_Z_packet(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_resume()

static void remote_resume | ( | struct target_ops * | ops,
|  | ptid_t | ptid,
|  | int | step,
|  | enum gdb_signal | siggnal
| ) |  |
| static

Definition at line 5697 of file remote.c.

References EXEC_REVERSE, execution_direction, get_remote_state(), get_remote_thread_info(), inferior_ptid, remote_state::last_resume_exec_dir, remote_thread_info::last_resume_sig, remote_thread_info::last_resume_step, minus_one_ptid, notif_client_stop, remote_state::notif_state, ptid_equal(), ptid_is_pid(), remote_notif_process(), remote_resume_with_hc(), remote_resume_with_vcont(), target_async(), target_can_async_p, target_is_non_stop_p(), and remote_state::waiting_for_stop_reply.

Referenced by init_remote_ops().

## ◆ remote_resume_with_hc()

static void remote_resume_with_hc | ( | struct target_ops * | ops,
|  | ptid_t | ptid,
|  | int | step,
|  | enum gdb_signal | siggnal
| ) |  |
| static

Definition at line 5561 of file remote.c.

References _, ALL_NON_EXITED_THREADS, any_thread_ptid, remote_state::buf, error(), EXEC_REVERSE, execution_direction, get_remote_state(), info_verbose, remote_state::last_sent_signal, remote_state::last_sent_step, minus_one_ptid, PACKET_bc, PACKET_bs, PACKET_DISABLE, thread_info::ptid, ptid_equal(), putpkt(), resume_clear_thread_private_info(), set_continue_thread(), tohex(), and warning().

Referenced by remote_resume().

## ◆ remote_resume_with_vcont()

static int remote_resume_with_vcont | ( | ptid_t | ptid,
|  | int | step,
|  | enum gdb_signal | siggnal
| ) |  |
| static

Definition at line 5620 of file remote.c.

References _, append_pending_thread_resumptions(), append_resumption(), remote_state::buf, remote_state::buf_size, error(), EXEC_REVERSE, execution_direction, gdb_assert, get_remote_packet_size(), get_remote_state(), getpkt(), inferior_ptid, magic_null_ptid, minus_one_ptid, PACKET_DISABLE, PACKET_SUPPORT_UNKNOWN, PACKET_vCont, ptid_equal(), ptid_is_pid(), putpkt(), remote_vcont_probe(), target_is_non_stop_p(), and xsnprintf().

Referenced by remote_resume().

## ◆ remote_save_trace_data()

static int remote_save_trace_data | ( | struct target_ops * | self,
|  | const char * | filename
| ) |  |
| static

Definition at line 12818 of file remote.c.

References _, bin2hex(), remote_state::buf, error(), get_remote_packet_size(), get_remote_state(), putpkt(), and remote_get_noisy_reply().

Referenced by init_remote_ops().

## ◆ remote_search_memory()

static int remote_search_memory | ( | struct target_ops * | ops,
|  | CORE_ADDR | start_addr,
|  | ULONGEST | search_space_len,
|  | const gdb_byte * | pattern,
|  | ULONGEST | pattern_len,
|  | CORE_ADDR * | found_addrp
| ) |  |
| static

Definition at line 10651 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, error(), 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, phex_nz(), putpkt_binary(), remote_escape_output(), remote_protocol_packets, set_general_process(), simple_search_memory(), target_gdbarch(), and unpack_varlen_hex().

Referenced by init_remote_ops().

## ◆ remote_send()

static void remote_send | ( | char ** | buf,
|  | long * | sizeof_buf_p
| ) |  |
| static

Definition at line 8616 of file remote.c.

References _, remote_state::buf, error(), getpkt(), and putpkt().

Referenced by send_g_packet().

## ◆ remote_send_printf()

static enum packet_result static enum packet_result remote_send_printf | ( | const char * | format,
|  |  | ...
| ) |  |
| static

Definition at line 8436 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, error(), get_remote_packet_size(), get_remote_state(), getpkt(), internal_error(), packet_check_result(), and putpkt().

Referenced by remote_flash_done(), and remote_flash_erase().

## ◆ remote_serial_open()

static struct serial* remote_serial_open | ( | const char * | name | ) |
| static

Definition at line 4425 of file remote.c.

References _, name, serial_open(), startswith(), and warning().

Referenced by remote_open_1().

## ◆ remote_serial_quit_handler()

static void remote_serial_quit_handler | ( | void |  | ) |
| static

Definition at line 4893 of file remote.c.

References _, check_quit_flag(), remote_state::ctrlc_pending_p, get_remote_state(), remote_state::got_ctrlc_during_io, inferior_ptid, 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(), and remote_serial_write().

## ◆ remote_serial_write()

static void remote_serial_write | ( | const char * | str,
|  | int | len
| ) |  |
| static

Definition at line 8591 of file remote.c.

References _, get_remote_state(), remote_state::got_ctrlc_during_io, make_scoped_restore(), 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(), remote_start_remote(), and send_interrupt_sequence().

## ◆ remote_set_circular_trace_buffer()

static void remote_set_circular_trace_buffer | ( | struct target_ops * | self,
|  | int | val
| ) |  |
| static

Definition at line 12916 of file remote.c.

References _, remote_state::buf, error(), get_remote_packet_size(), get_remote_state(), putpkt(), remote_get_noisy_reply(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_set_disconnected_tracing()

static void remote_set_disconnected_tracing | ( | struct target_ops * | self,
|  | int | val
| ) |  |
| static

Definition at line 12884 of file remote.c.

References _, remote_state::buf, error(), get_remote_packet_size(), get_remote_state(), PACKET_DisconnectedTracing_feature, PACKET_ENABLE, putpkt(), remote_get_noisy_reply(), warning(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_set_permissions()

void remote_set_permissions | ( | struct target_ops * | self | ) |
| static

Definition at line 4454 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, 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, putpkt(), warning(), and xsnprintf().

Referenced by init_remote_ops(), and remote_start_remote().

## ◆ remote_set_syscall_catchpoint()

static int remote_set_syscall_catchpoint | ( | struct target_ops * | self,
|  | int | pid,
|  | bool | needed,
|  | int | any_count,
|  | gdb::array_view< const int > | syscall_counts
| ) |  |
| static

Definition at line 2026 of file remote.c.

References remote_state::buf, remote_state::buf_size, fprintf_unfiltered(), gdb_stdlog, get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_DISABLE, PACKET_OK, packet_ok(), PACKET_QCatchSyscalls, pid, putpkt(), remote_debug, remote_protocol_packets, gdb::array_view< T >::size(), string, and string_appendf().

Referenced by init_remote_ops().

## ◆ remote_set_trace_buffer_size()

static void remote_set_trace_buffer_size | ( | struct target_ops * | self,
|  | LONGEST | val
| ) |  |
| static

Definition at line 12977 of file remote.c.

References _, remote_state::buf, gdb_assert, get_remote_packet_size(), get_remote_state(), hexnumstr(), PACKET_DISABLE, PACKET_OK, packet_ok(), PACKET_QTBuffer_size, putpkt(), remote_get_noisy_reply(), remote_protocol_packets, warning(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_set_trace_notes()

static int remote_set_trace_notes | ( | struct target_ops * | self,
|  | const char * | user,
|  | const char * | notes,
|  | const char * | stop_notes
| ) |  |
| static

Definition at line 13008 of file remote.c.

References _, bin2hex(), remote_state::buf, error(), get_remote_packet_size(), get_remote_state(), putpkt(), remote_get_noisy_reply(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_start_remote()

static void remote_start_remote | ( | int | from_tty,
|  | struct target_ops * | target,
|  | int | extended_p
| ) |  |
| static

Definition at line 3996 of file remote.c.

References _, add_current_inferior_and_thread(), auto_solib_add, breakpoints_should_be_inserted_now(), remote_state::buf, remote_state::buf_size, remote_state::cached_wait_status, current_trace_status(), error(), fprintf_unfiltered(), gdb_assert, gdb_stdlog, gdbarch_has_global_solist(), gdbarch_target_desc(), get_current_thread(), get_offsets(), get_remote_state(), getpkt(), notif_client::id, inferior_ptid, init_wait_for_inferior(), insert_breakpoints(), interrupt_on_connect, merge_uploaded_trace_state_variables(), merge_uploaded_tracepoints(), minus_one_ptid, remote_state::noack_mode, notif_client_stop, remote_state::notif_state, null_ptid, packet_config_support(), PACKET_DISABLE, PACKET_ENABLE, PACKET_OK, packet_ok(), PACKET_QAllow, PACKET_QNonStop, PACKET_QStartNoAckMode, PACKET_vFile_setfs, remote_notif_state::pending_event, printf_filtered(), process_initial_stop_replies(), thread_info::ptid, ptid_equal(), putpkt(), QUIT, remote_btrace_maybe_reopen(), remote_check_symbols(), remote_debug, remote_get_trace_status(), remote_notif_get_pending_events(), remote_notif_parse(), remote_pass_signals(), remote_protocol_packets, remote_query_supported(), remote_read_description_p(), remote_serial_write(), remote_set_permissions(), remote_update_thread_list(), remote_upload_trace_state_variables(), remote_upload_tracepoints(), send_interrupt_sequence(), set_continue_thread(), solib_add(), start_remote(), remote_state::starting_up, packet_config::support, symfile_objfile, target_async(), target_can_async_p, target_clear_description(), target_find_description(), target_gdbarch(), target_has_execution, target_is_non_stop_p(), target_update_thread_list(), thread_count(), thread_list, update_address_spaces(), and update_signals_program_target().

Referenced by remote_open_1().

## ◆ remote_static_tracepoint_marker_at()

static int remote_static_tracepoint_marker_at | ( | struct target_ops * | self,
|  | CORE_ADDR | addr,
|  | struct static_tracepoint_marker * | marker
| ) |  |
| static

Definition at line 3384 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, error(), get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), parse_static_tracepoint_marker_definition(), putpkt(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_stop()

static void remote_stop | ( | struct target_ops * | self,
|  | ptid_t | ptid
| ) |  |
| static

Definition at line 6152 of file remote.c.

References fprintf_unfiltered(), gdb_stdlog, remote_debug, remote_interrupt_as(), remote_stop_ns(), and target_is_non_stop_p().

Referenced by init_remote_ops().

## ◆ remote_stop_ns()

static void remote_stop_ns | ( | ptid_t | ptid | ) |
| static

Definition at line 6052 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, error(), get_remote_packet_size(), get_remote_state(), getpkt(), minus_one_ptid, PACKET_SUPPORT_UNKNOWN, PACKET_vCont, peek_stop_reply(), ptid_build(), ptid_equal(), ptid_get_pid(), ptid_is_pid(), putpkt(), remote_multi_process_p(), remote_vcont_probe(), remote_state::supports_vCont, vCont_action_support::t, target_pid_to_str(), write_ptid(), and xsnprintf().

Referenced by remote_stop().

## ◆ remote_stopped_by_hw_breakpoint()

static int remote_stopped_by_hw_breakpoint | ( | struct target_ops * | ops | ) |
| static

Definition at line 10035 of file remote.c.

References get_remote_thread_info(), inferior_thread(), thread_info::priv, and TARGET_STOPPED_BY_HW_BREAKPOINT.

Referenced by init_remote_ops().

## ◆ remote_stopped_by_sw_breakpoint()

static int remote_stopped_by_sw_breakpoint | ( | struct target_ops * | ops | ) |
| static

Definition at line 10014 of file remote.c.

References get_remote_thread_info(), inferior_thread(), thread_info::priv, and TARGET_STOPPED_BY_SW_BREAKPOINT.

Referenced by init_remote_ops().

## ◆ remote_stopped_by_watchpoint()

static int remote_stopped_by_watchpoint | ( | struct target_ops * | ops | ) |
| static

Definition at line 10054 of file remote.c.

References get_remote_thread_info(), inferior_thread(), thread_info::priv, and TARGET_STOPPED_BY_WATCHPOINT.

Referenced by init_remote_ops().

## ◆ remote_stopped_data_address()

static int remote_stopped_data_address | ( | struct target_ops * | target,
|  | CORE_ADDR * | addr_p
| ) |  |
| static

Definition at line 10064 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.

Referenced by init_remote_ops().

## ◆ remote_store_registers()

static void remote_store_registers | ( | struct target_ops * | ops,
|  | struct regcache * | regcache,
|  | int | regnum
| ) |  |
| static

Definition at line 7851 of file remote.c.

References regcache::arch(), gdb_assert, gdbarch_num_regs(), get_remote_arch_state(), packet_reg::in_g_packet, packet_reg_from_regnum(), regcache_get_ptid(), regnum, remote_arch_state::regs, set_general_thread(), set_remote_traceframe(), store_register_using_P(), and store_registers_using_G().

Referenced by init_remote_ops().

## ◆ remote_supported_packet()

static void remote_supported_packet | ( | const struct protocol_feature * | feature,
|  | enum packet_support | support,
|  | const char * | argument
| ) |  |
| static

Definition at line 4502 of file remote.c.

References _, protocol_feature::name, protocol_feature::packet, remote_protocol_packets, packet_config::support, and warning().

## ◆ remote_supports_btrace()

static int remote_supports_btrace | ( | struct target_ops * | self,
|  | enum btrace_format | format
| ) |  |
| static

Definition at line 13104 of file remote.c.

References _, BTRACE_FORMAT_BTS, BTRACE_FORMAT_NONE, BTRACE_FORMAT_PT, internal_error(), PACKET_ENABLE, PACKET_Qbtrace_bts, PACKET_Qbtrace_off, PACKET_Qbtrace_pt, and PACKET_qXfer_btrace.

Referenced by init_remote_ops().

## ◆ remote_supports_cond_breakpoints()

static int remote_supports_cond_breakpoints | ( | struct target_ops * | self | ) |
| static

Definition at line 12189 of file remote.c.

References PACKET_ConditionalBreakpoints, and PACKET_ENABLE.

Referenced by init_remote_ops(), remote_insert_breakpoint(), and remote_insert_hw_breakpoint().

## ◆ remote_supports_cond_tracepoints()

static int remote_supports_cond_tracepoints | ( | void |  | ) |
| static

Definition at line 12183 of file remote.c.

References PACKET_ConditionalTracepoints, and PACKET_ENABLE.

Referenced by remote_download_tracepoint().

## ◆ remote_supports_disable_randomization()

static int remote_supports_disable_randomization | ( | struct target_ops * | self | ) |
| static

Definition at line 12168 of file remote.c.

Referenced by init_remote_ops().

## ◆ remote_supports_enable_disable_tracepoint()

static int remote_supports_enable_disable_tracepoint | ( | struct target_ops * | self | ) |
| static

Definition at line 12213 of file remote.c.

References PACKET_ENABLE, and PACKET_EnableDisableTracepoints_feature.

Referenced by init_remote_ops().

## ◆ remote_supports_fast_tracepoints()

static int remote_supports_fast_tracepoints | ( | void |  | ) |
| static

Definition at line 12195 of file remote.c.

References PACKET_ENABLE, and PACKET_FastTracepoints.

Referenced by remote_download_tracepoint().

## ◆ remote_supports_install_in_trace()

static int remote_supports_install_in_trace | ( | void |  | ) |
| static

Definition at line 12207 of file remote.c.

References PACKET_ENABLE, and PACKET_InstallInTrace.

Referenced by remote_can_download_tracepoint().

## ◆ remote_supports_multi_process()

static int remote_supports_multi_process | ( | struct target_ops * | self | ) |
| static

Definition at line 12175 of file remote.c.

References get_remote_state(), and remote_multi_process_p().

Referenced by init_remote_ops().

## ◆ remote_supports_non_stop()

static int remote_supports_non_stop | ( | struct target_ops * | self | ) |
| static

Definition at line 12162 of file remote.c.

Referenced by init_remote_ops().

## ◆ remote_supports_static_tracepoints()

static int remote_supports_static_tracepoints | ( | void |  | ) |
| static

Definition at line 12201 of file remote.c.

References PACKET_ENABLE, and PACKET_StaticTracepoints.

Referenced by remote_download_tracepoint().

## ◆ remote_supports_stopped_by_hw_breakpoint()

static int remote_supports_stopped_by_hw_breakpoint | ( | struct target_ops * | ops | ) |
| static

Definition at line 10048 of file remote.c.

References PACKET_ENABLE, and PACKET_hwbreak_feature.

Referenced by init_remote_ops().

## ◆ remote_supports_stopped_by_sw_breakpoint()

static int remote_supports_stopped_by_sw_breakpoint | ( | struct target_ops * | ops | ) |
| static

Definition at line 10027 of file remote.c.

References PACKET_ENABLE, and PACKET_swbreak_feature.

Referenced by init_remote_ops().

## ◆ remote_supports_string_tracing()

static int remote_supports_string_tracing | ( | struct target_ops * | self | ) |
| static

Definition at line 12220 of file remote.c.

References PACKET_ENABLE, and PACKET_tracenz_feature.

Referenced by init_remote_ops().

## ◆ remote_teardown_btrace()

static void remote_teardown_btrace | ( | struct target_ops * | self,
|  | struct btrace_target_info * | tinfo
| ) |  |
| static

Definition at line 13354 of file remote.c.

References xfree().

Referenced by init_remote_ops().

## ◆ remote_terminal_inferior()

static void remote_terminal_inferior | ( | struct target_ops * | self | ) |
| static

Definition at line 6232 of file remote.c.

Referenced by init_remote_ops().

## ◆ remote_terminal_ours()

static void remote_terminal_ours | ( | struct target_ops * | self | ) |
| static

Definition at line 6240 of file remote.c.

Referenced by init_remote_ops(), and remote_close().

## ◆ remote_thread_alive()

static int remote_thread_alive | ( | struct target_ops * | ops,
|  | ptid_t | ptid
| ) |  |
| static

Definition at line 2243 of file remote.c.

References remote_state::buf, remote_state::buf_size, get_remote_packet_size(), get_remote_state(), getpkt(), putpkt(), remote_thread_always_alive(), and write_ptid().

Referenced by init_remote_ops().

## ◆ remote_thread_always_alive()

static int remote_thread_always_alive | ( | struct target_ops * | ops,
|  | ptid_t | ptid
| ) |  |
| static

Definition at line 2224 of file remote.c.

References magic_null_ptid, ptid_equal(), ptid_get_lwp(), and ptid_get_pid().

Referenced by remote_thread_alive(), and remote_update_thread_list().

## ◆ remote_thread_events()

static void remote_thread_events | ( | struct target_ops * | ops,
|  | int | enable
| ) |  |
| static

Definition at line 13782 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, enable, error(), get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_QThreadEvents, PACKET_UNKNOWN, putpkt(), remote_protocol_packets, size, warning(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_thread_handle_to_thread_info()

static struct thread_info* remote_thread_handle_to_thread_info | ( | struct target_ops * | ops,
|  | const gdb_byte * | thread_handle,
|  | int | handle_len,
|  | struct inferior * | inf
| ) |  |
| static

Definition at line 13499 of file remote.c.

References _, ALL_NON_EXITED_THREADS, error(), get_remote_thread_info(), thread_info::inf, and thread_info::priv.

Referenced by init_remote_ops().

## ◆ remote_thread_name()

static const char* remote_thread_name | ( | struct target_ops * | ops,
|  | struct thread_info * | info
| ) |  |
| static

Definition at line 2268 of file remote.c.

References get_remote_thread_info(), name, remote_thread_info::name, thread_info::priv, and string.

Referenced by init_remote_ops().

## ◆ remote_threadlist_iterator()

static int remote_threadlist_iterator | ( | rmt_thread_action | stepfunction,
|  | void * | context,
|  | int | looplimit
| ) |  |
| static

Definition at line 2907 of file remote.c.

References _, copy_threadref(), get_remote_state(), MAXTHREADLISTRESULTS, remote_state::nextthread, remote_get_threadlist(), remote_state::resultthreadlist, and warning().

Referenced by remote_get_threads_with_ql().

## ◆ remote_threads_extra_info()

static const char* remote_threads_extra_info | ( | struct target_ops * | self,
|  | struct thread_info * | tp
| ) |  |
| static

Definition at line 3300 of file remote.c.

References _, gdb_ext_thread_info::active, remote_state::buf, remote_state::buf_size, gdb_ext_thread_info::display, remote_thread_info::extra, find_thread_ptid(), get_remote_packet_size(), get_remote_state(), get_remote_thread_info(), getpkt(), hex2bin(), int_to_threadref(), internal_error(), magic_null_ptid, gdb_ext_thread_info::more_display, PACKET_ENABLE, PACKET_qXfer_threads, thread_info::priv, thread_info::ptid, ptid_equal(), ptid_get_lwp(), ptid_get_pid(), putpkt(), remote_state::remote_desc, remote_get_threadinfo(), gdb_ext_thread_info::shortname, string, TAG_DISPLAY, TAG_EXISTS, TAG_MOREDISPLAY, TAG_THREADID, TAG_THREADNAME, remote_state::use_threadextra_query, write_ptid(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_trace_find()

static int remote_trace_find | ( | struct target_ops * | self,
|  | enum trace_find_type | type,
|  | int | num,
|  | CORE_ADDR | addr1,
|  | CORE_ADDR | addr2,
|  | int * | tpp
| ) |  |
| static

Definition at line 12710 of file remote.c.

References _, remote_state::buf, error(), get_remote_packet_size(), get_remote_state(), phex_nz(), putpkt(), remote_get_noisy_reply(), remote_state::remote_traceframe_number, set_remote_traceframe(), tfind_number, tfind_outside, tfind_pc, tfind_range, tfind_tp, and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_trace_init()

static void remote_trace_init | ( | struct target_ops * | self | ) |
| static

Definition at line 12232 of file remote.c.

References _, remote_state::buf, error(), get_remote_state(), putpkt(), and remote_get_noisy_reply().

Referenced by init_remote_ops().

## ◆ remote_trace_set_readonly_regions()

static void remote_trace_set_readonly_regions | ( | struct target_ops * | self | ) |
| static

Definition at line 12534 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, exec_bfd, get_remote_state(), getpkt(), offset, PACKET_ENABLE, PACKET_qXfer_traceframe_info, putpkt(), size, warning(), and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_trace_start()

static void remote_trace_start | ( | struct target_ops * | self | ) |
| static

Definition at line 12585 of file remote.c.

References _, remote_state::buf, error(), get_remote_state(), putpkt(), and remote_get_noisy_reply().

Referenced by init_remote_ops().

## ◆ remote_trace_stop()

static void remote_trace_stop | ( | struct target_ops * | self | ) |
| static

Definition at line 12697 of file remote.c.

References _, remote_state::buf, error(), get_remote_state(), putpkt(), and remote_get_noisy_reply().

Referenced by init_remote_ops().

## ◆ remote_traceframe_info()

static traceframe_info_up remote_traceframe_info | ( | struct target_ops * | self | ) |
| static

Definition at line 12931 of file remote.c.

References current_target, parse_traceframe_info(), TARGET_OBJECT_TRACEFRAME_INFO, and target_read_stralloc().

Referenced by init_remote_ops().

## ◆ remote_unpack_thread_info_response()

static int remote_unpack_thread_info_response | ( | char * | pkt,
|  | threadref * | expectedref,
|  | struct gdb_ext_thread_info * | info
| ) |  |
| static

Definition at line 2685 of file remote.c.

References _, gdb_ext_thread_info::active, remote_state::buf_size, copy_threadref(), gdb_ext_thread_info::display, get_remote_state(), gdb_ext_thread_info::more_display, gdb_ext_thread_info::shortname, stub_unpack_int(), TAG_DISPLAY, TAG_EXISTS, TAG_MOREDISPLAY, TAG_THREADID, TAG_THREADNAME, gdb_ext_thread_info::threadid, threadmatch(), unpack_byte(), unpack_int(), unpack_string(), unpack_threadid(), and warning().

Referenced by remote_get_threadinfo().

## ◆ remote_unpush_and_throw()

static void remote_unpush_and_throw | ( | void |  | ) |
| static

Definition at line 4931 of file remote.c.

References _, remote_unpush_target(), TARGET_CLOSE_ERROR, and throw_error().

Referenced by remote_serial_quit_handler().

## ◆ remote_unpush_target()

static void remote_unpush_target | ( | void |  | ) |
| static

Definition at line 4925 of file remote.c.

References pop_all_targets_at_and_above(), and process_stratum.

Referenced by getpkt_or_notif_sane_1(), interrupt_query(), readchar(), remote_open_1(), remote_unpush_and_throw(), and unpush_and_perror().

## ◆ remote_update_thread_list()

static void remote_update_thread_list | ( | struct target_ops * | ops | ) |
| static

Definition at line 3214 of file remote.c.

References ALL_THREADS_SAFE, threads_listing_context::contains_thread(), remote_thread_info::core, thread_item::core, delete_thread(), thread_info::executing, remote_thread_info::extra, thread_item::extra, get_remote_thread_info(), inferior_ptid, threads_listing_context::items, remote_thread_info::name, thread_item::name, null_ptid, prune_threads(), thread_info::ptid, 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(), remote_thread_info::thread_handle, and thread_item::thread_handle.

Referenced by extended_remote_attach(), init_remote_ops(), and remote_start_remote().

## ◆ remote_upload_trace_state_variables()

static int remote_upload_trace_state_variables | ( | struct target_ops * | self,
|  | struct uploaded_tsv ** | utsvp
| ) |  |
| static

Definition at line 13882 of file remote.c.

References remote_state::buf, remote_state::buf_size, get_remote_state(), getpkt(), parse_tsv_definition(), and putpkt().

Referenced by init_remote_ops(), and remote_start_remote().

## ◆ remote_upload_tracepoints()

static int remote_upload_tracepoints | ( | struct target_ops * | self,
|  | struct uploaded_tp ** | utpp
| ) |  |
| static

Definition at line 13861 of file remote.c.

References remote_state::buf, remote_state::buf_size, get_remote_state(), getpkt(), parse_tracepoint_definition(), and putpkt().

Referenced by init_remote_ops(), and remote_start_remote().

## ◆ remote_use_agent()

static int remote_use_agent | ( | struct target_ops * | self,
|  | int | use
| ) |  |
| static

Definition at line 13055 of file remote.c.

References remote_state::buf, remote_state::buf_size, get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_DISABLE, PACKET_QAgent, putpkt(), use_agent, and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_vcont_probe()

static void remote_vcont_probe | ( | struct remote_state * | rs | ) |
| static

Definition at line 5392 of file remote.c.

References remote_state::buf, remote_state::buf_size, getpkt(), packet_ok(), PACKET_vCont, putpkt(), vCont_action_support::r, remote_protocol_packets, vCont_action_support::s, vCont_action_support::S, startswith(), remote_state::supports_vCont, and vCont_action_support::t.

Referenced by remote_can_do_single_step(), remote_resume_with_vcont(), remote_stop_ns(), and set_range_stepping().

## ◆ remote_verify_memory()

static int remote_verify_memory | ( | struct target_ops * | ops,
|  | const gdb_byte * | data,
|  | CORE_ADDR | lma,
|  | ULONGEST | size
| ) |  |
| static

Definition at line 10181 of file remote.c.

References remote_state::buf, remote_state::buf_size, fromhex(), 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, target_has_execution, and xsnprintf().

Referenced by init_remote_ops().

## ◆ remote_vfork_event_p()

static int remote_vfork_event_p | ( | struct remote_state * | rs | ) |
| static

Definition at line 1643 of file remote.c.

References PACKET_ENABLE, and PACKET_vfork_event_feature.

Referenced by remote_follow_fork(), and remote_insert_vfork_catchpoint().

## ◆ remote_vkill()

static int remote_vkill | ( | int | pid,
|  | struct remote_state * | rs
| ) |  |
| static

Definition at line 9333 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, get_remote_packet_size(), getpkt(), internal_error(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_vKill, pid, putpkt(), remote_protocol_packets, and xsnprintf().

Referenced by kill_child_of_pending_fork(), kill_new_fork_children(), and remote_kill().

## ◆ remote_wait()

static ptid_t remote_wait | ( | struct target_ops * | ops,
|  | ptid_t | ptid,
|  | struct target_waitstatus * | status,
|  | int | options
| ) |  |
| static

Definition at line 7443 of file remote.c.

References mark_async_event_handler(), stop_reply::ptid, QUEUE_is_empty, remote_async_inferior_event_token, remote_wait_as(), remote_wait_ns(), status, target_is_async_p, and target_is_non_stop_p().

Referenced by init_remote_ops().

## ◆ remote_wait_as()

static ptid_t remote_wait_as | ( | ptid_t | ptid,
|  | struct target_waitstatus * | status,
|  | int | options
| ) |  |
| static

Definition at line 7296 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, remote_state::cached_wait_status, remote_state::ctrlc_pending_p, gdb_signal_to_name(), get_remote_state(), getpkt_or_notif_sane(), target_terminal::inferior(), inferior_ptid, remote_state::last_sent_signal, remote_state::last_sent_step, minus_one_ptid, notif_client_stop, null_ptid, target_terminal::ours_for_output(), printf_filtered(), process_stop_reply(), stop_reply::ptid, ptid_equal(), putpkt(), queued_stop_reply(), record_currthread(), remote_console_output(), remote_fileio_request(), remote_notif_parse(), stop_reply::rs, status, TARGET_WAITKIND_EXITED, TARGET_WAITKIND_IGNORE, TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_SIGNALLED, TARGET_WAITKIND_STOPPED, TARGET_WNOHANG, wait_forever_enabled_p, remote_state::waiting_for_stop_reply, and warning().

Referenced by remote_wait().

## ◆ remote_wait_ns()

static ptid_t remote_wait_ns | ( | ptid_t | ptid,
|  | struct target_waitstatus * | status,
|  | int | options
| ) |  |
| static

Definition at line 7237 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, get_remote_state(), getpkt_or_notif_sane(), notif_client::id, minus_one_ptid, notif_client_stop, remote_state::notif_state, remote_notif_state::pending_event, process_stop_reply(), stop_reply::ptid, queued_stop_reply(), remote_console_output(), remote_notif_get_pending_events(), stop_reply::rs, status, TARGET_WAITKIND_IGNORE, TARGET_WNOHANG, and warning().

Referenced by remote_wait().

## ◆ remote_watchpoint_addr_within_range()

static int remote_watchpoint_addr_within_range | ( | struct target_ops * | target,
|  | CORE_ADDR | addr,
|  | CORE_ADDR | start,
|  | int | length
| ) |  |
| static

Definition at line 9919 of file remote.c.

References remote_address_masked().

Referenced by init_remote_ops().

## ◆ remote_write_bytes()

static enum target_xfer_status remote_write_bytes | ( | CORE_ADDR | memaddr,
|  | const gdb_byte * | myaddr,
|  | ULONGEST | len,
|  | int | unit_size,
|  | ULONGEST * | xfered_len
| ) |  |
| static

Definition at line 8227 of file remote.c.

References _, check_binary_download(), internal_error(), PACKET_DISABLE, PACKET_ENABLE, PACKET_SUPPORT_UNKNOWN, PACKET_X, and remote_write_bytes_aux().

Referenced by remote_xfer_partial().

## ◆ remote_write_bytes_aux()

static enum 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
| ) |  |
| static

Definition at line 8064 of file remote.c.

References _, align_for_efficient_write(), bin2hex(), remote_state::buf, remote_state::buf_size, get_memory_write_packet_size(), get_remote_state(), getpkt(), hexnumlen(), hexnumnstr(), hexnumstr(), internal_error(), putpkt_binary(), remote_address_masked(), REMOTE_ALIGN_WRITES, remote_escape_output(), TARGET_XFER_E_IO, TARGET_XFER_EOF, and TARGET_XFER_OK.

Referenced by remote_flash_write(), and remote_write_bytes().

## ◆ remote_write_qxfer()

static enum target_xfer_status remote_write_qxfer | ( | struct target_ops * | ops,
|  | const char * | object_name,
|  | const char * | annex,
|  | const gdb_byte * | writebuf,
|  | ULONGEST | offset,
|  | LONGEST | len,
|  | ULONGEST * | xfered_len,
|  | struct packet_config * | packet
| ) |  |
| static

Definition at line 10306 of file remote.c.

References remote_state::buf, remote_state::buf_size, get_memory_write_packet_size(), get_remote_state(), getpkt_sane(), offset, packet_config_support(), PACKET_DISABLE, PACKET_OK, packet_ok(), phex_nz(), putpkt_binary(), remote_escape_output(), TARGET_XFER_E_IO, TARGET_XFER_EOF, TARGET_XFER_OK, and unpack_varlen_hex().

Referenced by remote_xfer_partial().

## ◆ remote_xfer_live_readonly_partial()

static enum target_xfer_status remote_xfer_live_readonly_partial | ( | struct target_ops * | ops,
|  | gdb_byte * | readbuf,
|  | ULONGEST | memaddr,
|  | ULONGEST | len,
|  | int | unit_size,
|  | ULONGEST * | xfered_len
| ) |  |
| static

Definition at line 8317 of file remote.c.

References target_section::addr, target_section::endaddr, remote_read_bytes_1(), target_section_table::sections, target_get_section_table(), target_section_by_addr(), TARGET_XFER_EOF, and target_section::the_bfd_section.

Referenced by remote_read_bytes().

## ◆ remote_xfer_partial()

static enum target_xfer_status remote_xfer_partial | ( | struct target_ops * | ops,
|  | enum target_object | object,
|  | const char * | annex,
|  | gdb_byte * | readbuf,
|  | const gdb_byte * | writebuf,
|  | ULONGEST | offset,
|  | ULONGEST | len,
|  | ULONGEST * | xfered_len
| ) |  |
| static

Definition at line 10430 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, error(), gdb_assert, gdbarch_addressable_memory_unit_size(), get_remote_packet_size(), get_remote_state(), getpkt(), inferior_ptid, offset, 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_spu_read, PACKET_qXfer_spu_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_SPU, TARGET_OBJECT_STATIC_TRACE_DATA, TARGET_OBJECT_THREADS, TARGET_OBJECT_TRACEFRAME_INFO, TARGET_XFER_E_IO, TARGET_XFER_EOF, and TARGET_XFER_OK.

Referenced by init_remote_ops().

## ◆ remove_child_of_pending_fork()

static int remove_child_of_pending_fork | ( | QUEUE(stop_reply_p) * | q,
|  | QUEUE_ITER(stop_reply_p) * | iter,
|  | stop_reply_p | event,
|  | void * | data
| ) |  |
| static

Definition at line 6445 of file remote.c.

References if(), queue_iter_param::input, target_waitstatus::kind, target_waitstatus::related_pid, threads_listing_context::remove_thread(), TARGET_WAITKIND_FORKED, TARGET_WAITKIND_THREAD_EXITED, TARGET_WAITKIND_VFORKED, target_waitstatus::value, and stop_reply::ws.

Referenced by remove_new_fork_children().

## ◆ remove_new_fork_children()

static void remove_new_fork_children | ( | struct threads_listing_context * | context | ) |
| static

Definition at line 6469 of file remote.c.

References ALL_NON_EXITED_THREADS, queue_iter_param::input, is_pending_fork_parent(), notif_client_stop, queue_iter_param::output, pid, thread_info::ptid, QUEUE_iterate, target_waitstatus::related_pid, remote_notif_get_pending_events(), remove_child_of_pending_fork(), threads_listing_context::remove_thread(), thread_pending_fork_status(), and target_waitstatus::value.

Referenced by remote_update_thread_list().

## ◆ remove_stop_reply_for_inferior()

static int remove_stop_reply_for_inferior | ( | QUEUE(stop_reply_p) * | q,
|  | QUEUE_ITER(stop_reply_p) * | iter,
|  | stop_reply_p | event,
|  | void * | data
| ) |  |
| static

Definition at line 6550 of file remote.c.

References if(), queue_iter_param::input, inf::pid, stop_reply::ptid, ptid_get_pid(), QUEUE_remove_elem, and stop_reply_xfree().

Referenced by discard_pending_stop_replies().

## ◆ remove_stop_reply_of_remote_state()

static int remove_stop_reply_of_remote_state | ( | QUEUE(stop_reply_p) * | q,
|  | QUEUE_ITER(stop_reply_p) * | iter,
|  | stop_reply_p | event,
|  | void * | data
| ) |  |
| static

Definition at line 6603 of file remote.c.

References if(), queue_iter_param::input, QUEUE_remove_elem, stop_reply::rs, and stop_reply_xfree().

Referenced by discard_pending_stop_replies_in_queue().

## ◆ reset_all_packet_configs_support()

static void reset_all_packet_configs_support | ( | void |  | ) |
| static

Definition at line 4331 of file remote.c.

References PACKET_MAX, PACKET_SUPPORT_UNKNOWN, and remote_protocol_packets.

Referenced by remote_open_1().

## ◆ resume_clear_thread_private_info()

static void resume_clear_thread_private_info | ( | struct thread_info * | thread | ) |
| static

Definition at line 5524 of file remote.c.

References get_remote_thread_info(), thread_info::priv, and TARGET_STOPPED_BY_NO_REASON.

Referenced by append_pending_thread_resumptions(), and remote_resume_with_hc().

## ◆ send_environment_packet()

static void send_environment_packet | ( | struct remote_state * | rs,
|  | const char * | action,
|  | const char * | packet,
|  | const char * | value
| ) |  |
| static

Definition at line 9544 of file remote.c.

References _, bin2hex(), remote_state::buf, remote_state::buf_size, get_remote_packet_size(), getpkt(), putpkt(), string, warning(), and xsnprintf().

Referenced by extended_remote_environment_support().

## ◆ send_g_packet()

static int send_g_packet | ( | void |  | ) |
| static

Definition at line 7528 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, error(), fprintf_unfiltered(), gdb_stdlog, get_remote_packet_size(), get_remote_state(), getpkt(), remote_debug, remote_send(), and xsnprintf().

Referenced by fetch_registers_using_g(), and remote_read_description().

## ◆ send_interrupt_sequence()

static void send_interrupt_sequence | ( | void |  | ) |
| static

Definition at line 3682 of file remote.c.

References _, get_remote_state(), internal_error(), 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 remote_start_remote().

## ◆ set_continue_thread()

static void set_continue_thread | ( | ptid_t | ptid | ) |
| static

Definition at line 2190 of file remote.c.

References set_thread().

Referenced by remote_resume_with_hc(), and remote_start_remote().

## ◆ set_general_process()

static void set_general_process | ( | void |  | ) |
| static

Definition at line 2205 of file remote.c.

References remote_state::general_thread, get_remote_state(), inferior_ptid, ptid_get_pid(), remote_multi_process_p(), and set_general_thread().

Referenced by compare_sections_command(), remote_check_symbols(), remote_get_min_fast_tracepoint_insn_len(), remote_insert_breakpoint(), remote_insert_hw_breakpoint(), remote_insert_watchpoint(), remote_remove_breakpoint(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_search_memory(), and remote_verify_memory().

## ◆ set_general_thread()

static void set_general_thread | ( | ptid_t | ptid | ) |
| static

Definition at line 2184 of file remote.c.

References set_thread().

Referenced by remote_btrace_maybe_reopen(), remote_disable_btrace(), remote_enable_btrace(), remote_fetch_registers(), remote_store_registers(), remote_xfer_partial(), and set_general_process().

## ◆ set_memory_packet_size()

static void set_memory_packet_size | ( | const char * | args,
|  | struct memory_packet_config * | config
| ) |  |
| static

Definition at line 1077 of file remote.c.

References _, DEFAULT_MAX_MEMORY_PACKET_SIZE, error(), memory_packet_config::fixed_p, memory_packet_config::name, query(), size, and memory_packet_config::size.

Referenced by set_memory_read_packet_size(), and set_memory_write_packet_size().

## ◆ set_memory_read_packet_size()

static void set_memory_read_packet_size | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 1161 of file remote.c.

References memory_read_packet_config, and set_memory_packet_size().

Referenced by _initialize_remote().

## ◆ set_memory_write_packet_size()

static void set_memory_write_packet_size | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 1138 of file remote.c.

References memory_write_packet_config, and set_memory_packet_size().

Referenced by _initialize_remote().

## ◆ set_pspace_remote_exec_file()

static void set_pspace_remote_exec_file | ( | struct program_space * | pspace,
|  | char * | remote_exec_file
| ) |  |
| static

Definition at line 699 of file remote.c.

References remote_pspace_data, and xfree().

Referenced by remote_follow_exec(), and set_remote_exec_file().

## ◆ set_range_stepping()

static void set_range_stepping | ( | const char * | ignore_args,
|  | int | from_tty,
|  | struct cmd_list_element * | c
| ) |  |
| static

Definition at line 13918 of file remote.c.

References _, get_remote_state(), PACKET_ENABLE, PACKET_SUPPORT_UNKNOWN, PACKET_vCont, vCont_action_support::r, remote_state::remote_desc, remote_vcont_probe(), remote_state::supports_vCont, use_range_stepping, and warning().

Referenced by _initialize_remote().

## ◆ set_remote_cmd()

static void set_remote_cmd | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 13810 of file remote.c.

References all_commands, gdb_stdout, help_list(), and remote_set_cmdlist.

Referenced by _initialize_remote().

## ◆ set_remote_exec_file()

static void set_remote_exec_file | ( | const char * | ignored,
|  | int | from_tty,
|  | struct cmd_list_element * | c
| ) |  |
| static

Definition at line 712 of file remote.c.

References current_program_space, gdb_assert, remote_exec_file_var, and set_pspace_remote_exec_file().

Referenced by _initialize_remote().

## ◆ set_remote_protocol_Z_packet_cmd()

static void set_remote_protocol_Z_packet_cmd | ( | const char * | args,
|  | int | from_tty,
|  | struct cmd_list_element * | c
| ) |  |
| static

Definition at line 1602 of file remote.c.

References packet_config::detect, NR_Z_PACKET_TYPES, PACKET_Z0, remote_protocol_packets, and remote_Z_packet_detect.

Referenced by _initialize_remote().

## ◆ set_remote_traceframe()

static void set_remote_traceframe | ( | void |  | ) |
| static

Definition at line 7675 of file remote.c.

References _, get_remote_state(), get_traceframe_number(), remote_state::remote_traceframe_number, target_trace_find, tfind_number, and warning().

Referenced by remote_fetch_registers(), remote_get_trace_state_variable_value(), remote_store_registers(), remote_trace_find(), and remote_xfer_partial().

## ◆ set_remotebreak()

static void set_remotebreak | ( | const char * | args,
|  | int | from_tty,
|  | struct cmd_list_element * | c
| ) |  |
| static

Definition at line 973 of file remote.c.

References interrupt_sequence_break, interrupt_sequence_control_c, interrupt_sequence_mode, and remote_break.

Referenced by _initialize_remote().

## ◆ set_thread()

static void set_thread | ( | ptid_t | ptid,
|  | int | gen
| ) |  |
| static

Definition at line 2155 of file remote.c.

References any_thread_ptid, remote_state::buf, remote_state::buf_size, remote_state::continue_thread, remote_state::general_thread, get_remote_packet_size(), get_remote_state(), getpkt(), magic_null_ptid, minus_one_ptid, ptid_equal(), putpkt(), write_ptid(), and xsnprintf().

Referenced by set_continue_thread(), and set_general_thread().

## ◆ show_interrupt_sequence()

static void show_interrupt_sequence | ( | struct ui_file * | file,
|  | int | from_tty,
|  | struct cmd_list_element * | c,
|  | const char * | value
| ) |  |
| static

Definition at line 937 of file remote.c.

References _, fprintf_filtered(), internal_error(), interrupt_sequence_break, interrupt_sequence_break_g, interrupt_sequence_control_c, and interrupt_sequence_mode.

Referenced by _initialize_remote().

## ◆ show_memory_packet_size()

static void show_memory_packet_size | ( | struct memory_packet_config * | config | ) |
| static

Definition at line 1121 of file remote.c.

References _, memory_packet_config::fixed_p, get_memory_packet_size(), memory_packet_config::name, printf_filtered(), and memory_packet_config::size.

Referenced by show_memory_read_packet_size(), and show_memory_write_packet_size().

## ◆ show_memory_read_packet_size()

static void show_memory_read_packet_size | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 1167 of file remote.c.

References memory_read_packet_config, and show_memory_packet_size().

Referenced by _initialize_remote().

## ◆ show_memory_write_packet_size()

static void show_memory_write_packet_size | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 1144 of file remote.c.

References memory_write_packet_config, and show_memory_packet_size().

Referenced by _initialize_remote().

## ◆ show_packet_config_cmd()

static void show_packet_config_cmd | ( | struct packet_config * | config | ) |
| static

Definition at line 1227 of file remote.c.

References _, AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_FALSE, AUTO_BOOLEAN_TRUE, packet_config::detect, packet_config::name, packet_config_support(), PACKET_DISABLE, PACKET_ENABLE, PACKET_SUPPORT_UNKNOWN, and printf_filtered().

Referenced by show_remote_protocol_packet_cmd(), and show_remote_protocol_Z_packet_cmd().

## ◆ show_range_stepping()

static void show_range_stepping | ( | struct ui_file * | file,
|  | int | from_tty,
|  | struct cmd_list_element * | c,
|  | const char * | value
| ) |  |
| static

Definition at line 13906 of file remote.c.

References _, and fprintf_filtered().

Referenced by _initialize_remote().

## ◆ show_remote_cmd()

static void show_remote_cmd | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 13816 of file remote.c.

References cmd_func(), current_uiout, do_show_command(), ui_out::field_string(), cmd_list_element::name, cmd_list_element::next, not_set_cmd, remote_show_cmdlist, show_cmd, ui_out::text(), and cmd_list_element::type.

Referenced by _initialize_remote().

## ◆ show_remote_exec_file()

static void show_remote_exec_file | ( | struct ui_file * | file,
|  | int | from_tty,
|  | struct cmd_list_element * | cmd,
|  | const char * | value
| ) |  |
| static

Definition at line 722 of file remote.c.

References fprintf_filtered(), and remote_exec_file_var.

Referenced by _initialize_remote().

## ◆ show_remote_protocol_packet_cmd()

static void show_remote_protocol_packet_cmd | ( | struct ui_file * | file,
|  | int | from_tty,
|  | struct cmd_list_element * | c,
|  | const char * | value
| ) |  |
| static

Definition at line 1564 of file remote.c.

References _, packet_config::detect, internal_error(), cmd_list_element::name, PACKET_MAX, remote_protocol_packets, show_packet_config_cmd(), and cmd_list_element::var.

Referenced by add_packet_config_cmd().

## ◆ show_remote_protocol_Z_packet_cmd()

static void show_remote_protocol_Z_packet_cmd | ( | struct ui_file * | file,
|  | int | from_tty,
|  | struct cmd_list_element * | c,
|  | const char * | value
| ) |  |
| static

Definition at line 1612 of file remote.c.

References NR_Z_PACKET_TYPES, PACKET_Z0, remote_protocol_packets, and show_packet_config_cmd().

Referenced by _initialize_remote().

## ◆ show_remotebreak()

static void show_remotebreak | ( | struct ui_file * | file,
|  | int | from_tty,
|  | struct cmd_list_element * | c,
|  | const char * | value
| ) |  |
| static

Definition at line 982 of file remote.c.

Referenced by _initialize_remote().

## ◆ skip_frame()

static void skip_frame | ( | void |  | ) |
| static

Definition at line 8870 of file remote.c.

References readchar(), remote_timeout, and SERIAL_TIMEOUT.

Referenced by putpkt_binary().

## ◆ start_thread()

static void start_thread | ( | struct gdb_xml_parser * | parser,
|  | const struct gdb_xml_element * | element,
|  | void * | user_data,
|  | VEC(gdb_xml_value_s) * | attributes
| ) |  |
| static

Definition at line 3078 of file remote.c.

References thread_item::core, hex2bin(), threads_listing_context::items, thread_item::name, read_ptid(), thread_item::thread_handle, gdb_xml_value::value, and xml_find_attribute().

## ◆ stop_reply_dtr()

static void stop_reply_dtr | ( | struct notif_event * | event | ) |
| static

Definition at line 6354 of file remote.c.

References VEC_free, VEC_iterate, and xfree().

Referenced by remote_notif_stop_alloc_reply().

## ◆ stop_reply_extract_thread()

static ptid_t stop_reply_extract_thread | ( | char * | stop_reply | ) |
| static

Definition at line 3706 of file remote.c.

References null_ptid, and read_ptid().

Referenced by get_current_thread().

## ◆ stop_reply_match_ptid_and_ws()

static int stop_reply_match_ptid_and_ws | ( | QUEUE(stop_reply_p) * | q,
|  | QUEUE_ITER(stop_reply_p) * | iter,
|  | struct stop_reply * | event,
|  | void * | data
| ) |  |
| static

Definition at line 6714 of file remote.c.

References stop_reply::ptid, ptid_equal(), and TARGET_WAITKIND_STOPPED.

Referenced by peek_stop_reply().

## ◆ stop_reply_queue_length()

static int stop_reply_queue_length | ( | void |  | ) |
| static

Definition at line 6313 of file remote.c.

References QUEUE_length.

Referenced by process_initial_stop_replies().

## ◆ stop_reply_xfree()

static void stop_reply_xfree | ( | struct stop_reply * |  | ) |
| static

Referenced by _initialize_remote(), discard_pending_stop_replies(), process_stop_reply(), remove_stop_reply_for_inferior(), and remove_stop_reply_of_remote_state().

## ◆ store_register_using_P()

static int store_register_using_P | ( | const struct regcache * | regcache,
|  | struct packet_reg * | reg
| ) |  |
| static

Definition at line 7771 of file remote.c.

References _, regcache::arch(), bin2hex(), remote_state::buf, remote_state::buf_size, error(), gdbarch_register_name(), get_remote_packet_size(), get_remote_state(), getpkt(), internal_error(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_P, PACKET_UNKNOWN, phex_nz(), putpkt(), regcache_raw_collect(), register_size(), remote_protocol_packets, and xsnprintf().

Referenced by remote_store_registers().

## ◆ store_registers_using_G()

static void store_registers_using_G | ( | const struct regcache * | regcache | ) |
| static

Definition at line 7812 of file remote.c.

References _, regcache::arch(), bin2hex(), remote_state::buf, remote_state::buf_size, error(), gdbarch_num_regs(), get_remote_arch_state(), get_remote_state(), getpkt(), packet_reg::in_g_packet, memset(), packet_reg::offset, packet_check_result(), PACKET_ERROR, putpkt(), regcache_raw_collect(), packet_reg::regnum, remote_arch_state::regs, and remote_arch_state::sizeof_g_packet.

Referenced by remote_store_registers().

## ◆ strprefix()

static int strprefix | ( | const char * | p,
|  | const char * | pend,
|  | const char * | prefix
| ) |  |
| static

Definition at line 6738 of file remote.c.

Referenced by remote_parse_stop_reply().

## ◆ stub_unpack_int()

static int stub_unpack_int | ( | char * | buff,
|  | int | fieldlength
| ) |  |
| static

Definition at line 2472 of file remote.c.

References stubhex().

Referenced by remote_unpack_thread_info_response(), unpack_byte(), and unpack_int().

## ◆ stubhex()

static int stubhex | ( | int | ch | ) |
| static

Definition at line 2460 of file remote.c.

Referenced by stub_unpack_int(), and unpack_threadid().

## ◆ thread_pending_fork_status()

static struct target_waitstatus* thread_pending_fork_status | ( | struct thread_info * | thread | ) |
| static

Definition at line 6422 of file remote.c.

References thread_info::pending_follow, thread_info::suspend, thread_suspend_state::waitstatus, and thread_suspend_state::waitstatus_pending_p.

Referenced by is_pending_fork_parent_thread(), and remove_new_fork_children().

## ◆ threadmatch()

static int threadmatch | ( | threadref * | dest,
|  | threadref * | src
| ) |  |
| static

Definition at line 2634 of file remote.c.

Referenced by remote_get_threadlist(), and remote_unpack_thread_info_response().

## ◆ threadref_to_int()

static int threadref_to_int | ( | threadref * | ref | ) |
| static

Definition at line 2607 of file remote.c.

References scan().

Referenced by remote_newthread_step().

## ◆ trace_error()

static void trace_error | ( | char * | buf | ) |
| static

Definition at line 549 of file remote.c.

References _, and error().

Referenced by remote_get_noisy_reply().

## ◆ unpack_byte()

static char * unpack_byte | ( | char * | buf,
|  | int * | value
| ) |  |
| static

Definition at line 2496 of file remote.c.

References remote_state::buf, and stub_unpack_int().

Referenced by parse_threadlist_response(), and remote_unpack_thread_info_response().

## ◆ unpack_int()

static char * unpack_int | ( | char * | buf,
|  | int * | value
| ) |  |
| static

Definition at line 2513 of file remote.c.

References remote_state::buf, and stub_unpack_int().

Referenced by remote_unpack_thread_info_response().

## ◆ unpack_nibble()

static char * unpack_nibble | ( | char * | buf,
|  | int * | val
| ) |  |
| static

Definition at line 2489 of file remote.c.

References remote_state::buf, and fromhex().

Referenced by parse_threadlist_response().

## ◆ unpack_string()

static char * unpack_string | ( | char * | src,
|  | char * | dest,
|  | int | length
| ) |  |
| static

Definition at line 2544 of file remote.c.

Referenced by remote_unpack_thread_info_response().

## ◆ unpack_threadid()

static char * unpack_threadid | ( | char * | inbuf,
|  | threadref * | id
| ) |  |
| static

Definition at line 2567 of file remote.c.

References BUF_THREAD_ID_SIZE, and stubhex().

Referenced by parse_threadlist_response(), and remote_unpack_thread_info_response().

## ◆ unpush_and_perror()

static void unpush_and_perror | ( | const char * | string | ) |
| static

Definition at line 8533 of file remote.c.

References remote_unpush_target(), safe_strerror(), TARGET_CLOSE_ERROR, and throw_error().

Referenced by readchar(), and remote_serial_write().

## ◆ vcont_builder_flush()

static void vcont_builder_flush | ( | struct vcont_builder * | builder | ) |
| static

Definition at line 5816 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, error(), vcont_builder::first_action, get_remote_state(), getpkt(), vcont_builder::p, and putpkt().

Referenced by remote_commit_resume(), and vcont_builder_push_action().

## ◆ vcont_builder_push_action()

static void vcont_builder_push_action | ( | struct vcont_builder * | builder,
|  | ptid_t | ptid,
|  | int | step,
|  | enum gdb_signal | siggnal
| ) |  |
| static

Definition at line 5842 of file remote.c.

References append_resumption(), remote_state::buf, vcont_builder::endp, gdb_assert, MAX_ACTION_SIZE, vcont_builder::p, vcont_builder_flush(), and vcont_builder_restart().

Referenced by remote_commit_resume().

## ◆ vcont_builder_restart()

static void vcont_builder_restart | ( | struct vcont_builder * | builder | ) |
| static

Definition at line 5802 of file remote.c.

References remote_state::buf, vcont_builder::endp, vcont_builder::first_action, get_remote_packet_size(), get_remote_state(), vcont_builder::p, and xsnprintf().

Referenced by remote_commit_resume(), and vcont_builder_push_action().

## ◆ VEC()

static VEC | ( | static_tracepoint_marker_p |  | ) |
| static

Definition at line 3409 of file remote.c.

References _, remote_state::buf, remote_state::buf_size, do_cleanups(), error(), free_current_marker(), get_remote_state(), getpkt(), make_cleanup(), memset(), parse_static_tracepoint_marker_definition(), putpkt(), release_static_tracepoint_marker(), static_tracepoint_marker::str_id, VEC_safe_push, and XCNEW.

## ◆ watchpoint_to_Z_packet()

static enum Z_packet_type watchpoint_to_Z_packet | ( | int | type | ) |
| static

Definition at line 9860 of file remote.c.

References _, hw_access, hw_read, hw_write, internal_error(), Z_PACKET_ACCESS_WP, Z_PACKET_READ_WP, and Z_PACKET_WRITE_WP.

Referenced by remote_insert_watchpoint(), and remote_remove_watchpoint().

## ◆ write_ptid()

static char * write_ptid | ( | char * | buf,
|  | const char * | endbuf,
|  | ptid_t | ptid
| ) |  |
| static

Definition at line 2387 of file remote.c.

References remote_state::buf, get_remote_state(), pid, ptid_get_lwp(), ptid_get_pid(), remote_multi_process_p(), selftests::ptid::tid, and xsnprintf().

Referenced by append_resumption(), remote_get_thread_local_address(), remote_get_tib_address(), remote_stop_ns(), remote_thread_alive(), remote_threads_extra_info(), and set_thread().

## Variable Documentation

## ◆ any_thread_ptid

ptid_t any_thread_ptid
| static

Definition at line 1726 of file remote.c.

Referenced by _initialize_remote(), remote_resume_with_hc(), and set_thread().

## ◆ extended_remote_ops

struct target_ops extended_remote_ops
| static

Definition at line 907 of file remote.c.

Referenced by _initialize_remote(), extended_remote_open(), and init_extended_remote_ops().

## ◆ interrupt_on_connect

int interrupt_on_connect = 0
| static

Definition at line 965 of file remote.c.

Referenced by _initialize_remote(), and remote_start_remote().

## ◆ interrupt_sequence_break

const char interrupt_sequence_break[] = "BREAK"

Definition at line 925 of file remote.c.

Referenced by send_interrupt_sequence(), set_remotebreak(), and show_interrupt_sequence().

## ◆ interrupt_sequence_break_g

const char interrupt_sequence_break_g[] = "BREAK-g"

Definition at line 926 of file remote.c.

Referenced by send_interrupt_sequence(), and show_interrupt_sequence().

## ◆ interrupt_sequence_control_c

const char interrupt_sequence_control_c[] = "Ctrl-C"

Definition at line 924 of file remote.c.

Referenced by send_interrupt_sequence(), set_remotebreak(), and show_interrupt_sequence().

## ◆ interrupt_sequence_mode

const char* interrupt_sequence_mode = interrupt_sequence_control_c
| static

Definition at line 934 of file remote.c.

Referenced by _initialize_remote(), send_interrupt_sequence(), set_remotebreak(), and show_interrupt_sequence().

## ◆ interrupt_sequence_modes

const char* const interrupt_sequence_modes[]
| static

Initial value:
=
{
interrupt_sequence_control_c,
interrupt_sequence_break,
interrupt_sequence_break_g,
NULL
}
interrupt_sequence_control_c
const char interrupt_sequence_control_c[]
Definition: remote.c:924
interrupt_sequence_break
const char interrupt_sequence_break[]
Definition: remote.c:925
interrupt_sequence_break_g
const char interrupt_sequence_break_g[]
Definition: remote.c:926

Definition at line 927 of file remote.c.

Referenced by _initialize_remote().

## ◆ magic_null_ptid

ptid_t magic_null_ptid
| static

Definition at line 1724 of file remote.c.

Referenced by _initialize_remote(), add_current_inferior_and_thread(), append_resumption(), read_ptid(), remote_mourn(), remote_notice_new_inferior(), remote_pid_to_str(), remote_resume_with_vcont(), remote_thread_always_alive(), remote_threads_extra_info(), and set_thread().

## ◆ memory_read_packet_config

struct memory_packet_config memory_read_packet_config
| static

Initial value:
=
{
"memory-read-packet-size",
}

Definition at line 1155 of file remote.c.

Referenced by get_memory_read_packet_size(), set_memory_read_packet_size(), and show_memory_read_packet_size().

## ◆ memory_write_packet_config

struct memory_packet_config memory_write_packet_config
| static

Initial value:
=
{
"memory-write-packet-size",
}

Definition at line 1132 of file remote.c.

Referenced by get_memory_write_packet_size(), set_memory_write_packet_size(), and show_memory_write_packet_size().

## ◆ not_sent_ptid

ptid_t not_sent_ptid
| static

Definition at line 1725 of file remote.c.

Referenced by _initialize_remote(), and remote_open_1().

## ◆ notif_client_stop

struct notif_client notif_client_stop

Initial value:
=
{
"Stop",
"vStopped",
remote_notif_stop_parse,
remote_notif_stop_ack,
remote_notif_stop_can_get_pending_events,
remote_notif_stop_alloc_reply,
REMOTE_NOTIF_STOP,
}
REMOTE_NOTIF_STOP
Definition: remote-notif.h:38
remote_notif_stop_can_get_pending_events
static int remote_notif_stop_can_get_pending_events(struct notif_client *self)
Definition: remote.c:6342
remote_notif_stop_ack
static void remote_notif_stop_ack(struct notif_client *self, char *buf, struct notif_event *event)
Definition: remote.c:6326
remote_notif_stop_alloc_reply
static struct notif_event * remote_notif_stop_alloc_reply(void)
Definition: remote.c:6369
remote_notif_stop_parse
static void remote_notif_stop_parse(struct notif_client *self, char *buf, struct notif_event *event)
Definition: remote.c:6319

Definition at line 6381 of file remote.c.

Referenced by check_pending_events_prevent_wildcard_vcont(), discard_pending_stop_replies(), extended_remote_attach(), kill_new_fork_children(), remote_resume(), remote_start_remote(), remote_wait_as(), remote_wait_ns(), and remove_new_fork_children().

## ◆ remote_address_size

unsigned int remote_address_size
| static

Definition at line 999 of file remote.c.

Referenced by _initialize_remote(), and remote_address_masked().

## ◆ remote_async_inferior_event_token

struct async_event_handler* remote_async_inferior_event_token
| static

Definition at line 1720 of file remote.c.

Referenced by push_stop_reply(), queued_stop_reply(), remote_async(), remote_close(), remote_notif_stop_can_get_pending_events(), remote_open_1(), and remote_wait().

## ◆ remote_async_serial_handler

serial_event_ftype remote_async_serial_handler
| static

Definition at line 13730 of file remote.c.

Referenced by remote_async().

## ◆ remote_break

int remote_break
| static

Definition at line 970 of file remote.c.

Referenced by _initialize_remote(), and set_remotebreak().

## ◆ remote_cmdlist

struct cmd_list_element* remote_cmdlist
| static

Definition at line 241 of file remote.c.

Referenced by _initialize_remote(), and remote_command().

## ◆ remote_exec_file_var

char* remote_exec_file_var
| static

Definition at line 86 of file remote.c.

Referenced by _initialize_remote(), set_remote_exec_file(), and show_remote_exec_file().

## ◆ remote_flash_timeout

const int remote_flash_timeout = 1000
| static

Definition at line 8460 of file remote.c.

Referenced by remote_flash_done(), remote_flash_erase(), and remote_flash_write().

## ◆ remote_g_packet_data_handle

struct gdbarch_data* remote_g_packet_data_handle
| static

Definition at line 11153 of file remote.c.

Referenced by _initialize_remote(), register_remote_g_packet_guess(), remote_read_description(), and remote_read_description_p().

## ◆ remote_gdbarch_data_handle

struct gdbarch_data* remote_gdbarch_data_handle
| static

Definition at line 645 of file remote.c.

Referenced by _initialize_remote(), and get_remote_arch_state().

## ◆ remote_hw_breakpoint_limit

int remote_hw_breakpoint_limit = -1

Definition at line 9968 of file remote.c.

Referenced by _initialize_remote(), and remote_check_watch_resources().

## ◆ remote_hw_watchpoint_length_limit

int remote_hw_watchpoint_length_limit = -1

Definition at line 9967 of file remote.c.

Referenced by _initialize_remote(), and remote_region_ok_for_hw_watchpoint().

## ◆ remote_hw_watchpoint_limit

int remote_hw_watchpoint_limit = -1

Definition at line 9966 of file remote.c.

Referenced by _initialize_remote(), and remote_check_watch_resources().

## ◆ remote_ops

struct target_ops remote_ops
| static

Definition at line 905 of file remote.c.

Referenced by _initialize_remote(), init_extended_remote_ops(), init_remote_ops(), and remote_open().

## ◆ remote_protocol_features

const struct protocol_feature remote_protocol_features[]
| static

Definition at line 4548 of file remote.c.

Referenced by remote_query_supported().

## ◆ remote_protocol_packets

struct packet_config remote_protocol_packets[PACKET_MAX]
| static

Definition at line 1521 of file remote.c.

Referenced by _initialize_remote(), btrace_sync_conf(), check_binary_download(), extended_remote_attach(), extended_remote_run(), extended_remote_set_inferior_cwd(), fetch_register_using_p(), init_all_packet_configs(), packet_set_cmd_state(), packet_support(), remote_check_symbols(), remote_disable_btrace(), remote_enable_btrace(), remote_get_thread_local_address(), remote_get_tib_address(), remote_get_trace_status(), remote_hostio_send_command(), remote_insert_breakpoint(), remote_insert_hw_breakpoint(), remote_insert_watchpoint(), remote_interrupt_ns(), remote_pass_signals(), remote_program_signals(), remote_query_attached(), remote_query_supported(), remote_read_btrace(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_search_memory(), remote_set_syscall_catchpoint(), remote_set_trace_buffer_size(), remote_start_remote(), remote_supported_packet(), remote_thread_events(), remote_vcont_probe(), remote_verify_memory(), remote_vkill(), remote_xfer_partial(), reset_all_packet_configs_support(), set_remote_protocol_Z_packet_cmd(), show_remote_protocol_packet_cmd(), show_remote_protocol_Z_packet_cmd(), and store_register_using_P().

## ◆ remote_pspace_data

const struct program_space_data* remote_pspace_data
| static

Definition at line 80 of file remote.c.

Referenced by _initialize_remote(), get_remote_exec_file(), and set_pspace_remote_exec_file().

## ◆ remote_set_cmdlist

struct cmd_list_element* remote_set_cmdlist
| static

Definition at line 245 of file remote.c.

Referenced by _initialize_remote(), add_packet_config_cmd(), initialize_remote_fileio(), and set_remote_cmd().

## ◆ remote_show_cmdlist

struct cmd_list_element* remote_show_cmdlist
| static

Definition at line 246 of file remote.c.

Referenced by _initialize_remote(), add_packet_config_cmd(), initialize_remote_fileio(), and show_remote_cmd().

## ◆ remote_state

struct remote_state* remote_state
| static

Definition at line 483 of file remote.c.

Referenced by get_remote_state_raw().

## ◆ remote_support_xml

char* remote_support_xml
| static

Definition at line 4657 of file remote.c.

Referenced by register_remote_support_xml(), and remote_query_supported().

## ◆ remote_Z_packet_detect

enum auto_boolean remote_Z_packet_detect
| static

Definition at line 1599 of file remote.c.

Referenced by _initialize_remote(), and set_remote_protocol_Z_packet_cmd().

## ◆ thread_attributes

const struct gdb_xml_attribute thread_attributes[]

Initial value:
= {
{ "id", GDB_XML_AF_NONE, NULL, NULL },
{ "core", GDB_XML_AF_OPTIONAL, gdb_xml_parse_attr_ulongest, NULL },
{ "name", GDB_XML_AF_OPTIONAL, NULL, NULL },
{ "handle", GDB_XML_AF_OPTIONAL, NULL, NULL },
{ NULL, GDB_XML_AF_NONE, NULL, NULL }
}
GDB_XML_AF_NONE
Definition: xml-support.h:106
GDB_XML_AF_OPTIONAL
Definition: xml-support.h:107
gdb_xml_parse_attr_ulongest
gdb_xml_attribute_handler gdb_xml_parse_attr_ulongest

Definition at line 3117 of file remote.c.

## ◆ thread_children

const struct gdb_xml_element thread_children[]

Initial value:
= {
{ NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL }
}
GDB_XML_EF_NONE
Definition: xml-support.h:127

Definition at line 3125 of file remote.c.

## ◆ threads_children

const struct gdb_xml_element threads_children[]

Initial value:
= {
{ "thread", thread_attributes, thread_children,
GDB_XML_EF_REPEATABLE | GDB_XML_EF_OPTIONAL,
start_thread, end_thread },
{ NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL }
}
start_thread
static void start_thread(struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s) *attributes)
Definition: remote.c:3078
end_thread
static void end_thread(struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, const char *body_text)
Definition: remote.c:3106
GDB_XML_EF_NONE
Definition: xml-support.h:127
thread_attributes
const struct gdb_xml_attribute thread_attributes[]
Definition: remote.c:3117
GDB_XML_EF_REPEATABLE
Definition: xml-support.h:129
thread_children
const struct gdb_xml_element thread_children[]
Definition: remote.c:3125
GDB_XML_EF_OPTIONAL
Definition: xml-support.h:128

Definition at line 3129 of file remote.c.

## ◆ threads_elements

const struct gdb_xml_element threads_elements[]

Initial value:
= {
{ "threads", NULL, threads_children,
GDB_XML_EF_NONE, NULL, NULL },
{ NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL }
}
GDB_XML_EF_NONE
Definition: xml-support.h:127
threads_children
const struct gdb_xml_element threads_children[]
Definition: remote.c:3129

Definition at line 3136 of file remote.c.

Referenced by remote_get_threads_with_qxfer().

## ◆ use_range_stepping

int use_range_stepping = 1
| static

Definition at line 270 of file remote.c.

Referenced by _initialize_remote(), append_resumption(), and set_range_stepping().

## ◆ wait_forever_enabled_p

int wait_forever_enabled_p = 1
| static

Definition at line 916 of file remote.c.

Referenced by remote_open_1(), and remote_wait_as().