GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations | Functions | Variables
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 "process-stratum-target.h"
#include "gdbcmd.h"
#include "objfiles.h"
#include "gdbthread.h"
#include "remote.h"
#include "remote-notif.h"
#include "regcache.h"
#include "value.h"
#include "observable.h"
#include "solib.h"
#include "cli/cli-decode.h"
#include "cli/cli-setshow.h"
#include "target-descriptions.h"
#include "gdb_bfd.h"
#include "gdbsupport/filestuff.h"
#include "gdbsupport/rsp-low.h"
#include "disasm.h"
#include "location.h"
#include "gdbsupport/gdb_sys_time.h"
#include "gdbsupport/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 "gdbsupport/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 "gdbsupport/agent.h"
#include "btrace.h"
#include "record-btrace.h"
#include "gdbsupport/scoped_restore.h"
#include "gdbsupport/environ.h"
#include "gdbsupport/byte-vector.h"
#include "gdbsupport/search.h"
#include <algorithm>
#include <iterator>
#include <unordered_map>
#include "async-event.h"
#include "gdbsupport/selftest.h"

Go to the source code of this file.

Classes

struct  vCont_action_support
 
struct  readahead_cache
 
struct  packet_reg
 
struct  remote_arch_state
 
class  remote_state
 
struct  remote_state::btrace_config
 
struct  packet_description
 
struct  packet_config
 
struct  memory_packet_config
 
struct  remote_features
 
class  remote_target
 
class  extended_remote_target
 
struct  stop_reply
 
struct  resumed_pending_vcont_info
 
struct  remote_thread_info
 
struct  gdb_ext_thread_info
 
struct  thread_item
 
struct  threads_listing_context
 
struct  scoped_mark_target_starting
 
struct  protocol_feature
 
struct  remote_inferior
 
class  vcont_builder
 
struct  cli_packet_command_callbacks
 
struct  remote_g_packet_guess
 
struct  remote_g_packet_data
 
class  scoped_remote_fd
 

Macros

#define OPAQUETHREADBYTES   8
 
#define MAXTHREADLISTRESULTS   32
 
#define DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED   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
 

Typedefs

typedef unsigned char threadref[OPAQUETHREADBYTES]
 
typedef int(* rmt_thread_action) (threadref *ref, void *context)
 
typedef std::unique_ptr< stop_replystop_reply_up
 
typedef int gdb_threadref
 

Enumerations

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_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_memory_tagging_feature , PACKET_MAX
}
 
enum  { REMOTE_ALIGN_WRITES = 16 }
 
enum class  resume_state { NOT_RESUMED , RESUMED_PENDING_VCONT , RESUMED }
 
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 const char * get_packet_support_name (auto_boolean support)
 
static const char * get_target_type_name (bool target_connected)
 
static remote_targetas_remote_target (process_stratum_target *target)
 
bool is_remote_target (process_stratum_target *target)
 
static int hexnumlen (ULONGEST num)
 
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 int stub_unpack_int (const char *buff, int fieldlength)
 
static void set_remote_protocol_packet_cmd (const char *args, int from_tty, cmd_list_element *c)
 
static void show_packet_config_cmd (ui_file *file, const unsigned int which_packet, remote_target *remote)
 
