GDB (xrefs)
|
#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_reply > | stop_reply_up |
typedef int | gdb_threadref |
Functions | |
static const char * | get_packet_support_name (auto_boolean support) |
static const char * | get_target_type_name (bool target_connected) |
static remote_target * | as_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_target * | get_current_remote_target () |
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_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_info * | get_remote_thread_info (thread_info *thread) |
static remote_thread_info * | get_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 serial * | remote_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_waitstatus * | thread_pending_fork_status (struct thread_info *thread) |
static void | resume_clear_thread_private_info (struct thread_info *thread) |
static remote_inferior * | get_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_data * | get_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 () |
#define BUF_THREAD_ID_SIZE (OPAQUETHREADBYTES * 2) |
Definition at line 3226 of file remote.c.
Referenced by pack_threadid(), remote_target::parse_threadlist_response(), remote_target::remote_get_threadlist(), and unpack_threadid().
#define CRAZY_MAX_THREADS 1000 |
Definition at line 3917 of file remote.c.
Referenced by remote_target::remote_get_threads_with_ql().
#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().
#define MAX_ACTION_SIZE 200 |
Definition at line 6858 of file remote.c.
Referenced by vcont_builder::push_action().
#define MAX_TRIES 3 |
#define MAXTHREADLISTRESULTS 32 |
Definition at line 332 of file remote.c.
Referenced by remote_target::remote_threadlist_iterator().
#define MIN_MEMORY_PACKET_SIZE 20 |
Definition at line 1956 of file remote.c.
Referenced by remote_target::get_memory_packet_size().
#define TAG_DISPLAY 4 |
Definition at line 3222 of file remote.c.
Referenced by remote_target::extra_thread_info(), and remote_target::remote_unpack_thread_info_response().
#define TAG_DISPLAY 4 /* A short thing maybe to put on a window */ |
#define TAG_EXISTS 2 |
Definition at line 3221 of file remote.c.
Referenced by remote_target::extra_thread_info(), and remote_target::remote_unpack_thread_info_response().
#define TAG_EXISTS |
#define TAG_MOREDISPLAY 16 |
Definition at line 3224 of file remote.c.
Referenced by remote_target::extra_thread_info(), and remote_target::remote_unpack_thread_info_response().
#define TAG_MOREDISPLAY |
#define TAG_THREADID 1 |
Definition at line 3220 of file remote.c.
Referenced by remote_target::extra_thread_info(), and remote_target::remote_unpack_thread_info_response().
#define TAG_THREADNAME 8 |
Definition at line 3223 of file remote.c.
Referenced by remote_target::extra_thread_info(), and remote_target::remote_unpack_thread_info_response().
#define TAG_THREADNAME 8 /* string, maps 1-to-1 with a thread is. */ |
typedef int gdb_threadref |
typedef int(* rmt_thread_action) (threadref *ref, void *context) |
typedef std::unique_ptr<stop_reply> stop_reply_up |
typedef unsigned char threadref[OPAQUETHREADBYTES] |
anonymous enum |
enum packet_result |
enum packet_support |
|
strong |
enum Z_packet_type |
void _initialize_remote | ( | ) |
Definition at line 15333 of file remote.c.
Referenced by initialize_all_files().
|
static |
Definition at line 2316 of file remote.c.
References add_alias_cmd(), add_setshow_auto_boolean_cmd(), class_obscure, packet_config::detect, name, packet_description::name, packets_descriptions, remote_protocol_packets, remote_set_cmdlist, remote_show_cmdlist, set_show_commands::set, cmd_list_element::set_context(), set_remote_protocol_packet_cmd(), set_show_commands::show, show_remote_protocol_packet_cmd(), and packet_description::title.
|
static |
Definition at line 9097 of file remote.c.
References REMOTE_ALIGN_WRITES.
Referenced by remote_target::remote_write_bytes_aux().
|
static |
Referenced by remote_target::remote_resume_with_hc(), and remote_target::set_thread().
|
static |
Definition at line 1324 of file remote.c.
Referenced by is_remote_target(), and remote_objfile_changed_check_symbols().
|
static |
Definition at line 14493 of file remote.c.
References current_inferior(), parse_xml_btrace_conf(), switch_to_thread(), TARGET_OBJECT_BTRACE_CONF, and target_read_stralloc().
Referenced by remote_target::enable_btrace(), and remote_target::remote_btrace_maybe_reopen().
|
static |
Definition at line 11811 of file remote.c.
References send_remote_packet().
|
static |
Definition at line 11156 of file remote.c.
References current_program_space, program_space::exec_bfd(), gdb_printf(), paddress(), size, target_gdbarch(), and target_verify_memory().
Definition at line 3499 of file remote.c.
Referenced by remote_target::remote_threadlist_iterator(), and remote_target::remote_unpack_thread_info_response().
|
static |
Definition at line 15140 of file remote.c.
References gdbarch_addr_bit(), and target_gdbarch().
Referenced by remote_target::fetch_memtags().
|
static |
Definition at line 15173 of file remote.c.
References gdbarch_addr_bit(), and target_gdbarch().
Referenced by remote_target::store_memtags().
|
static |
Definition at line 9685 of file remote.c.
References remote_state::buf, ui_file::putstrn(), and string_file::release().
Referenced by remote_target::getpkt(), remote_target::putpkt_binary(), and remote_target::read_frame().
|
static |
Definition at line 8341 of file remote.c.
References all_non_exited_threads().
Referenced by remote_target::wait_as().
|
static |
Definition at line 1813 of file remote.c.
References current_inferior(), and inferior::process_target().
Referenced by remote_target::open_1(), remote_file_delete(), remote_file_get(), remote_file_put(), send_remote_packet(), set_memory_read_packet_size(), set_memory_write_packet_size(), set_range_stepping(), set_remote_protocol_packet_cmd(), set_remote_protocol_Z_packet_cmd(), show_memory_read_packet_size(), show_memory_write_packet_size(), show_remote_protocol_packet_cmd(), and show_remote_protocol_Z_packet_cmd().
|
static |
Definition at line 1961 of file remote.c.
References DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED, memory_packet_config::fixed_p, and memory_packet_config::size.
Referenced by remote_target::get_memory_packet_size(), and show_memory_packet_size().
|
static |
Definition at line 12121 of file remote.c.
References registry< T >::get(), and remote_g_packet_data_handle.
Referenced by remote_target::read_description(), register_remote_g_packet_guess(), and remote_read_description_p().
|
static |
Definition at line 122 of file remote.c.
References AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_FALSE, and AUTO_BOOLEAN_TRUE.
Referenced by set_remote_protocol_packet_cmd(), set_remote_protocol_Z_packet_cmd(), and show_packet_config_cmd().
|
static |
Definition at line 1668 of file remote.c.
References current_program_space, registry< T >::get(), and remote_pspace_data.
Referenced by extended_remote_target::create_inferior(), remote_target::extended_remote_run(), and show_remote_exec_file().
|
static |
Definition at line 6782 of file remote.c.
Referenced by remote_target::check_pending_events_prevent_wildcard_vcont(), and remote_target::commit_resumed().
|
static |
Definition at line 2869 of file remote.c.
References process_stratum_target::find_thread(), and get_remote_thread_info().
|
static |
Definition at line 2856 of file remote.c.
References thread_info::priv.
Referenced by remote_target::commit_resumed(), remote_target::core_of_thread(), remote_target::extra_thread_info(), get_remote_thread_info(), remote_target::process_initial_stop_replies(), remote_target::process_stop_reply(), remote_target::remote_add_thread(), remote_target::remote_stop_ns(), remote_target::resume(), resume_clear_thread_private_info(), remote_target::select_thread_for_ambiguous_stop_reply(), remote_target::start_remote_1(), remote_target::stopped_by_hw_breakpoint(), remote_target::stopped_by_sw_breakpoint(), remote_target::stopped_by_watchpoint(), remote_target::stopped_data_address(), remote_target::thread_handle_to_thread_info(), remote_target::thread_info_to_thread_handle(), remote_target::thread_name(), and remote_target::update_thread_list().
|
static |
Definition at line 141 of file remote.c.
Referenced by set_memory_packet_size(), set_remote_protocol_packet_cmd(), set_remote_protocol_Z_packet_cmd(), show_memory_packet_size(), and show_packet_config_cmd().
|
static |
Definition at line 4090 of file remote.c.
Referenced by remote_target::update_thread_list().
|
static |
Definition at line 8977 of file remote.c.
Referenced by hexnumstr(), remote_buffer_add_int(), and remote_target::remote_write_bytes_aux().
|
static |
Definition at line 9001 of file remote.c.
References remote_state::buf.
Referenced by hexnumstr(), and remote_target::remote_write_bytes_aux().
|
static |
Definition at line 8990 of file remote.c.
References remote_state::buf, hexnumlen(), and hexnumnstr().
Referenced by remote_target::check_binary_download(), remote_target::fetch_register_using_p(), remote_target::get_raw_trace_data(), remote_target::get_thread_local_address(), remote_target::insert_breakpoint(), remote_target::insert_hw_breakpoint(), remote_target::insert_watchpoint(), remote_buffer_add_int(), remote_target::remote_read_bytes_1(), remote_target::remote_write_bytes_aux(), remote_target::remove_breakpoint(), remote_target::remove_hw_breakpoint(), remote_target::remove_watchpoint(), remote_target::set_trace_buffer_size(), and remote_target::static_tracepoint_marker_at().
|
static |
Definition at line 5288 of file remote.c.
References AUTO_BOOLEAN_AUTO, packet_config::detect, PACKET_MAX, PACKET_SUPPORT_UNKNOWN, remote_protocol_packets, and packet_config::support.
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().
|
static |
Definition at line 6072 of file remote.c.
References TARGET_WAITKIND_FORKED, and TARGET_WAITKIND_VFORKED.
Referenced by remote_target::kill_new_fork_children(), remote_target::remote_detach_1(), and thread_pending_fork_status().
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().
|
static |
Referenced by remote_target::add_current_inferior_and_thread(), remote_target::append_resumption(), remote_target::extra_thread_info(), remote_target::pid_to_str(), read_ptid(), remote_target::remote_notice_new_inferior(), remote_target::remote_resume_with_vcont(), remote_thread_always_alive(), remote_target::set_thread(), and remote_target::wait_as().
|
static |
Definition at line 1711 of file remote.c.
References gdbarch_num_regs(), gdbarch_remote_register_number(), packet_reg::in_g_packet, packet_reg::offset, packet_reg::pnum, register_size(), regnum, and packet_reg::regnum.
Referenced by remote_arch_state::remote_arch_state(), and remote_register_number_and_offset().
|
static |
Referenced by remote_target::open_1().
|
static |
Definition at line 3381 of file remote.c.
Referenced by pack_threadinfo_request().
|
static |
Definition at line 3431 of file remote.c.
References BUF_THREAD_ID_SIZE.
Referenced by pack_threadinfo_request(), and pack_threadlist_request().
|
static |
Definition at line 3540 of file remote.c.
References pack_int(), and pack_threadid().
Referenced by remote_target::remote_get_threadinfo().
|
static |
Definition at line 3677 of file remote.c.
References remote_state::nextthread, and pack_threadid().
Referenced by remote_target::remote_get_threadlist().
|
static |
Definition at line 2360 of file remote.c.
References remote_state::buf, PACKET_ERROR, PACKET_OK, and PACKET_UNKNOWN.
Referenced by packet_check_result(), remote_features::packet_ok(), remote_target::remote_send_printf(), remote_target::send_g_packet(), remote_target::store_memtags(), and remote_target::store_registers_using_G().
|
static |
Definition at line 2386 of file remote.c.
References remote_state::buf, and packet_check_result().
|
static |
Definition at line 2453 of file remote.c.
References AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_FALSE, AUTO_BOOLEAN_TRUE, packet_config::detect, PACKET_DISABLE, PACKET_ENABLE, and packet_config::support.
Referenced by remote_target::enable_btrace(), remote_features::packet_support(), and show_packet_config_cmd().
|
static |
Definition at line 1850 of file remote.c.
References gdbarch_num_regs(), packet_reg::pnum, and remote_arch_state::regs.
Referenced by remote_target::remote_parse_stop_reply().
|
static |
Definition at line 1835 of file remote.c.
References gdbarch_num_regs(), regnum, packet_reg::regnum, and remote_arch_state::regs.
Referenced by remote_target::fetch_registers(), and remote_target::store_registers().
|
static |
Definition at line 15158 of file remote.c.
Referenced by remote_target::fetch_memtags().
|
static |
Definition at line 14305 of file remote.c.
References gdb_xml_parse_quick().
Referenced by remote_target::read_btrace().
|
static |
Definition at line 14405 of file remote.c.
References gdb_xml_parse_quick().
Referenced by btrace_read_config().
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().
|
static |
Definition at line 3291 of file remote.c.
References current_inferior(), magic_null_ptid(), inf::pid, and pid.
Referenced by remote_target::remote_current_thread(), remote_target::remote_get_threads_with_qthreadinfo(), remote_target::remote_parse_stop_reply(), and stop_reply_extract_thread().
|
static |
Definition at line 2881 of file remote.c.
References remote_state::general_thread.
Referenced by extended_remote_target::attach(), remote_target::mourn_inferior(), and remote_target::wait_as().
void register_remote_g_packet_guess | ( | struct gdbarch * | gdbarch, |
int | bytes, | ||
const struct target_desc * | tdesc ) |
Definition at line 12131 of file remote.c.
References get_g_packet_data().
Referenced by arm_register_g_packet_guesses(), microblaze_register_g_packet_guesses(), and mips_register_g_packet_guesses().
void register_remote_support_xml | ( | const char * | xml | ) |
Definition at line 5606 of file remote.c.
References remote_support_xml, and xfree().
|
static |
Definition at line 10666 of file remote.c.
References remote_state::buf, bp_target_info::persist, and bp_target_info::tcommands.
Referenced by remote_target::insert_breakpoint(), and remote_target::insert_hw_breakpoint().
|
static |
Definition at line 10642 of file remote.c.
References remote_state::buf, and bp_target_info::conditions.
Referenced by remote_target::insert_breakpoint(), and remote_target::insert_hw_breakpoint().
|
static |
Definition at line 9019 of file remote.c.
References gdbarch_addr_bit(), remote_address_size, and target_gdbarch().
Referenced by remote_target::insert_breakpoint(), remote_target::insert_hw_breakpoint(), remote_target::insert_watchpoint(), remote_target::remote_read_bytes_1(), remote_target::remote_write_bytes_aux(), remote_target::remove_breakpoint(), remote_target::remove_hw_breakpoint(), remote_target::remove_watchpoint(), and remote_target::watchpoint_addr_within_range().
|
static |
Definition at line 14861 of file remote.c.
References INF_REG_EVENT, and inferior_event_handler().
Referenced by remote_target::open_1().
|
static |
Definition at line 14853 of file remote.c.
References INF_REG_EVENT, and inferior_event_handler().
|
static |
Definition at line 14426 of file remote.c.
Referenced by remote_target::open_1().
|
static |
Definition at line 12213 of file remote.c.
Referenced by remote_target::fileio_readlink(), remote_target::remote_hostio_open(), and remote_target::remote_hostio_unlink().
|
static |
Definition at line 12234 of file remote.c.
References hexnumlen(), and hexnumstr().
Referenced by remote_target::fileio_fstat(), remote_target::remote_hostio_close(), remote_target::remote_hostio_open(), remote_target::remote_hostio_pread_vFile(), and remote_target::remote_hostio_pwrite().
|
static |
Definition at line 12191 of file remote.c.
Referenced by remote_target::fileio_fstat(), remote_target::fileio_readlink(), remote_target::remote_hostio_close(), remote_target::remote_hostio_open(), remote_target::remote_hostio_pread_vFile(), remote_target::remote_hostio_pwrite(), remote_target::remote_hostio_set_filesystem(), and remote_target::remote_hostio_unlink().
|
static |
Definition at line 7361 of file remote.c.
References ui_file::flush(), gdb_stdtarg, and ui_file::puts().
Referenced by remote_target::rcmd(), remote_target::remote_get_noisy_reply(), remote_target::wait_as(), and remote_target::wait_ns().
|
static |
Definition at line 13105 of file remote.c.
References error_no_arg(), and remote_file_delete().
void remote_file_delete | ( | const char * | remote_file, |
int | from_tty ) |
Definition at line 13054 of file remote.c.
References get_current_remote_target(), and remote_target::remote_file_delete().
Referenced by mi_cmd_target_file_delete(), and remote_delete_command().
void remote_file_get | ( | const char * | remote_file, |
const char * | local_file, | ||
int | from_tty ) |
Definition at line 12994 of file remote.c.
References get_current_remote_target(), and remote_target::remote_file_get().
Referenced by mi_cmd_target_file_get(), and remote_get_command().
void remote_file_put | ( | const char * | local_file, |
const char * | remote_file, | ||
int | from_tty ) |
Definition at line 12901 of file remote.c.
References get_current_remote_target(), and remote_target::remote_file_put().
Referenced by mi_cmd_target_file_put(), and remote_put_command().
|
static |
Definition at line 13092 of file remote.c.
References error_no_arg(), and remote_file_get().
|
static |
Definition at line 12838 of file remote.c.
Referenced by remote_target::remote_file_delete(), remote_target::remote_file_get(), and remote_target::remote_file_put().
|
static |
Definition at line 12261 of file remote.c.
Referenced by remote_target::remote_hostio_send_command().
|
static |
Definition at line 15021 of file remote.c.
References objfile::pspace, and remote_objfile_changed_check_symbols().
|
static |
Definition at line 3904 of file remote.c.
References inferior_ptid, threads_listing_context::items, pid, and threadref_to_int().
Referenced by remote_target::remote_get_threads_with_ql().
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().
|
static |
Definition at line 7395 of file remote.c.
References notif_client::ack_command, target_waitstatus::kind(), remote_target::push_stop_reply(), putpkt(), TARGET_WAITKIND_IGNORE, and stop_reply::ws.
|
static |
|
static |
Definition at line 7412 of file remote.c.
References remote_target::get_remote_state(), mark_async_event_handler(), remote_state::remote_async_inferior_event_token, and stop_reply::rs.
|
static |
Definition at line 7387 of file remote.c.
References remote_state::buf, and remote_target::remote_parse_stop_reply().
|
static |
Definition at line 14968 of file remote.c.
References all_inferiors(), any_thread_of_inferior(), as_remote_target(), process_stratum_target::has_execution(), remote_target::remote_check_symbols(), and switch_to_thread().
Referenced by remote_new_objfile().
|
static |
Definition at line 5488 of file remote.c.
References remote_target::remote_packet_size().
|
static |
Definition at line 13079 of file remote.c.
References error_no_arg(), and remote_file_put().
|
static |
Definition at line 5637 of file remote.c.
Referenced by remote_target::remote_query_supported().
|
static |
Definition at line 12150 of file remote.c.
References get_g_packet_data(), and target_gdbarch().
Referenced by remote_target::start_remote_1().
int remote_register_number_and_offset | ( | struct gdbarch * | gdbarch, |
int | regnum, | ||
int * | pnum, | ||
int * | poffset ) |
Definition at line 1761 of file remote.c.
References gdbarch_num_regs(), map_regcache_remote_table(), packet_reg::pnum, and regnum.
Referenced by register_dump_remote::dump_reg(), and tfile_target::fetch_registers().
|
static |
Definition at line 5362 of file remote.c.
References name, and serial_open().
Referenced by remote_target::open_1().
|
static |
Definition at line 5877 of file remote.c.
References curr_quit_handler_target, and remote_target::remote_serial_quit_handler().
|
static |
Definition at line 5440 of file remote.c.
References remote_target::m_features, remote_features::m_protocol_packets, protocol_feature::name, protocol_feature::packet, and packet_config::support.
bool remote_target_is_non_stop_p | ( | remote_target * | t | ) |
Definition at line 15237 of file remote.c.
References switch_to_target_no_thread(), and target_is_non_stop_p().
Referenced by remote_async_get_pending_events_handler().
|
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().
|
static |
Definition at line 5911 of file remote.c.
References remote_unpush_target().
Referenced by remote_target::remote_serial_quit_handler().
|
static |
Definition at line 5887 of file remote.c.
References all_inferiors(), fileio_handles_invalidate_target(), generic_mourn_inferior(), process_stratum, and switch_to_inferior_no_thread().
Referenced by remote_target::disconnect(), remote_target::getpkt(), remote_target::interrupt_query(), remote_target::mourn_inferior(), remote_target::open_1(), remote_target::readchar(), remote_unpush_and_throw(), and unpush_and_perror().
|
static |
Definition at line 6545 of file remote.c.
References get_remote_thread_info(), thread_info::priv, remote_thread_info::stop_reason, TARGET_STOPPED_BY_NO_REASON, and remote_thread_info::watch_data_address.
Referenced by remote_target::append_pending_thread_resumptions(), and remote_target::remote_resume_with_hc().
void send_remote_packet | ( | gdb::array_view< const char > & | buf, |
send_remote_packet_callbacks * | callbacks ) |
Definition at line 11785 of file remote.c.
References remote_state::buf, get_current_remote_target(), remote_target::get_remote_state(), remote_target::getpkt(), remote_target::putpkt_binary(), send_remote_packet_callbacks::received(), and send_remote_packet_callbacks::sending().
Referenced by cli_packet_command(), and connpy_send_packet().
|
static |
Definition at line 2013 of file remote.c.
References DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED, memory_packet_config::fixed_p, gdb_printf(), get_target_type_name(), memory_packet_config::name, query(), size, and memory_packet_config::size.
Referenced by set_memory_read_packet_size(), and set_memory_write_packet_size().
|
static |
Definition at line 2195 of file remote.c.
References get_current_remote_target(), remote_target::m_features, remote_features::m_memory_read_packet_config, memory_read_packet_config, and set_memory_packet_size().
|
static |
Definition at line 2104 of file remote.c.
References get_current_remote_target(), remote_target::m_features, remote_features::m_memory_write_packet_config, memory_write_packet_config, and set_memory_packet_size().
|
static |
Definition at line 1682 of file remote.c.
References registry< T >::get(), remote_pspace_data, registry< T >::set(), and xfree().
Referenced by remote_target::follow_exec(), and set_remote_exec_file().
|
static |
Definition at line 15098 of file remote.c.
References get_current_remote_target(), use_range_stepping, and remote_target::vcont_r_supported().
|
static |
Definition at line 1694 of file remote.c.
References current_program_space, remote_exec_file_var, and set_pspace_remote_exec_file().
|
static |
Definition at line 2241 of file remote.c.
References cmd_list_element::context(), packet_config::detect, gdb_printf(), get_current_remote_target(), get_packet_support_name(), get_target_type_name(), remote_target::m_features, remote_features::m_protocol_packets, name, cmd_list_element::name, packet_description::name, PACKET_MAX, packets_descriptions, remote_protocol_packets, value, and cmd_list_element::var.
Referenced by add_packet_config_cmd().
|
static |
Definition at line 2513 of file remote.c.
References packet_config::detect, gdb_printf(), get_current_remote_target(), get_packet_support_name(), get_target_type_name(), remote_target::m_features, remote_features::m_protocol_packets, NR_Z_PACKET_TYPES, PACKET_Z0, remote_protocol_packets, and remote_Z_packet_detect.
|
static |
Definition at line 1919 of file remote.c.
References interrupt_sequence_break, interrupt_sequence_control_c, interrupt_sequence_mode, and remote_break.
|
static |
Definition at line 2159 of file remote.c.
References gdb_printf().
|
static |
Definition at line 2148 of file remote.c.
References gdb_printf().
|
static |
Definition at line 2137 of file remote.c.
References gdb_printf().
|
static |
Definition at line 1884 of file remote.c.
References gdb_printf(), interrupt_sequence_break, interrupt_sequence_break_g, interrupt_sequence_control_c, and interrupt_sequence_mode.
|
static |
Definition at line 2075 of file remote.c.
References memory_packet_config::fixed_p, gdb_printf(), gdb_puts(), get_fixed_memory_packet_size(), remote_target::get_memory_packet_size(), get_target_type_name(), memory_packet_config::name, and memory_packet_config::size.
Referenced by show_memory_read_packet_size(), and show_memory_write_packet_size().
|
static |
Definition at line 2214 of file remote.c.
References get_current_remote_target(), remote_target::m_features, remote_features::m_memory_read_packet_config, memory_read_packet_config, and show_memory_packet_size().
|
static |
Definition at line 2124 of file remote.c.
References get_current_remote_target(), remote_target::m_features, remote_features::m_memory_write_packet_config, memory_write_packet_config, and show_memory_packet_size().
|
static |
Definition at line 2272 of file remote.c.
References AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_FALSE, AUTO_BOOLEAN_TRUE, packet_config::detect, gdb_printf(), get_packet_support_name(), get_target_type_name(), remote_target::m_features, remote_features::m_protocol_packets, name, packet_config_support(), PACKET_DISABLE, PACKET_ENABLE, PACKET_SUPPORT_UNKNOWN, packets_descriptions, and remote_protocol_packets.
Referenced by show_remote_protocol_packet_cmd(), and show_remote_protocol_Z_packet_cmd().
|
static |
Definition at line 15076 of file remote.c.
References gdb_printf().
|
static |
Definition at line 14936 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.
|
static |
Definition at line 15113 of file remote.c.
References gdb_printf().
|
static |
Definition at line 1704 of file remote.c.
References gdb_printf(), and get_remote_exec_file().
|
static |
Definition at line 2176 of file remote.c.
References gdb_printf().
|
static |
Definition at line 2476 of file remote.c.
References cmd_list_element::context(), get_current_remote_target(), cmd_list_element::name, PACKET_MAX, remote_protocol_packets, show_packet_config_cmd(), and cmd_list_element::var.
Referenced by add_packet_config_cmd().
|
static |
Definition at line 2536 of file remote.c.
References get_current_remote_target(), NR_Z_PACKET_TYPES, PACKET_Z0, and show_packet_config_cmd().
|
static |
Definition at line 15121 of file remote.c.
References gdb_printf().
|
static |
|
static |
Definition at line 10035 of file remote.c.
References gdb_printf().
|
static |
Definition at line 4575 of file remote.c.
References read_ptid().
Referenced by remote_target::get_current_thread().
|
static |
Definition at line 7676 of file remote.c.
References prefix.
Referenced by remote_target::remote_parse_stop_reply().
|
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().
|
static |
Definition at line 3338 of file remote.c.
Referenced by stub_unpack_int(), and unpack_threadid().
|
static |
Definition at line 6082 of file remote.c.
References thread_info::has_pending_waitstatus(), is_fork_status(), target_waitstatus::kind(), thread_info::pending_follow, and thread_info::pending_waitstatus().
Referenced by remote_target::commit_resumed(), remote_target::kill_new_fork_children(), remote_target::remote_detach_1(), and remote_target::remove_new_fork_children().
Definition at line 3512 of file remote.c.
Referenced by remote_target::remote_get_threadlist(), and remote_target::remote_unpack_thread_info_response().
|
static |
Definition at line 3485 of file remote.c.
Referenced by remote_newthread_step().
|
static |
Definition at line 1532 of file remote.c.
Referenced by remote_target::remote_get_noisy_reply().
|
static |
Definition at line 3374 of file remote.c.
References stub_unpack_int().
Referenced by remote_target::parse_threadlist_response(), and remote_target::remote_unpack_thread_info_response().
|
static |
Definition at line 3391 of file remote.c.
References stub_unpack_int().
Referenced by remote_target::remote_unpack_thread_info_response().
|
static |
Definition at line 3367 of file remote.c.
Referenced by remote_target::parse_threadlist_response().
|
static |
Definition at line 3422 of file remote.c.
Referenced by remote_target::remote_unpack_thread_info_response().
|
static |
Definition at line 3445 of file remote.c.
References BUF_THREAD_ID_SIZE, and stubhex().
Referenced by remote_target::parse_threadlist_response(), and remote_target::remote_unpack_thread_info_response().
|
static |
Definition at line 9600 of file remote.c.
References remote_unpush_target().
Referenced by remote_target::readchar(), and remote_target::remote_serial_write().
|
static |
Definition at line 10789 of file remote.c.
References Z_PACKET_ACCESS_WP, Z_PACKET_READ_WP, and Z_PACKET_WRITE_WP.
Referenced by remote_target::insert_watchpoint(), and remote_target::remove_watchpoint().
|
static |
Definition at line 5874 of file remote.c.
Referenced by remote_target::readchar(), remote_serial_quit_handler(), and remote_target::remote_serial_write().
|
static |
Definition at line 1260 of file remote.c.
Referenced by extended_remote_target::info().
|
static |
Definition at line 1911 of file remote.c.
Referenced by remote_target::start_remote_1().
const char interrupt_sequence_break[] = "BREAK" |
Definition at line 1872 of file remote.c.
Referenced by remote_target::send_interrupt_sequence(), set_remotebreak(), and show_interrupt_sequence().
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().
const char interrupt_sequence_control_c[] = "Ctrl-C" |
Definition at line 1871 of file remote.c.
Referenced by remote_target::send_interrupt_sequence(), set_remotebreak(), and show_interrupt_sequence().
|
static |
Definition at line 1881 of file remote.c.
Referenced by remote_target::send_interrupt_sequence(), set_remotebreak(), and show_interrupt_sequence().
|
static |
|
static |
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().
|
static |
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().
const notif_client notif_client_stop |
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().
|
static |
Definition at line 624 of file remote.c.
Referenced by add_packet_config_cmd(), remote_target::btrace_sync_conf(), remote_target::disable_btrace(), remote_target::enable_btrace(), remote_features::packet_ok(), set_remote_protocol_packet_cmd(), and show_packet_config_cmd().
|
static |
Definition at line 1945 of file remote.c.
Referenced by remote_address_masked().
|
static |
Definition at line 14850 of file remote.c.
Referenced by remote_target::async().
|
static |
Definition at line 1916 of file remote.c.
Referenced by set_remotebreak().
|
static |
bool remote_debug = false |
Definition at line 92 of file remote.c.
Referenced by gdbsim_target::close(), gdbsim_target::create_inferior(), gdbsim_target::detach(), gdbsim_target::fetch_registers(), gdbsim_target::files_info(), gdbsim_target_open(), gdbsim_xfer_memory(), remote_target::getpkt(), gdbsim_target::kill(), gdbsim_target::load(), gdbsim_target::mourn_inferior(), remote_target::process_initial_stop_replies(), remote_target::putpkt_binary(), gdbsim_target::resume_one_inferior(), gdbsim_target::store_registers(), and gdbsim_target::wait().
|
static |
|
static |
Definition at line 1345 of file remote.c.
Referenced by set_remote_exec_file().
|
static |
Definition at line 9533 of file remote.c.
Referenced by remote_target::flash_done(), remote_target::flash_erase(), and remote_target::remote_flash_write().
|
static |
Definition at line 12118 of file remote.c.
Referenced by get_g_packet_data().
|
static |
Definition at line 10898 of file remote.c.
Referenced by remote_target::can_use_hw_breakpoint().
|
static |
Definition at line 10897 of file remote.c.
Referenced by remote_target::region_ok_for_hw_watchpoint().
|
static |
Definition at line 10896 of file remote.c.
Referenced by remote_target::can_use_hw_breakpoint().
|
static |
Definition at line 2170 of file remote.c.
Referenced by remote_target::getpkt(), and remote_target::putpkt_binary().
|
static |
Definition at line 5494 of file remote.c.
Referenced by remote_target::remote_query_supported().
|
static |
Definition at line 627 of file remote.c.
Referenced by add_packet_config_cmd(), init_all_packet_configs(), remote_features::remote_features(), set_remote_protocol_packet_cmd(), set_remote_protocol_Z_packet_cmd(), show_packet_config_cmd(), and show_remote_protocol_packet_cmd().
|
static |
Definition at line 1339 of file remote.c.
Referenced by get_remote_exec_file(), and set_pspace_remote_exec_file().
|
static |
Definition at line 1403 of file remote.c.
Referenced by add_packet_config_cmd(), and initialize_remote_fileio().
|
static |
Definition at line 1404 of file remote.c.
Referenced by add_packet_config_cmd(), initialize_remote_fileio(), and show_remote_cmd().
|
static |
Definition at line 5601 of file remote.c.
Referenced by register_remote_support_xml(), and remote_target::remote_query_supported().
|
static |
Definition at line 564 of file remote.c.
Referenced by remote_target::info().
|
static |
Definition at line 2510 of file remote.c.
Referenced by set_remote_protocol_Z_packet_cmd().
|
static |
Definition at line 1408 of file remote.c.
Referenced by remote_target::append_resumption(), and set_range_stepping().
|
static |
Definition at line 10033 of file remote.c.
Referenced by remote_target::getpkt().