static void show_remote_protocol_packet_cmd (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static ptid_t read_ptid (const char *buf, const char **obuf)
 
static void remote_async_inferior_event_handler (gdb_client_data)
 
static bool remote_read_description_p (struct target_ops *target)
 
static void remote_console_output (const char *msg)
 
static void remote_btrace_reset (remote_state *rs)
 
static void remote_unpush_and_throw (remote_target *target)
 
static void trace_error (char *buf)
 
static const char * get_remote_exec_file (void)
 
static void set_pspace_remote_exec_file (struct program_space *pspace, const 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 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 remote_targetget_current_remote_target ()
 
static struct packet_regpacket_reg_from_regnum (struct gdbarch *gdbarch, struct remote_arch_state *rsa, long regnum)
 
static struct packet_regpacket_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_fixed_memory_packet_size (struct memory_packet_config *config)
 
static void set_memory_packet_size (const char *args, struct memory_packet_config *config, bool target_connected)
 
static void show_memory_packet_size (memory_packet_config *config, remote_target *remote)
 
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 void show_hardware_watchpoint_limit (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_hardware_watchpoint_length_limit (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_hardware_breakpoint_limit (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_remote_packet_max_chars (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
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 enum packet_support packet_config_support (const packet_config *config)
 
static void add_packet_config_cmd (const unsigned int which_packet, const char *name, const char *title, int legacy)
 
static enum packet_result packet_check_result (const char *buf)
 
static enum packet_result packet_check_result (const gdb::char_vector &buf)
 
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 const ptid_t magic_null_ptid (42000, -1, 1)
 
static const ptid_t not_sent_ptid (42000, -2, 1)
 
static const ptid_t any_thread_ptid (42000, 0, 1)
 
static remote_thread_infoget_remote_thread_info (thread_info *thread)
 
static remote_thread_infoget_remote_thread_info (remote_target *target, ptid_t ptid)
 
static void record_currthread (struct remote_state *rs, ptid_t currthread)
 
static int remote_thread_always_alive (ptid_t ptid)
 
static const char * unpack_nibble (const char *buf, int *val)
 
static const char * unpack_byte (const char *buf, int *value)
 
static char * pack_int (char *buf, int value)
 
static const char * unpack_int (const char *buf, int *value)
 
static const char * unpack_string (const char *src, char *dest, int length)
 
static char * pack_threadid (char *pkt, threadref *id)
 
static const char * unpack_threadid (const 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 char * pack_threadlist_request (char *pkt, int startflag, int threadcount, threadref *nextthread)
 
static int remote_newthread_step (threadref *ref, void *context)
 
static bool has_single_non_exited_thread (inferior *inf)
 
static ptid_t stop_reply_extract_thread (const char *stop_reply)
 
static void init_all_packet_configs (void)
 
static struct serialremote_serial_open (const char *name)
 
static void remote_supported_packet (remote_target *remote, const struct protocol_feature *feature, enum packet_support support, const char *argument)
 
static void remote_packet_size (remote_target *remote, const protocol_feature *feature, enum packet_support support, const char *value)
 
void register_remote_support_xml (const char *xml)
 
static void remote_query_supported_append (std::string *msg, const char *append)
 
static void remote_serial_quit_handler ()
 
static void remote_unpush_target (remote_target *target)
 
static bool is_fork_status (target_waitkind kind)
 
static const target_waitstatusthread_pending_fork_status (struct thread_info *thread)
 
static void resume_clear_thread_private_info (struct thread_info *thread)
 
static remote_inferiorget_remote_inferior (inferior *inf)
 
static void remote_notif_stop_parse (remote_target *remote, const notif_client *self, const char *buf, struct notif_event *event)
 
static void remote_notif_stop_ack (remote_target *remote, const notif_client *self, const char *buf, struct notif_event *event)
 
static int remote_notif_stop_can_get_pending_events (remote_target *remote, const notif_client *self)
 
static notif_event_up remote_notif_stop_alloc_reply ()
 
static int strprefix (const char *p, const char *pend, const char *prefix)
 
void remote_notif_get_pending_events (remote_target *remote, const notif_client *nc)
 
static ptid_t first_remote_resumed_thread (remote_target *target)
 
static int align_for_efficient_write (int todo, CORE_ADDR memaddr)
 
static void unpush_and_perror (remote_target *target, const char *string)
 
static std::string escape_buffer (const char *buf, int n)
 
int putpkt (remote_target *remote, const char *buf)
 
static void show_watchdog (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
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 enum Z_packet_type watchpoint_to_Z_packet (int type)
 
static void compare_sections_command (const char *args, int from_tty)
 
void send_remote_packet (gdb::array_view< const char > &buf, send_remote_packet_callbacks *callbacks)
 
static void cli_packet_command (const char *args, int from_tty)
 
static struct remote_g_packet_dataget_g_packet_data (struct gdbarch *gdbarch)
 
void register_remote_g_packet_guess (struct gdbarch *gdbarch, int bytes, const struct target_desc *tdesc)
 
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 (const char *buffer, int *retcode, fileio_error *remote_errno, const char **attachment)
 
static char * remote_hostio_error (fileio_error errnum)
 
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 parse_xml_btrace (struct btrace_data *btrace, const char *buffer)
 
static void parse_xml_btrace_conf (struct btrace_config *conf, const char *xml)
 
static void btrace_read_config (thread_info *tp, btrace_config *conf)
 
static void remote_async_serial_handler (struct serial *scb, void *context)
 
static void show_remote_cmd (const char *args, int from_tty)
 
static void remote_objfile_changed_check_symbols (program_space *pspace)
 
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)
 
static void show_remote_debug (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_remote_timeout (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void create_fetch_memtags_request (gdb::char_vector &packet, CORE_ADDR address, size_t len, int type)
 
static bool parse_fetch_memtags_reply (const gdb::char_vector &reply, gdb::byte_vector &tags)
 
static void create_store_memtags_request (gdb::char_vector &packet, CORE_ADDR address, size_t len, int type, const gdb::byte_vector &tags)
 
bool remote_target_is_non_stop_p (remote_target *t)
 
void _initialize_remote ()
 

Variables

static const char remote_doc []
 
bool remote_debug = false
 
static const target_info remote_target_info
 
static memory_packet_config memory_read_packet_config
 
static memory_packet_config memory_write_packet_config
 
static packet_description packets_descriptions [PACKET_MAX]
 
static packet_config remote_protocol_packets [PACKET_MAX]
 
static const target_info extended_remote_target_info
 
static const registry< program_space >::key< char, gdb::xfree_deleter< char > > remote_pspace_data
 
static std::string remote_exec_file_var
 
static struct cmd_list_elementremote_cmdlist
 
static struct cmd_list_elementremote_set_cmdlist
 
static struct cmd_list_elementremote_show_cmdlist
 
static bool use_range_stepping = true
 
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 bool interrupt_on_connect = false
 
static bool remote_break
 
static unsigned int remote_address_size
 
static int remote_packet_max_chars = 512
 
static enum auto_boolean remote_Z_packet_detect
 
static const struct protocol_feature remote_protocol_features []
 
static char * remote_support_xml
 
static remote_targetcurr_quit_handler_target
 
const notif_client notif_client_stop
 
static const int remote_flash_timeout = 1000
 
static int watchdog = 0
 
static int remote_hw_watchpoint_limit = -1
 
static int remote_hw_watchpoint_length_limit = -1
 
static int remote_hw_breakpoint_limit = -1
 
static const registry< gdbarch >::key< struct remote_g_packet_dataremote_g_packet_data_handle
 
static serial_event_ftype remote_async_serial_handler
 

Macro Definition Documentation

◆ BUF_THREAD_ID_SIZE

#define BUF_THREAD_ID_SIZE   (OPAQUETHREADBYTES * 2)

◆ CRAZY_MAX_THREADS

#define CRAZY_MAX_THREADS   1000

Definition at line 3917 of file remote.c.

Referenced by remote_target::remote_get_threads_with_ql().

◆ DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED

#define DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED   16384

Definition at line 1952 of file remote.c.

Referenced by get_fixed_memory_packet_size(), and set_memory_packet_size().

◆ MAX_ACTION_SIZE

#define MAX_ACTION_SIZE   200

Definition at line 6858 of file remote.c.

Referenced by vcont_builder::push_action().

◆ MAX_TRIES

#define MAX_TRIES   3

◆ MAXTHREADLISTRESULTS

#define MAXTHREADLISTRESULTS   32

Definition at line 332 of file remote.c.

Referenced by remote_target::remote_threadlist_iterator().

◆ MIN_MEMORY_PACKET_SIZE

#define MIN_MEMORY_PACKET_SIZE   20

Definition at line 1956 of file remote.c.

Referenced by remote_target::get_memory_packet_size().

◆ OPAQUETHREADBYTES

#define OPAQUETHREADBYTES   8

Definition at line 94 of file remote.c.

◆ TAG_DISPLAY [1/2]

#define TAG_DISPLAY   4

◆ TAG_DISPLAY [2/2]

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

Definition at line 3222 of file remote.c.

◆ TAG_EXISTS [1/2]

#define TAG_EXISTS   2

◆ TAG_EXISTS [2/2]

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

Definition at line 3221 of file remote.c.

◆ TAG_MOREDISPLAY [1/2]

#define TAG_MOREDISPLAY   16

◆ TAG_MOREDISPLAY [2/2]

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

Definition at line 3224 of file remote.c.

◆ TAG_THREADID [1/2]

#define TAG_THREADID   1

◆ TAG_THREADID [2/2]

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

Definition at line 3220 of file remote.c.

◆ TAG_THREADNAME [1/2]

#define TAG_THREADNAME   8

◆ TAG_THREADNAME [2/2]

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

Definition at line 3223 of file remote.c.

Typedef Documentation

◆ gdb_threadref

typedef int gdb_threadref

Definition at line 3198 of file remote.c.

◆ rmt_thread_action

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

Definition at line 101 of file remote.c.

◆ stop_reply_up

typedef std::unique_ptr<stop_reply> stop_reply_up

Definition at line 106 of file remote.c.

◆ threadref

typedef unsigned char threadref[OPAQUETHREADBYTES]

Definition at line 97 of file remote.c.

Enumeration Type Documentation

◆ 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_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_memory_tagging_feature 
PACKET_MAX 

Definition at line 161 of file remote.c.

◆ anonymous enum

anonymous enum
Enumerator
REMOTE_ALIGN_WRITES 

Definition at line 1357 of file remote.c.

◆ packet_result

Enumerator
PACKET_ERROR 
PACKET_OK 
PACKET_UNKNOWN 

Definition at line 152 of file remote.c.

◆ packet_support

Enumerator
PACKET_SUPPORT_UNKNOWN 
PACKET_ENABLE 
PACKET_DISABLE 

Definition at line 112 of file remote.c.

◆ resume_state

enum class resume_state
strong
Enumerator
NOT_RESUMED 
RESUMED_PENDING_VCONT 
RESUMED 

Definition at line 1412 of file remote.c.

◆ 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 2497 of file remote.c.

Function Documentation

◆ _initialize_remote()

void _initialize_remote ( )

Definition at line 15333 of file remote.c.

Referenced by initialize_all_files().

◆ add_packet_config_cmd()

static void add_packet_config_cmd ( const unsigned int which_packet,
const char * name,
const char * title,
int legacy )
static

◆ align_for_efficient_write()

static int align_for_efficient_write ( int todo,
CORE_ADDR memaddr )
static

Definition at line 9097 of file remote.c.

References REMOTE_ALIGN_WRITES.

Referenced by remote_target::remote_write_bytes_aux().

◆ any_thread_ptid()

static const ptid_t any_thread_ptid ( 42000 ,
0 ,
1  )
static

◆ as_remote_target()

static remote_target * as_remote_target ( process_stratum_target * target)
static

Definition at line 1324 of file remote.c.

Referenced by is_remote_target(), and remote_objfile_changed_check_symbols().

◆ btrace_read_config()

static void btrace_read_config ( thread_info * tp,
btrace_config * conf )
static

◆ cli_packet_command()

static void cli_packet_command ( const char * args,
int from_tty )
static

Definition at line 11811 of file remote.c.

References send_remote_packet().

◆ compare_sections_command()

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

◆ copy_threadref()

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

◆ create_fetch_memtags_request()

static void create_fetch_memtags_request ( gdb::char_vector & packet,
CORE_ADDR address,
size_t len,
int type )
static

Definition at line 15140 of file remote.c.

References gdbarch_addr_bit(), and target_gdbarch().

Referenced by remote_target::fetch_memtags().

◆ create_store_memtags_request()

static void create_store_memtags_request ( gdb::char_vector & packet,
CORE_ADDR address,
size_t len,
int type,
const gdb::byte_vector & tags )
static

Definition at line 15173 of file remote.c.

References gdbarch_addr_bit(), and target_gdbarch().

Referenced by remote_target::store_memtags().

◆ escape_buffer()

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

◆ first_remote_resumed_thread()

static ptid_t first_remote_resumed_thread ( remote_target * target)
static

Definition at line 8341 of file remote.c.

References all_non_exited_threads().

Referenced by remote_target::wait_as().

◆ get_current_remote_target()

static remote_target * get_current_remote_target ( )
static

◆ get_fixed_memory_packet_size()

static long get_fixed_memory_packet_size ( struct memory_packet_config * config)
static

◆ get_g_packet_data()

static struct remote_g_packet_data * get_g_packet_data ( struct gdbarch * gdbarch)
static

◆ get_packet_support_name()

static const char * get_packet_support_name ( auto_boolean support)
static

◆ get_remote_exec_file()

static const char * get_remote_exec_file ( void )
static

◆ get_remote_inferior()

static remote_inferior * get_remote_inferior ( inferior * inf)
static

◆ get_remote_thread_info() [1/2]

static remote_thread_info * get_remote_thread_info ( remote_target * target,
ptid_t ptid )
static

Definition at line 2869 of file remote.c.

References process_stratum_target::find_thread(), and get_remote_thread_info().

◆ get_remote_thread_info() [2/2]

static remote_thread_info * get_remote_thread_info ( thread_info * thread)
static

◆ get_target_type_name()

static const char * get_target_type_name ( bool target_connected)
static

◆ has_single_non_exited_thread()

static bool has_single_non_exited_thread ( inferior * inf)
static

Definition at line 4090 of file remote.c.

Referenced by remote_target::update_thread_list().

◆ hexnumlen()

static int hexnumlen ( ULONGEST num)
static

◆ hexnumnstr()

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

Definition at line 9001 of file remote.c.

References remote_state::buf.

Referenced by hexnumstr(), and remote_target::remote_write_bytes_aux().

◆ hexnumstr()

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

◆ init_all_packet_configs()

static void init_all_packet_configs ( void )
static

◆ int_to_threadref()

void int_to_threadref ( threadref * id,
int value )

Definition at line 3468 of file remote.c.

References scan().

Referenced by remote_target::extra_thread_info().

◆ is_fork_status()

static bool is_fork_status ( target_waitkind kind)
static

◆ is_remote_target()

bool is_remote_target ( process_stratum_target * target)

Definition at line 1332 of file remote.c.

References as_remote_target().

Referenced by target_to_connection_object().

◆ magic_null_ptid()

static const ptid_t magic_null_ptid ( 42000 ,
- 1,
1  )
static

◆ map_regcache_remote_table()

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

◆ not_sent_ptid()

static const ptid_t not_sent_ptid ( 42000 ,
- 2,
1  )
static

Referenced by remote_target::open_1().

◆ pack_int()

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

Definition at line 3381 of file remote.c.

Referenced by pack_threadinfo_request().

◆ pack_threadid()

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

Definition at line 3431 of file remote.c.

References BUF_THREAD_ID_SIZE.

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 3540 of file remote.c.

References pack_int(), and pack_threadid().

Referenced by remote_target::remote_get_threadinfo().

◆ pack_threadlist_request()

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

Definition at line 3677 of file remote.c.

References remote_state::nextthread, and pack_threadid().

Referenced by remote_target::remote_get_threadlist().

◆ packet_check_result() [1/2]

static enum packet_result packet_check_result ( const char * buf)
static

◆ packet_check_result() [2/2]

static enum packet_result packet_check_result ( const gdb::char_vector & buf)
static

Definition at line 2386 of file remote.c.

References remote_state::buf, and packet_check_result().

◆ packet_config_support()

static enum packet_support packet_config_support ( const packet_config * config)
static

◆ packet_reg_from_pnum()

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

◆ packet_reg_from_regnum()

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

◆ parse_fetch_memtags_reply()

static bool parse_fetch_memtags_reply ( const gdb::char_vector & reply,
gdb::byte_vector & tags )
static

Definition at line 15158 of file remote.c.

Referenced by remote_target::fetch_memtags().

◆ parse_xml_btrace()

static void parse_xml_btrace ( struct btrace_data * btrace,
const char * buffer )
static

Definition at line 14305 of file remote.c.

References gdb_xml_parse_quick().

Referenced by remote_target::read_btrace().

◆ parse_xml_btrace_conf()

static void parse_xml_btrace_conf ( struct btrace_config * conf,
const char * xml )
static

Definition at line 14405 of file remote.c.

References gdb_xml_parse_quick().

Referenced by btrace_read_config().

◆ putpkt()

int putpkt ( remote_target * remote,
const char * buf )

Definition at line 9703 of file remote.c.

References remote_state::buf, and remote_target::putpkt().

Referenced by remote_fileio_reply(), and remote_notif_stop_ack().

◆ read_ptid()

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

◆ record_currthread()

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

◆ register_remote_g_packet_guess()

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

◆ register_remote_support_xml()

void register_remote_support_xml ( const char * xml)

Definition at line 5606 of file remote.c.

References remote_support_xml, and xfree().

◆ remote_add_target_side_commands()

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

◆ 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

◆ remote_address_masked()

static CORE_ADDR remote_address_masked ( CORE_ADDR addr)
static

◆ remote_async_inferior_event_handler()

static void remote_async_inferior_event_handler ( gdb_client_data data)
static

Definition at line 14861 of file remote.c.

References INF_REG_EVENT, and inferior_event_handler().

Referenced by remote_target::open_1().

◆ remote_async_serial_handler()

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

Definition at line 14853 of file remote.c.

References INF_REG_EVENT, and inferior_event_handler().

◆ remote_btrace_reset()

static void remote_btrace_reset ( remote_state * rs)
static

Definition at line 14426 of file remote.c.

Referenced by remote_target::open_1().

◆ remote_buffer_add_bytes()

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

◆ remote_buffer_add_int()

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

◆ remote_buffer_add_string()

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

◆ remote_console_output()

static void remote_console_output ( const char * msg)
static

◆ remote_delete_command()

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

Definition at line 13105 of file remote.c.

References error_no_arg(), and remote_file_delete().

◆ remote_file_delete()

void remote_file_delete ( const char * remote_file,
int from_tty )

◆ remote_file_get()

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

◆ remote_file_put()

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

◆ remote_get_command()

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

Definition at line 13092 of file remote.c.

References error_no_arg(), and remote_file_get().

◆ remote_hostio_error()

static char * remote_hostio_error ( fileio_error errnum)
static

◆ remote_hostio_parse_result()

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

Definition at line 12261 of file remote.c.

Referenced by remote_target::remote_hostio_send_command().

◆ remote_new_objfile()

static void remote_new_objfile ( struct objfile * objfile)
static

Definition at line 15021 of file remote.c.

References objfile::pspace, and remote_objfile_changed_check_symbols().

◆ remote_newthread_step()

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

◆ remote_notif_get_pending_events()

void remote_notif_get_pending_events ( remote_target * remote,
const notif_client * nc )

Definition at line 8105 of file remote.c.

References remote_target::remote_notif_get_pending_events().

Referenced by remote_notif_process().

◆ remote_notif_stop_ack()

static void remote_notif_stop_ack ( remote_target * remote,
const notif_client * self,
const char * buf,
struct notif_event * event )
static

◆ remote_notif_stop_alloc_reply()

static notif_event_up remote_notif_stop_alloc_reply ( )
static

Definition at line 7432 of file remote.c.

◆ remote_notif_stop_can_get_pending_events()

static int remote_notif_stop_can_get_pending_events ( remote_target * remote,
const notif_client * self )
static

◆ remote_notif_stop_parse()

static void remote_notif_stop_parse ( remote_target * remote,
const notif_client * self,
const char * buf,
struct notif_event * event )
static

Definition at line 7387 of file remote.c.

References remote_state::buf, and remote_target::remote_parse_stop_reply().

◆ remote_objfile_changed_check_symbols()

static void remote_objfile_changed_check_symbols ( program_space * pspace)
static

◆ remote_packet_size()

static void remote_packet_size ( remote_target * remote,
const protocol_feature * feature,
enum packet_support support,
const char * value )
static

Definition at line 5488 of file remote.c.

References remote_target::remote_packet_size().

◆ remote_put_command()

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

Definition at line 13079 of file remote.c.

References error_no_arg(), and remote_file_put().

◆ remote_query_supported_append()

static void remote_query_supported_append ( std::string * msg,
const char * append )
static

Definition at line 5637 of file remote.c.

Referenced by remote_target::remote_query_supported().

◆ remote_read_description_p()

static bool remote_read_description_p ( struct target_ops * target)
static

Definition at line 12150 of file remote.c.

References get_g_packet_data(), and target_gdbarch().

Referenced by remote_target::start_remote_1().

◆ remote_register_number_and_offset()

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

◆ remote_serial_open()

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

Definition at line 5362 of file remote.c.

References name, and serial_open().

Referenced by remote_target::open_1().

◆ remote_serial_quit_handler()

static void remote_serial_quit_handler ( )
static

◆ remote_supported_packet()

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

◆ remote_target_is_non_stop_p()

bool remote_target_is_non_stop_p ( remote_target * t)

◆ remote_thread_always_alive()

static int remote_thread_always_alive ( ptid_t ptid)
static

Definition at line 3130 of file remote.c.

References magic_null_ptid().

Referenced by remote_target::thread_alive(), and remote_target::update_thread_list().

◆ remote_unpush_and_throw()

static void remote_unpush_and_throw ( remote_target * target)
static

Definition at line 5911 of file remote.c.

References remote_unpush_target().

Referenced by remote_target::remote_serial_quit_handler().

◆ remote_unpush_target()

static void remote_unpush_target ( remote_target * target)
static

◆ resume_clear_thread_private_info()

static void resume_clear_thread_private_info ( struct thread_info * thread)
static

◆ send_remote_packet()

void send_remote_packet ( gdb::array_view< const char > & buf,
send_remote_packet_callbacks * callbacks )

◆ set_memory_packet_size()

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

◆ set_memory_read_packet_size()

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

◆ set_memory_write_packet_size()

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

◆ set_pspace_remote_exec_file()

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

◆ set_range_stepping()

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

◆ set_remote_exec_file()

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

◆ set_remote_protocol_packet_cmd()

static void set_remote_protocol_packet_cmd ( const char * args,
int from_tty,
cmd_list_element * c )
static

◆ 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

◆ set_remotebreak()

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

◆ show_hardware_breakpoint_limit()

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

Definition at line 2159 of file remote.c.

References gdb_printf().

◆ show_hardware_watchpoint_length_limit()

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

Definition at line 2148 of file remote.c.

References gdb_printf().

◆ show_hardware_watchpoint_limit()

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

Definition at line 2137 of file remote.c.

References gdb_printf().

◆ show_interrupt_sequence()

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

◆ show_memory_packet_size()

static void show_memory_packet_size ( memory_packet_config * config,
remote_target * remote )
static

◆ show_memory_read_packet_size()

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

◆ show_memory_write_packet_size()

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

◆ show_packet_config_cmd()

static void show_packet_config_cmd ( ui_file * file,
const unsigned int which_packet,
remote_target * remote )
static

◆ 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 15076 of file remote.c.

References gdb_printf().

◆ show_remote_cmd()

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

◆ show_remote_debug()

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

Definition at line 15113 of file remote.c.

References gdb_printf().

◆ 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 1704 of file remote.c.

References gdb_printf(), and get_remote_exec_file().

◆ show_remote_packet_max_chars()

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

Definition at line 2176 of file remote.c.

References gdb_printf().

◆ 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

◆ 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

◆ show_remote_timeout()

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

Definition at line 15121 of file remote.c.

References gdb_printf().

◆ 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 1928 of file remote.c.

◆ show_watchdog()

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

Definition at line 10035 of file remote.c.

References gdb_printf().

◆ stop_reply_extract_thread()

static ptid_t stop_reply_extract_thread ( const char * stop_reply)
static

Definition at line 4575 of file remote.c.

References read_ptid().

Referenced by remote_target::get_current_thread().

◆ strprefix()

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

Definition at line 7676 of file remote.c.

References prefix.

Referenced by remote_target::remote_parse_stop_reply().

◆ stub_unpack_int()

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

Definition at line 3350 of file remote.c.

References stubhex().

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

◆ stubhex()

static int stubhex ( int ch)
static

Definition at line 3338 of file remote.c.

Referenced by stub_unpack_int(), and unpack_threadid().

◆ thread_pending_fork_status()

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

◆ threadmatch()

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

◆ threadref_to_int()

static int threadref_to_int ( threadref * ref)
static

Definition at line 3485 of file remote.c.

References scan(), and value.

Referenced by remote_newthread_step().

◆ trace_error()

static void trace_error ( char * buf)
static

Definition at line 1532 of file remote.c.

Referenced by remote_target::remote_get_noisy_reply().

◆ unpack_byte()

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

◆ unpack_int()

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

Definition at line 3391 of file remote.c.

References stub_unpack_int().

Referenced by remote_target::remote_unpack_thread_info_response().

◆ unpack_nibble()

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

Definition at line 3367 of file remote.c.

Referenced by remote_target::parse_threadlist_response().

◆ unpack_string()

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

Definition at line 3422 of file remote.c.

Referenced by remote_target::remote_unpack_thread_info_response().

◆ unpack_threadid()

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

◆ unpush_and_perror()

static void unpush_and_perror ( remote_target * target,
const char * string )
static

Definition at line 9600 of file remote.c.

References remote_unpush_target().

Referenced by remote_target::readchar(), and remote_target::remote_serial_write().

◆ watchpoint_to_Z_packet()

static enum Z_packet_type watchpoint_to_Z_packet ( int type)
static

Variable Documentation

◆ curr_quit_handler_target

remote_target* curr_quit_handler_target
static

◆ extended_remote_target_info

const target_info extended_remote_target_info
static
Initial value:
= {
"extended-remote",
N_("Extended remote target using gdb-specific protocol"),
}
static const char remote_doc[]
Definition remote.c:85

Definition at line 1260 of file remote.c.

Referenced by extended_remote_target::info().

◆ interrupt_on_connect

bool interrupt_on_connect = false
static

Definition at line 1911 of file remote.c.

Referenced by remote_target::start_remote_1().

◆ interrupt_sequence_break

const char interrupt_sequence_break[] = "BREAK"

◆ interrupt_sequence_break_g

const char interrupt_sequence_break_g[] = "BREAK-g"

Definition at line 1873 of file remote.c.

Referenced by remote_target::send_interrupt_sequence(), and show_interrupt_sequence().

◆ interrupt_sequence_control_c

const char interrupt_sequence_control_c[] = "Ctrl-C"

◆ interrupt_sequence_mode

const char* interrupt_sequence_mode = interrupt_sequence_control_c
static

◆ interrupt_sequence_modes

const char* const interrupt_sequence_modes[]
static
Initial value:
=
{
NULL
}
const char interrupt_sequence_control_c[]
Definition remote.c:1871
const char interrupt_sequence_break_g[]
Definition remote.c:1873
const char interrupt_sequence_break[]
Definition remote.c:1872

Definition at line 1874 of file remote.c.

◆ memory_read_packet_config

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

Definition at line 614 of file remote.c.

Referenced by remote_features::remote_features(), set_memory_read_packet_size(), and show_memory_read_packet_size().

◆ memory_write_packet_config

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

Definition at line 618 of file remote.c.

Referenced by remote_features::remote_features(), set_memory_write_packet_size(), and show_memory_write_packet_size().

◆ notif_client_stop

const notif_client notif_client_stop
Initial value:
=
{
"Stop",
"vStopped",
}
@ REMOTE_NOTIF_STOP
static notif_event_up remote_notif_stop_alloc_reply()
Definition remote.c:7432
static int remote_notif_stop_can_get_pending_events(remote_target *remote, const notif_client *self)
Definition remote.c:7412
static void remote_notif_stop_ack(remote_target *remote, const notif_client *self, const char *buf, struct notif_event *event)
Definition remote.c:7395
static void remote_notif_stop_parse(remote_target *remote, const notif_client *self, const char *buf, struct notif_event *event)
Definition remote.c:7387

Definition at line 7439 of file remote.c.

Referenced by extended_remote_target::attach(), remote_target::check_pending_events_prevent_wildcard_vcont(), remote_target::discard_pending_stop_replies(), remote_target::kill_new_fork_children(), remote_target::remote_detach_1(), remote_target::remove_new_fork_children(), remote_target::resume(), remote_target::start_remote_1(), remote_target::wait(), remote_target::wait_as(), and remote_target::wait_ns().

◆ packets_descriptions

packet_description packets_descriptions[PACKET_MAX]
static

◆ remote_address_size

unsigned int remote_address_size
static

Definition at line 1945 of file remote.c.

Referenced by remote_address_masked().

◆ remote_async_serial_handler

serial_event_ftype remote_async_serial_handler
static

Definition at line 14850 of file remote.c.

Referenced by remote_target::async().

◆ remote_break

bool remote_break
static

Definition at line 1916 of file remote.c.

Referenced by set_remotebreak().

◆ remote_cmdlist

struct cmd_list_element* remote_cmdlist
static

Definition at line 1399 of file remote.c.

◆ remote_debug

bool remote_debug = false

◆ remote_doc

const char remote_doc[]
static
Initial value:
= N_("\
Use a remote computer via a serial line, using a gdb-specific protocol.\n\
Specify the serial device it is connected to\n\
(e.g. /dev/ttyS0, /dev/ttya, COM1, etc.).")

Definition at line 85 of file remote.c.

◆ remote_exec_file_var

std::string remote_exec_file_var
static

Definition at line 1345 of file remote.c.

Referenced by set_remote_exec_file().

◆ remote_flash_timeout

const int remote_flash_timeout = 1000
static

◆ remote_g_packet_data_handle

const registry<gdbarch>::key<struct remote_g_packet_data> remote_g_packet_data_handle
static

Definition at line 12118 of file remote.c.

Referenced by get_g_packet_data().

◆ remote_hw_breakpoint_limit

int remote_hw_breakpoint_limit = -1
static

Definition at line 10898 of file remote.c.

Referenced by remote_target::can_use_hw_breakpoint().

◆ remote_hw_watchpoint_length_limit

int remote_hw_watchpoint_length_limit = -1
static

Definition at line 10897 of file remote.c.

Referenced by remote_target::region_ok_for_hw_watchpoint().

◆ remote_hw_watchpoint_limit

int remote_hw_watchpoint_limit = -1
static

Definition at line 10896 of file remote.c.

Referenced by remote_target::can_use_hw_breakpoint().

◆ remote_packet_max_chars

int remote_packet_max_chars = 512
static

Definition at line 2170 of file remote.c.

Referenced by remote_target::getpkt(), and remote_target::putpkt_binary().

◆ remote_protocol_features

const struct protocol_feature remote_protocol_features[]
static

Definition at line 5494 of file remote.c.

Referenced by remote_target::remote_query_supported().

◆ remote_protocol_packets

packet_config remote_protocol_packets[PACKET_MAX]
static

◆ remote_pspace_data

const registry<program_space>::key<char, gdb::xfree_deleter<char> > remote_pspace_data
static

Definition at line 1339 of file remote.c.

Referenced by get_remote_exec_file(), and set_pspace_remote_exec_file().

◆ remote_set_cmdlist

struct cmd_list_element* remote_set_cmdlist
static

Definition at line 1403 of file remote.c.

Referenced by add_packet_config_cmd(), and initialize_remote_fileio().

◆ remote_show_cmdlist

struct cmd_list_element* remote_show_cmdlist
static

Definition at line 1404 of file remote.c.

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

◆ remote_support_xml

char* remote_support_xml
static

◆ remote_target_info

const target_info remote_target_info
static
Initial value:
= {
"remote",
N_("Remote target using gdb-specific protocol"),
}

Definition at line 564 of file remote.c.

Referenced by remote_target::info().

◆ remote_Z_packet_detect

enum auto_boolean remote_Z_packet_detect
static

Definition at line 2510 of file remote.c.

Referenced by set_remote_protocol_Z_packet_cmd().

◆ use_range_stepping

bool use_range_stepping = true
static

Definition at line 1408 of file remote.c.

Referenced by remote_target::append_resumption(), and set_range_stepping().

◆ watchdog

int watchdog = 0
static

Definition at line 10033 of file remote.c.

Referenced by remote_target::getpkt().