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 "gdbcmd.h"
#include "objfiles.h"
#include "gdb-stabs.h"
#include "gdbthread.h"
#include "remote.h"
#include "remote-notif.h"
#include "regcache.h"
#include "value.h"
#include "observer.h"
#include "solib.h"
#include "cli/cli-decode.h"
#include "cli/cli-setshow.h"
#include "target-descriptions.h"
#include "gdb_bfd.h"
#include "filestuff.h"
#include "rsp-low.h"
#include <sys/time.h>
#include "event-loop.h"
#include "event-top.h"
#include "inf-loop.h"
#include <signal.h>
#include "serial.h"
#include "gdbcore.h"
#include "remote-fileio.h"
#include "gdb/fileio.h"
#include <sys/stat.h>
#include "xml-support.h"
#include "memory-map.h"
#include "tracepoint.h"
#include "ax.h"
#include "ax-gdb.h"
#include "agent.h"
#include "btrace.h"
Go to the source code of this file.
Classes | |
struct | vCont_action_support |
struct | readahead_cache |
struct | remote_state |
struct | private_thread_info |
struct | packet_reg |
struct | remote_arch_state |
struct | memory_packet_config |
struct | packet_config |
struct | gdb_ext_thread_info |
struct | thread_item |
struct | threads_listing_context |
struct | protocol_feature |
struct | cached_reg |
struct | stop_reply |
struct | queue_iter_param |
struct | remote_g_packet_guess |
struct | remote_g_packet_data |
struct | btrace_target_info |
Macros | |
#define | OPAQUETHREADBYTES 8 |
#define | MAXTHREADLISTRESULTS 32 |
#define | MAX_REMOTE_PACKET_SIZE 16384 |
#define | MIN_REMOTE_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_TRIES 3 |
#define | BUF_SIZE 2048 |
Typedefs | |
typedef unsigned char | threadref[OPAQUETHREADBYTES] |
typedef int | gdb_threadref |
typedef int(* | rmt_thread_action) (threadref *ref, void *context) |
typedef struct thread_item | thread_item_t |
typedef struct cached_reg | cached_reg_t |
typedef struct stop_reply * | stop_reply_p |
typedef struct remote_g_packet_guess | remote_g_packet_guess_s |
#define BUF_SIZE 2048 |
Referenced by remote_download_tracepoint().
#define BUF_THREAD_ID_SIZE (OPAQUETHREADBYTES * 2) |
Definition at line 2078 of file remote.c.
Referenced by pack_threadid(), parse_threadlist_response(), remote_get_threadlist(), and unpack_threadid().
#define CRAZY_MAX_THREADS 1000 |
Definition at line 2776 of file remote.c.
Referenced by remote_get_threads_with_ql().
#define MAX_REMOTE_PACKET_SIZE 16384 |
Referenced by get_memory_packet_size(), remote_packet_size(), and set_memory_packet_size().
#define MAX_TRIES 3 |
Referenced by getpkt_or_notif_sane_1().
#define MAXTHREADLISTRESULTS 32 |
Definition at line 263 of file remote.c.
Referenced by remote_threadlist_iterator().
#define MIN_REMOTE_PACKET_SIZE 20 |
Referenced by get_memory_packet_size().
#define TAG_DISPLAY 4 |
Definition at line 2428 of file remote.c.
Referenced by remote_threads_extra_info(), and remote_unpack_thread_info_response().
#define TAG_EXISTS 2 |
Definition at line 2426 of file remote.c.
Referenced by remote_threads_extra_info(), and remote_unpack_thread_info_response().
#define TAG_EXISTS |
#define TAG_MOREDISPLAY 16 |
Definition at line 2430 of file remote.c.
Referenced by remote_threads_extra_info(), and remote_unpack_thread_info_response().
#define TAG_MOREDISPLAY |
#define TAG_THREADID 1 |
Definition at line 2425 of file remote.c.
Referenced by remote_threads_extra_info(), and remote_unpack_thread_info_response().
#define TAG_THREADNAME 8 |
Definition at line 2429 of file remote.c.
Referenced by remote_threads_extra_info(), and remote_unpack_thread_info_response().
typedef struct cached_reg cached_reg_t |
typedef int gdb_threadref |
typedef struct remote_g_packet_guess remote_g_packet_guess_s |
typedef struct stop_reply * stop_reply_p |
typedef struct thread_item thread_item_t |
typedef unsigned char threadref[OPAQUETHREADBYTES] |
anonymous enum |
enum packet_result |
enum packet_support |
enum Z_packet_type |
void _initialize_remote | ( | void | ) |
Definition at line 12756 of file remote.c.
References _, add_cmd(), add_packet_config_cmd(), add_prefix_cmd(), add_setshow_auto_boolean_cmd(), add_setshow_boolean_cmd(), add_setshow_enum_cmd(), add_setshow_string_noescape_cmd(), add_setshow_zinteger_cmd(), add_setshow_zuinteger_cmd(), add_target(), async_remote_interrupt(), async_remote_interrupt_twice(), class_files, class_maintenance, class_obscure, class_run, class_support, cmdlist, compare_sections_command(), create_async_signal_handler(), deprecate_cmd(), discard_pending_stop_replies(), extended_remote_ops, gdb_assert, gdbarch_data_register_post_init(), gdbarch_data_register_pre_init(), init_all_packet_configs(), init_extended_remote_ops(), init_remote_ops(), init_remote_state(), initialize_remote_fileio(), interrupt_on_connect, interrupt_sequence_mode, interrupt_sequence_modes, lookup_cmd(), maintenancelist, name, new_remote_state(), no_class, observer_attach_inferior_exit(), observer_attach_new_objfile(), PACKET_augmented_libraries_svr4_read_feature, PACKET_bc, PACKET_BreakpointCommands, PACKET_bs, packet_command(), PACKET_ConditionalBreakpoints, PACKET_ConditionalTracepoints, PACKET_DisconnectedTracing_feature, PACKET_EnableDisableTracepoints_feature, PACKET_FastTracepoints, PACKET_fork_event_feature, PACKET_hwbreak_feature, PACKET_InstallInTrace, PACKET_MAX, PACKET_multiprocess_feature, PACKET_P, PACKET_p, PACKET_QAgent, PACKET_QAllow, PACKET_qAttached, PACKET_Qbtrace_bts, PACKET_Qbtrace_conf_bts_size, PACKET_Qbtrace_conf_pt_size, PACKET_Qbtrace_off, PACKET_Qbtrace_pt, PACKET_qCRC, PACKET_QDisableRandomization, PACKET_qGetTIBAddr, PACKET_qGetTLSAddr, PACKET_QNonStop, PACKET_QPassSignals, PACKET_QProgramSignals, PACKET_qSearch_memory, PACKET_QStartNoAckMode, PACKET_qSupported, PACKET_qSymbol, PACKET_QTBuffer_size, PACKET_qTStatus, PACKET_qXfer_auxv, PACKET_qXfer_btrace, PACKET_qXfer_btrace_conf, PACKET_qXfer_exec_file, PACKET_qXfer_fdpic, PACKET_qXfer_features, PACKET_qXfer_libraries, PACKET_qXfer_libraries_svr4, PACKET_qXfer_memory_map, PACKET_qXfer_osdata, PACKET_qXfer_siginfo_read, PACKET_qXfer_siginfo_write, PACKET_qXfer_spu_read, PACKET_qXfer_spu_write, PACKET_qXfer_statictrace_read, PACKET_qXfer_threads, PACKET_qXfer_traceframe_info, PACKET_qXfer_uib, PACKET_StaticTracepoints, PACKET_swbreak_feature, PACKET_tracenz_feature, PACKET_TracepointSource, PACKET_vAttach, PACKET_vCont, PACKET_vFile_close, PACKET_vFile_fstat, PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite, PACKET_vFile_readlink, PACKET_vFile_setfs, PACKET_vFile_unlink, PACKET_vfork_event_feature, PACKET_vKill, PACKET_vRun, PACKET_X, PACKET_Z0, PACKET_Z1, PACKET_Z2, PACKET_Z3, PACKET_Z4, ptid_build(), QUEUE_alloc, remote_address_size, remote_break, remote_command(), remote_delete_command(), remote_exec_file, remote_g_packet_data_init(), remote_get_command(), remote_new_objfile(), remote_ops, remote_protocol_packets, remote_put_command(), remote_Z_packet_detect, set_memory_read_packet_size(), set_memory_write_packet_size(), set_range_stepping(), set_remote_cmd(), set_remote_protocol_Z_packet_cmd(), set_remotebreak(), setlist, show_interrupt_sequence(), show_memory_read_packet_size(), show_memory_write_packet_size(), show_range_stepping(), show_remote_cmd(), show_remote_protocol_Z_packet_cmd(), show_remotebreak(), showlist, stop_reply_xfree(), target_buf, target_buf_size, use_range_stepping, and xmalloc().
|
static |
Definition at line 3535 of file remote.c.
References add_thread_silent(), get_current_thread(), get_remote_state(), inferior_ptid, magic_null_ptid, null_ptid, ptid_equal(), ptid_get_pid(), remote_add_inferior(), and remote_multi_process_p().
Referenced by extended_remote_create_inferior(), and remote_start_remote().
|
static |
Definition at line 1164 of file remote.c.
References add_alias_cmd(), add_setshow_auto_boolean_cmd(), class_obscure, packet_config::detect, name, packet_config::name, show_remote_protocol_packet_cmd(), packet_config::title, xfree(), and xstrprintf().
Referenced by _initialize_remote().
Definition at line 7002 of file remote.c.
References REMOTE_ALIGN_WRITES.
Referenced by remote_write_bytes_aux().
|
static |
Definition at line 4983 of file remote.c.
References ALL_NON_EXITED_THREADS, append_resumption(), inferior_ptid, thread_info::ptid, ptid_equal(), ptid_match(), thread_suspend_state::stop_signal, and thread_info::suspend.
Referenced by remote_vcont_resume().
|
static |
Definition at line 4910 of file remote.c.
References thread_info::control, find_thread_ptid(), gdb_assert, gdbarch_addr_bit(), get_remote_state(), thread_control_state::may_range_step, minus_one_ptid, phex_nz(), ptid_build(), ptid_equal(), ptid_get_pid(), ptid_is_pid(), vCont_action_support::r, remote_multi_process_p(), thread_control_state::step_range_end, thread_control_state::step_range_start, remote_state::supports_vCont, target_gdbarch(), use_range_stepping, write_ptid(), and xsnprintf().
Referenced by append_pending_thread_resumptions(), and remote_vcont_resume().
|
static |
Definition at line 5233 of file remote.c.
References handle_sigint().
Referenced by remote_terminal_ours().
|
static |
Definition at line 5175 of file remote.c.
References async_handle_remote_sigint_twice(), and gdb_call_async_signal_handler().
Referenced by async_handle_remote_sigint_twice(), and async_initialize_sigint_signal_handler().
|
static |
Definition at line 5187 of file remote.c.
References async_handle_remote_sigint(), and gdb_call_async_signal_handler().
Referenced by async_handle_remote_sigint().
|
static |
Definition at line 5168 of file remote.c.
References async_handle_remote_sigint().
Referenced by remote_terminal_inferior().
|
static |
Definition at line 5211 of file remote.c.
References fprintf_unfiltered(), gdb_stdlog, inferior_ptid, remote_debug, and target_stop().
Referenced by _initialize_remote().
|
static |
Definition at line 5222 of file remote.c.
References fprintf_unfiltered(), gdb_stdlog, interrupt_query(), and remote_debug.
Referenced by _initialize_remote().
|
static |
Definition at line 12149 of file remote.c.
References current_target, do_cleanups(), make_cleanup(), parse_xml_btrace_conf(), TARGET_OBJECT_BTRACE_CONF, target_read_stralloc(), and xfree().
Referenced by remote_enable_btrace().
|
static |
Definition at line 12090 of file remote.c.
References _, remote_state::btrace_config, btrace_config::bts, remote_state::buf, remote_state::buf_size, error(), get_remote_packet_size(), get_remote_state(), getpkt(), packet_config::name, packet_config_support(), PACKET_ENABLE, PACKET_ERROR, packet_ok(), PACKET_Qbtrace_conf_bts_size, PACKET_Qbtrace_conf_pt_size, btrace_config::pt, putpkt(), remote_protocol_packets, btrace_config_bts::size, btrace_config_pt::size, and xsnprintf().
Referenced by remote_enable_btrace().
|
static |
Definition at line 6952 of file remote.c.
References remote_state::buf, remote_state::buf_size, fprintf_unfiltered(), gdb_stdlog, get_remote_state(), getpkt(), hexnumstr(), PACKET_DISABLE, PACKET_ENABLE, PACKET_SUPPORT_UNKNOWN, PACKET_X, putpkt_binary(), remote_debug, remote_protocol_packets, and packet_config::support.
Referenced by remote_write_bytes().
|
static |
Definition at line 2727 of file remote.c.
References thread_item::extra, VEC_free, VEC_iterate, and xfree().
Referenced by remote_update_thread_list().
Definition at line 618 of file remote.c.
Referenced by map_regcache_remote_table().
|
static |
Definition at line 9129 of file remote.c.
References _, do_cleanups(), error(), exec_bfd, make_cleanup(), paddress(), printf_filtered(), set_general_process(), size, target_gdbarch(), target_verify_memory(), warning(), xfree(), and xmalloc().
Referenced by _initialize_remote().
Definition at line 2370 of file remote.c.
Referenced by remote_threadlist_iterator(), and remote_unpack_thread_info_response().
DECLARE_QUEUE_P | ( | stop_reply_p | ) |
DEF_VEC_O | ( | thread_item_t | ) |
DEF_VEC_O | ( | cached_reg_t | ) |
DEF_VEC_O | ( | remote_g_packet_guess_s | ) |
DEFINE_QUEUE_P | ( | stop_reply_p | ) |
|
static |
Definition at line 1790 of file remote.c.
References private_thread_info::core, private_thread_info::extra, find_thread_ptid(), free_private_thread_info(), gdb_assert, thread_info::priv, thread_info::private_dtor, and xmalloc().
Referenced by process_stop_reply(), and remote_update_thread_list().
|
static |
Definition at line 5670 of file remote.c.
References get_remote_state(), notif_client::id, if(), arm-linux::inf, queue_iter_param::input, remote_state::notif_state, queue_iter_param::output, remote_notif_state::pending_event, inferior::pid, stop_reply::ptid, ptid_get_pid(), QUEUE_iterate, remote_state::remote_desc, remove_stop_reply_for_inferior(), and stop_reply_xfree().
Referenced by _initialize_remote().
|
static |
Definition at line 5724 of file remote.c.
References queue_iter_param::input, queue_iter_param::output, QUEUE_iterate, and remove_stop_reply_of_remote_state().
Referenced by remote_close().
|
static |
Definition at line 7612 of file remote.c.
References do_cleanups(), fputstrn_unfiltered(), make_cleanup_ui_file_delete(), mem_fileopen(), and ui_file_xstrdup().
Referenced by getpkt_or_notif_sane_1(), putpkt_binary(), and read_frame().
|
static |
Definition at line 4718 of file remote.c.
References _, add_thread_silent(), remote_state::buf, remote_state::buf_size, remote_state::cached_wait_status, error(), first_thread_of_process(), gdb_assert, gdb_flush(), gdb_stdout, get_exec_file(), get_remote_packet_size(), get_remote_state(), getpkt(), inferior_ptid, minus_one_ptid, non_stop, notif_client_stop, PACKET_DISABLE, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_vAttach, parse_pid_to_attach(), pid, pid_to_ptid(), printf_unfiltered(), thread_info::ptid, push_stop_reply(), putpkt(), record_currthread(), remote_add_inferior(), remote_current_thread(), remote_notif_parse(), remote_protocol_packets, remote_update_thread_list(), set_current_inferior(), target_async, target_can_async_p, target_find_description(), target_pid_to_str(), and xsnprintf().
Referenced by init_extended_remote_ops().
|
static |
Definition at line 8529 of file remote.c.
References _, add_current_inferior_and_thread(), remote_state::buf, disable_randomization, error(), extended_remote_disable_randomization(), extended_remote_restart(), extended_remote_run(), extended_remote_supports_disable_randomization(), get_offsets(), get_remote_state(), have_inferiors(), init_thread_list(), init_wait_for_inferior(), remote_exec_file, target_async, and target_can_async_p.
Referenced by init_extended_remote_ops().
|
static |
Definition at line 4653 of file remote.c.
References remote_detach_1().
Referenced by init_extended_remote_ops().
|
static |
Definition at line 8444 of file remote.c.
References _, remote_state::buf, error(), get_remote_packet_size(), get_remote_state(), putpkt(), remote_get_noisy_reply(), target_buf, target_buf_size, and xsnprintf().
Referenced by extended_remote_create_inferior().
|
static |
Definition at line 8332 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, error(), remote_state::extended, get_remote_state(), getpkt(), inferior_ptid, kill_new_fork_children(), pid, ptid_get_pid(), putpkt(), remote_multi_process_p(), remote_vkill(), and target_mourn_inferior().
Referenced by init_extended_remote_ops().
|
static |
Definition at line 8377 of file remote.c.
References remote_state::buf, remote_state::buf_size, generic_mourn_inferior(), get_remote_state(), getpkt(), have_inferiors(), inferior_ptid, magic_null_ptid, minus_one_ptid, putpkt(), record_currthread(), remote_multi_process_p(), and remote_state::waiting_for_stop_reply.
Referenced by init_extended_remote_ops().
Definition at line 3881 of file remote.c.
References extended_remote_ops, and remote_open_1().
Referenced by init_extended_remote_ops().
|
static |
Definition at line 4834 of file remote.c.
References remote_check_symbols(), and symfile_objfile.
Referenced by init_extended_remote_ops().
|
static |
Definition at line 3220 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), putpkt(), remote_fileio_reset(), and xsnprintf().
Referenced by extended_remote_create_inferior().
|
static |
Definition at line 8460 of file remote.c.
References _, bin2hex(), remote_state::buf, remote_state::buf_size, do_cleanups(), error(), gdb_assert, gdb_assert_not_reached, gdb_buildargv(), get_remote_packet_size(), get_remote_state(), getpkt(), len, make_cleanup_freeargv(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_vRun, putpkt(), remote_exec_file, and remote_protocol_packets.
Referenced by extended_remote_create_inferior().
|
static |
Definition at line 8438 of file remote.c.
References PACKET_ENABLE, and PACKET_QDisableRandomization.
Referenced by extended_remote_create_inferior(), and init_extended_remote_ops().
|
static |
Definition at line 6461 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, error(), fromhex(), gdbarch_register_name(), get_regcache_arch(), get_remote_state(), getpkt(), hexnumstr(), MAX_REGISTER_SIZE, PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_p, PACKET_UNKNOWN, packet_reg::pnum, putpkt(), regcache_raw_supply(), packet_reg::regnum, and remote_protocol_packets.
Referenced by remote_fetch_registers().
|
static |
Definition at line 6643 of file remote.c.
References process_g_packet(), and send_g_packet().
Referenced by remote_fetch_registers().
|
static |
Definition at line 11173 of file remote.c.
References xfree().
Referenced by free_actions_list_cleanup_wrapper().
|
static |
Definition at line 11167 of file remote.c.
References free_actions_list().
Referenced by remote_download_tracepoint().
|
static |
Definition at line 425 of file remote.c.
References private_thread_info::extra, and xfree().
Referenced by demand_private_info().
|
static |
Definition at line 3508 of file remote.c.
References inferior_ptid, null_ptid, ptid_equal(), remote_current_thread(), and stop_reply_extract_thread().
Referenced by add_current_inferior_and_thread(), and remote_start_remote().
|
static |
Definition at line 923 of file remote.c.
References remote_arch_state::actual_register_packet_size, remote_state::buf, remote_state::buf_size, remote_state::explicit_packet_size, memory_packet_config::fixed_p, get_remote_arch_state(), get_remote_packet_size(), get_remote_state(), MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE, memory_packet_config::size, and xrealloc().
Referenced by get_memory_read_packet_size(), get_memory_write_packet_size(), and show_memory_packet_size().
|
static |
Definition at line 1078 of file remote.c.
References get_memory_packet_size(), get_remote_packet_size(), and size.
Referenced by remote_read_bytes_1().
|
static |
Definition at line 1055 of file remote.c.
References get_memory_packet_size().
Referenced by remote_search_memory(), remote_write_bytes_aux(), and remote_write_qxfer().
|
static |
Definition at line 3271 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, error(), free_symfile_segment_data(), fromhex(), get_remote_state(), get_symfile_segment_data(), getpkt(), symfile_segment_data::num_segments, objfile_relocate(), section_offsets::offsets, putpkt(), SECT_OFF_BSS, SECT_OFF_DATA, SECT_OFF_TEXT, symfile_segment_data::segment_bases, SIZEOF_N_SECTION_OFFSETS, startswith(), symfile_map_offsets_to_segments(), symfile_objfile, and warning().
Referenced by extended_remote_create_inferior(), and remote_start_remote().
|
static |
Definition at line 597 of file remote.c.
References gdbarch_data(), and target_gdbarch().
Referenced by get_memory_packet_size(), get_remote_packet_size(), get_remote_state(), process_g_packet(), remote_fetch_registers(), remote_get_trace_status(), remote_parse_stop_reply(), remote_prepare_to_store(), remote_store_registers(), and store_registers_using_G().
|
static |
Definition at line 758 of file remote.c.
References remote_state::explicit_packet_size, get_remote_arch_state(), get_remote_state(), and remote_arch_state::remote_packet_size.
Referenced by btrace_sync_conf(), extended_remote_attach(), extended_remote_disable_randomization(), extended_remote_restart(), extended_remote_run(), get_memory_packet_size(), get_memory_read_packet_size(), remote_check_symbols(), remote_detach_pid(), remote_disable_btrace(), remote_disable_tracepoint(), remote_download_trace_state_variable(), remote_enable_btrace(), remote_enable_tracepoint(), remote_file_get(), remote_file_put(), remote_get_min_fast_tracepoint_insn_len(), remote_get_thread_local_address(), remote_get_threadlist(), remote_get_tib_address(), remote_get_trace_state_variable_value(), remote_get_tracepoint_status(), remote_hostio_close(), remote_hostio_fstat(), remote_hostio_open(), remote_hostio_pread(), remote_hostio_pread_vFile(), remote_hostio_pwrite(), remote_hostio_readlink(), remote_hostio_set_filesystem(), remote_hostio_unlink(), remote_insert_breakpoint(), remote_insert_hw_breakpoint(), remote_insert_watchpoint(), remote_query_attached(), remote_rcmd(), remote_read_qxfer(), remote_remove_breakpoint(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_save_trace_data(), remote_send_printf(), remote_set_circular_trace_buffer(), remote_set_disconnected_tracing(), remote_set_permissions(), remote_set_trace_buffer_size(), remote_set_trace_notes(), remote_static_tracepoint_marker_at(), remote_stop_ns(), remote_thread_alive(), remote_threads_extra_info(), remote_trace_find(), remote_use_agent(), remote_vcont_resume(), remote_verify_memory(), remote_vkill(), remote_xfer_partial(), send_g_packet(), set_thread(), and store_register_using_P().
|
static |
Definition at line 605 of file remote.c.
References get_remote_arch_state(), and get_remote_state_raw().
Referenced by add_current_inferior_and_thread(), append_resumption(), btrace_sync_conf(), check_binary_download(), discard_pending_stop_replies(), extended_remote_attach(), extended_remote_create_inferior(), extended_remote_disable_randomization(), extended_remote_kill(), extended_remote_mourn(), extended_remote_restart(), extended_remote_run(), fetch_register_using_p(), get_memory_packet_size(), get_offsets(), get_remote_packet_size(), getpkt_or_notif_sane_1(), interrupt_query(), kill_child_of_pending_fork(), kill_new_fork_children(), packet_command(), parse_threadlist_response(), process_g_packet(), process_stop_reply(), putpkt_binary(), read_frame(), readahead_cache_invalidate(), readahead_cache_invalidate_fd(), readchar(), remote_add_thread(), remote_async(), remote_btrace_reset(), remote_can_async_p(), remote_can_download_tracepoint(), remote_check_symbols(), remote_close(), remote_current_thread(), remote_detach_1(), remote_detach_pid(), remote_disable_btrace(), remote_disable_tracepoint(), remote_download_command_source(), remote_download_trace_state_variable(), remote_enable_btrace(), remote_enable_tracepoint(), remote_file_delete(), remote_file_get(), remote_file_put(), remote_follow_fork(), remote_get_min_fast_tracepoint_insn_len(), remote_get_raw_trace_data(), remote_get_thread_local_address(), remote_get_threadinfo(), remote_get_threadlist(), remote_get_threads_with_qthreadinfo(), remote_get_tib_address(), remote_get_trace_state_variable_value(), remote_get_tracepoint_status(), remote_hostio_close(), remote_hostio_fstat(), remote_hostio_open(), remote_hostio_pread(), remote_hostio_pread_vFile(), remote_hostio_pwrite(), remote_hostio_readlink(), remote_hostio_send_command(), remote_hostio_set_filesystem(), remote_hostio_unlink(), remote_insert_breakpoint(), remote_insert_fork_catchpoint(), remote_insert_hw_breakpoint(), remote_insert_vfork_catchpoint(), remote_insert_watchpoint(), remote_is_async_p(), remote_new_objfile(), remote_notice_new_inferior(), remote_notif_get_pending_events(), remote_open_1(), remote_packet_size(), remote_parse_stop_reply(), remote_pass_signals(), remote_pid_to_str(), remote_program_signals(), remote_query_attached(), remote_query_supported(), remote_rcmd(), remote_read_btrace(), remote_read_bytes_1(), remote_read_qxfer(), remote_remove_breakpoint(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_resume(), remote_save_trace_data(), remote_search_memory(), remote_send_printf(), remote_serial_write(), remote_set_circular_trace_buffer(), remote_set_disconnected_tracing(), remote_set_permissions(), remote_set_trace_buffer_size(), remote_set_trace_notes(), remote_start_remote(), remote_static_tracepoint_marker_at(), remote_stop_as(), remote_stop_ns(), remote_stopped_by_hw_breakpoint(), remote_stopped_by_sw_breakpoint(), remote_stopped_by_watchpoint(), remote_stopped_data_address(), remote_supports_multi_process(), remote_supports_stopped_by_hw_breakpoint(), remote_supports_stopped_by_sw_breakpoint(), remote_thread_alive(), remote_thread_always_alive(), remote_threadlist_iterator(), remote_threads_extra_info(), remote_trace_find(), remote_unpack_thread_info_response(), remote_update_thread_list(), remote_upload_trace_state_variables(), remote_upload_tracepoints(), remote_use_agent(), remote_vcont_resume(), remote_verify_memory(), remote_wait_as(), remote_wait_ns(), remote_write_bytes_aux(), remote_write_qxfer(), remote_xfer_partial(), send_g_packet(), send_interrupt_sequence(), set_general_process(), set_range_stepping(), set_remote_traceframe(), set_thread(), store_register_using_P(), store_registers_using_G(), VEC(), and write_ptid().
|
static |
Definition at line 438 of file remote.c.
References remote_state.
Referenced by get_remote_state(), and init_remote_state().
void getpkt | ( | char ** | buf, |
long * | sizeof_buf, | ||
int | forever | ||
) |
Definition at line 8029 of file remote.c.
References getpkt_sane().
Referenced by btrace_sync_conf(), check_binary_download(), extended_remote_attach(), extended_remote_kill(), extended_remote_mourn(), extended_remote_run(), fetch_register_using_p(), get_offsets(), packet_command(), remote_check_symbols(), remote_current_thread(), remote_detach_pid(), remote_disable_btrace(), remote_enable_btrace(), remote_get_noisy_reply(), remote_get_thread_local_address(), remote_get_threadinfo(), remote_get_threadlist(), remote_get_threads_with_qthreadinfo(), remote_get_tib_address(), remote_insert_breakpoint(), remote_insert_hw_breakpoint(), remote_insert_watchpoint(), remote_notif_get_pending_events(), remote_pass_signals(), remote_program_signals(), remote_query_attached(), remote_query_supported(), remote_read_bytes_1(), remote_remove_breakpoint(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_send(), remote_send_printf(), remote_set_permissions(), remote_start_remote(), remote_static_tracepoint_marker_at(), remote_stop_ns(), remote_thread_alive(), remote_threads_extra_info(), remote_trace_set_readonly_regions(), remote_upload_trace_state_variables(), remote_upload_tracepoints(), remote_use_agent(), remote_vcont_probe(), remote_vcont_resume(), remote_verify_memory(), remote_vkill(), remote_write_bytes_aux(), remote_xfer_partial(), send_g_packet(), set_thread(), store_register_using_P(), store_registers_using_G(), and VEC().
|
static |
Definition at line 8199 of file remote.c.
References getpkt_or_notif_sane_1().
Referenced by remote_wait_as(), and remote_wait_ns().
|
static |
Definition at line 8052 of file remote.c.
References _, remote_state::cached_wait_status, do_cleanups(), escape_buffer(), fprintf_unfiltered(), fputs_filtered(), gdb_assert, gdb_stdlog, get_remote_state(), handle_notification(), make_cleanup(), MAX_TRIES, remote_state::noack_mode, remote_state::notif_state, printf_unfiltered(), QUIT, read_frame(), readchar(), remote_debug, remote_serial_write(), remote_timeout, remote_unpush_target(), SERIAL_TIMEOUT, TARGET_CLOSE_ERROR, throw_error(), timeout, watchdog, and xfree().
Referenced by getpkt_or_notif_sane(), and getpkt_sane().
Definition at line 8193 of file remote.c.
References getpkt_or_notif_sane_1().
Referenced by getpkt(), remote_hostio_send_command(), remote_rcmd(), remote_read_qxfer(), remote_search_memory(), and remote_write_qxfer().
Definition at line 6877 of file remote.c.
References max.
Referenced by hexnumstr(), remote_buffer_add_int(), and remote_write_bytes_aux().
Definition at line 6901 of file remote.c.
Referenced by hexnumstr(), and remote_write_bytes_aux().
Definition at line 6890 of file remote.c.
References hexnumlen(), and hexnumnstr().
Referenced by check_binary_download(), fetch_register_using_p(), remote_buffer_add_int(), remote_get_raw_trace_data(), remote_get_thread_local_address(), remote_insert_breakpoint(), remote_insert_hw_breakpoint(), remote_insert_watchpoint(), remote_read_bytes_1(), remote_remove_breakpoint(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_set_trace_buffer_size(), remote_static_tracepoint_marker_at(), and remote_write_bytes_aux().
|
static |
Definition at line 3901 of file remote.c.
References AUTO_BOOLEAN_AUTO, packet_config::detect, PACKET_MAX, PACKET_SUPPORT_UNKNOWN, remote_protocol_packets, and packet_config::support.
Referenced by _initialize_remote().
|
static |
Definition at line 12517 of file remote.c.
References extended_remote_attach(), extended_remote_create_inferior(), extended_remote_detach(), extended_remote_kill(), extended_remote_mourn(), extended_remote_open(), extended_remote_ops, extended_remote_post_attach(), extended_remote_supports_disable_randomization(), remote_follow_fork(), remote_insert_fork_catchpoint(), remote_insert_vfork_catchpoint(), remote_ops, remote_remove_fork_catchpoint(), remote_remove_vfork_catchpoint(), target_ops::to_attach, target_ops::to_create_inferior, target_ops::to_detach, target_ops::to_doc, target_ops::to_follow_fork, target_ops::to_insert_fork_catchpoint, target_ops::to_insert_vfork_catchpoint, target_ops::to_kill, target_ops::to_longname, target_ops::to_mourn_inferior, target_ops::to_open, target_ops::to_post_attach, target_ops::to_remove_fork_catchpoint, target_ops::to_remove_vfork_catchpoint, target_ops::to_shortname, and target_ops::to_supports_disable_randomization.
Referenced by _initialize_remote().
|
static |
Definition at line 12380 of file remote.c.
References default_child_has_all_memory(), default_child_has_execution(), default_child_has_memory(), default_child_has_registers(), default_child_has_stack(), OPS_MAGIC, process_stratum, remote_async(), remote_augmented_libraries_svr4_read(), remote_btrace_conf(), remote_can_async_p(), remote_can_download_tracepoint(), remote_can_execute_reverse(), remote_can_run_breakpoint_commands(), remote_can_use_agent(), remote_check_pending_interrupt(), remote_check_watch_resources(), remote_close(), remote_core_of_thread(), remote_detach(), remote_disable_btrace(), remote_disable_tracepoint(), remote_disconnect(), remote_download_trace_state_variable(), remote_download_tracepoint(), remote_enable_btrace(), remote_enable_tracepoint(), remote_fetch_registers(), remote_files_info(), remote_filesystem_is_local(), remote_flash_done(), remote_flash_erase(), remote_get_ada_task_ptid(), remote_get_min_fast_tracepoint_insn_len(), remote_get_raw_trace_data(), remote_get_thread_local_address(), remote_get_tib_address(), remote_get_trace_state_variable_value(), remote_get_trace_status(), remote_get_tracepoint_status(), remote_hostio_close(), remote_hostio_fstat(), remote_hostio_open(), remote_hostio_pread(), remote_hostio_pwrite(), remote_hostio_readlink(), remote_hostio_unlink(), remote_insert_breakpoint(), remote_insert_hw_breakpoint(), remote_insert_watchpoint(), remote_is_async_p(), remote_kill(), remote_load(), remote_mourn(), remote_open(), remote_ops, remote_pass_signals(), remote_pid_to_exec_file(), remote_pid_to_str(), remote_prepare_to_store(), remote_program_signals(), remote_rcmd(), remote_read_btrace(), remote_read_description(), remote_region_ok_for_hw_watchpoint(), remote_remove_breakpoint(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_resume(), remote_save_trace_data(), remote_search_memory(), remote_set_circular_trace_buffer(), remote_set_disconnected_tracing(), remote_set_permissions(), remote_set_trace_buffer_size(), remote_set_trace_notes(), remote_static_tracepoint_marker_at(), remote_stop(), remote_stopped_by_hw_breakpoint(), remote_stopped_by_sw_breakpoint(), remote_stopped_by_watchpoint(), remote_stopped_data_address(), remote_store_registers(), remote_supports_btrace(), remote_supports_cond_breakpoints(), remote_supports_disable_randomization(), remote_supports_enable_disable_tracepoint(), remote_supports_multi_process(), remote_supports_non_stop(), remote_supports_stopped_by_hw_breakpoint(), remote_supports_stopped_by_sw_breakpoint(), remote_supports_string_tracing(), remote_teardown_btrace(), remote_terminal_inferior(), remote_terminal_ours(), remote_thread_alive(), remote_threads_extra_info(), remote_trace_find(), remote_trace_init(), remote_trace_set_readonly_regions(), remote_trace_start(), remote_trace_stop(), remote_traceframe_info(), remote_update_thread_list(), remote_upload_trace_state_variables(), remote_upload_tracepoints(), remote_use_agent(), remote_verify_memory(), remote_wait(), remote_watchpoint_addr_within_range(), remote_xfer_partial(), serial_log_command(), tc_schedlock, target_ops::to_async, target_ops::to_augmented_libraries_svr4_read, target_ops::to_btrace_conf, target_ops::to_can_async_p, target_ops::to_can_download_tracepoint, target_ops::to_can_execute_reverse, target_ops::to_can_run_breakpoint_commands, target_ops::to_can_use_agent, target_ops::to_can_use_hw_breakpoint, target_ops::to_check_pending_interrupt, target_ops::to_close, target_ops::to_core_of_thread, target_ops::to_detach, target_ops::to_disable_btrace, target_ops::to_disable_tracepoint, target_ops::to_disconnect, target_ops::to_doc, target_ops::to_download_trace_state_variable, target_ops::to_download_tracepoint, target_ops::to_enable_btrace, target_ops::to_enable_tracepoint, target_ops::to_extra_thread_info, target_ops::to_fetch_registers, target_ops::to_fileio_close, target_ops::to_fileio_fstat, target_ops::to_fileio_open, target_ops::to_fileio_pread, target_ops::to_fileio_pwrite, target_ops::to_fileio_readlink, target_ops::to_fileio_unlink, target_ops::to_files_info, target_ops::to_filesystem_is_local, target_ops::to_flash_done, target_ops::to_flash_erase, target_ops::to_get_ada_task_ptid, target_ops::to_get_min_fast_tracepoint_insn_len, target_ops::to_get_raw_trace_data, target_ops::to_get_thread_local_address, target_ops::to_get_tib_address, target_ops::to_get_trace_state_variable_value, target_ops::to_get_trace_status, target_ops::to_get_tracepoint_status, target_ops::to_has_all_memory, target_ops::to_has_execution, target_ops::to_has_memory, target_ops::to_has_registers, target_ops::to_has_stack, target_ops::to_has_thread_control, target_ops::to_insert_breakpoint, target_ops::to_insert_hw_breakpoint, target_ops::to_insert_watchpoint, target_ops::to_is_async_p, target_ops::to_kill, target_ops::to_load, target_ops::to_log_command, target_ops::to_longname, target_ops::to_magic, target_ops::to_mourn_inferior, target_ops::to_open, target_ops::to_pass_signals, target_ops::to_pid_to_exec_file, target_ops::to_pid_to_str, target_ops::to_prepare_to_store, target_ops::to_program_signals, target_ops::to_rcmd, target_ops::to_read_btrace, target_ops::to_read_description, target_ops::to_region_ok_for_hw_watchpoint, target_ops::to_remove_breakpoint, target_ops::to_remove_hw_breakpoint, target_ops::to_remove_watchpoint, target_ops::to_resume, target_ops::to_save_trace_data, target_ops::to_search_memory, target_ops::to_set_circular_trace_buffer, target_ops::to_set_disconnected_tracing, target_ops::to_set_permissions, target_ops::to_set_trace_buffer_size, target_ops::to_set_trace_notes, target_ops::to_shortname, target_ops::to_static_tracepoint_marker_at, target_ops::to_stop, target_ops::to_stopped_by_hw_breakpoint, target_ops::to_stopped_by_sw_breakpoint, target_ops::to_stopped_by_watchpoint, target_ops::to_stopped_data_address, target_ops::to_store_registers, target_ops::to_stratum, target_ops::to_supports_btrace, target_ops::to_supports_disable_randomization, target_ops::to_supports_enable_disable_tracepoint, target_ops::to_supports_evaluation_of_breakpoint_conditions, target_ops::to_supports_multi_process, target_ops::to_supports_non_stop, target_ops::to_supports_stopped_by_hw_breakpoint, target_ops::to_supports_stopped_by_sw_breakpoint, target_ops::to_supports_string_tracing, target_ops::to_teardown_btrace, target_ops::to_terminal_inferior, target_ops::to_terminal_ours, target_ops::to_thread_alive, target_ops::to_trace_find, target_ops::to_trace_init, target_ops::to_trace_set_readonly_regions, target_ops::to_trace_start, target_ops::to_trace_stop, target_ops::to_traceframe_info, target_ops::to_update_thread_list, target_ops::to_upload_trace_state_variables, target_ops::to_upload_tracepoints, target_ops::to_use_agent, target_ops::to_verify_memory, target_ops::to_wait, target_ops::to_watchpoint_addr_within_range, and target_ops::to_xfer_partial.
Referenced by _initialize_remote().
|
static |
Definition at line 705 of file remote.c.
References remote_arch_state::actual_register_packet_size, remote_state::buf, remote_state::buf_size, gdbarch_num_regs(), GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC, get_remote_state_raw(), map_regcache_remote_table(), remote_arch_state::regs, remote_arch_state::remote_packet_size, remote_arch_state::sizeof_g_packet, and xrealloc().
Referenced by _initialize_remote().
Definition at line 2339 of file remote.c.
References scan().
Referenced by remote_threads_extra_info().
|
static |
Definition at line 5357 of file remote.c.
References _, remote_state::ctrlc_pending_p, do_cleanups(), get_remote_state(), make_cleanup_restore_target_terminal(), query(), quit(), remote_unpush_target(), TARGET_CLOSE_ERROR, target_terminal_ours(), throw_error(), and remote_state::waiting_for_stop_reply.
Referenced by async_remote_interrupt_twice(), and putpkt_binary().
|
static |
Definition at line 5576 of file remote.c.
References target_waitstatus::kind, ptid_get_pid(), TARGET_WAITKIND_FORKED, and TARGET_WAITKIND_VFORKED.
Referenced by kill_child_of_pending_fork(), kill_new_fork_children(), and remove_new_fork_children().
|
static |
Definition at line 8210 of file remote.c.
References _, error(), get_remote_state(), if(), queue_iter_param::input, is_pending_fork_parent(), stop_reply::ptid, ptid_get_pid(), target_waitstatus::related_pid, remote_vkill(), target_waitstatus::value, and stop_reply::ws.
Referenced by kill_new_fork_children().
|
static |
Definition at line 8236 of file remote.c.
References _, ALL_NON_EXITED_THREADS, error(), get_remote_state(), queue_iter_param::input, is_pending_fork_parent(), kill_child_of_pending_fork(), notif_client_stop, queue_iter_param::output, thread_info::pending_follow, pid, thread_info::ptid, ptid_get_pid(), QUEUE_iterate, target_waitstatus::related_pid, remote_notif_get_pending_events(), remote_vkill(), and target_waitstatus::value.
Referenced by extended_remote_kill().
|
static |
Definition at line 632 of file remote.c.
References compare_pnums(), gdbarch_num_regs(), gdbarch_remote_register_number(), packet_reg::in_g_packet, offset, packet_reg::offset, packet_reg::pnum, qsort, register_size(), regnum, and packet_reg::regnum.
Referenced by init_remote_state(), and remote_register_number_and_offset().
|
static |
Definition at line 447 of file remote.c.
References remote_state::buf, remote_state::buf_size, remote_state::fs_pid, remote_state::last_sent_signal, remote_state::remote_traceframe_number, and xmalloc().
Referenced by _initialize_remote().
|
static |
Definition at line 2252 of file remote.c.
References remote_state::buf, and pack_hex_byte().
Referenced by pack_threadinfo_request().
|
static |
Definition at line 2302 of file remote.c.
References BUF_THREAD_ID_SIZE, and pack_hex_byte().
Referenced by pack_threadinfo_request(), and pack_threadlist_request().
Definition at line 2411 of file remote.c.
References pack_int(), and pack_threadid().
Referenced by remote_get_threadinfo().
|
static |
Definition at line 2548 of file remote.c.
References pack_hex_byte(), pack_nibble(), and pack_threadid().
Referenced by remote_get_threadlist().
|
static |
Definition at line 1203 of file remote.c.
References PACKET_ERROR, PACKET_OK, and PACKET_UNKNOWN.
Referenced by packet_ok(), remote_send_printf(), and store_registers_using_G().
|
static |
Definition at line 9727 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, error(), get_remote_state(), getpkt(), print_packet(), putpkt(), puts_filtered(), and remote_state::remote_desc.
Referenced by _initialize_remote().
|
static |
Definition at line 1421 of file remote.c.
References _, AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_FALSE, AUTO_BOOLEAN_TRUE, packet_config::detect, gdb_assert_not_reached, PACKET_DISABLE, PACKET_ENABLE, and packet_config::support.
Referenced by btrace_sync_conf(), packet_support(), remote_disable_btrace(), remote_enable_btrace(), remote_read_btrace(), remote_search_memory(), remote_start_remote(), and show_packet_config_cmd().
|
static |
Definition at line 1229 of file remote.c.
References _, AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_TRUE, packet_config::detect, error(), fprintf_unfiltered(), gdb_stdlog, internal_error(), packet_config::name, packet_check_result(), PACKET_DISABLE, PACKET_ENABLE, PACKET_ERROR, PACKET_OK, PACKET_SUPPORT_UNKNOWN, PACKET_UNKNOWN, remote_debug, packet_config::support, and packet_config::title.
Referenced by btrace_sync_conf(), extended_remote_attach(), extended_remote_run(), fetch_register_using_p(), remote_check_symbols(), remote_disable_btrace(), remote_enable_btrace(), remote_get_thread_local_address(), remote_get_tib_address(), remote_get_trace_status(), remote_hostio_send_command(), remote_insert_breakpoint(), remote_insert_hw_breakpoint(), remote_insert_watchpoint(), remote_pass_signals(), remote_program_signals(), remote_query_attached(), remote_query_supported(), remote_read_qxfer(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_search_memory(), remote_set_trace_buffer_size(), remote_start_remote(), remote_vcont_probe(), remote_verify_memory(), remote_vkill(), remote_write_qxfer(), and store_register_using_P().
|
static |
Definition at line 784 of file remote.c.
References gdbarch_num_regs(), packet_reg::pnum, remote_arch_state::regs, and target_gdbarch().
Referenced by remote_parse_stop_reply().
|
static |
Definition at line 770 of file remote.c.
References gdb_assert, gdbarch_num_regs(), regnum, packet_reg::regnum, remote_arch_state::regs, and target_gdbarch().
Referenced by remote_fetch_registers(), and remote_store_registers().
|
static |
Definition at line 1411 of file remote.c.
References packet_config::detect, and remote_protocol_packets.
Referenced by remote_query_supported().
|
static |
Definition at line 1440 of file remote.c.
References packet_config_support(), and remote_protocol_packets.
|
static |
Definition at line 2563 of file remote.c.
References remote_state::buf_size, BUF_THREAD_ID_SIZE, get_remote_state(), unpack_byte(), unpack_nibble(), and unpack_threadid().
Referenced by remote_get_threadlist().
Definition at line 5829 of file remote.c.
References QUEUE_iterate, and stop_reply_match_ptid_and_ws().
Referenced by remote_stop_ns(), and set_stop_requested_callback().
|
static |
Definition at line 7631 of file remote.c.
References fputstr_filtered(), gdb_stdout, and puts_filtered().
Referenced by packet_command().
|
static |
Definition at line 6553 of file remote.c.
References _, remote_arch_state::actual_register_packet_size, remote_state::buf, error(), fromhex(), gdb_assert, gdbarch_num_regs(), get_regcache_arch(), get_remote_arch_state(), get_remote_state(), packet_reg::in_g_packet, internal_error(), packet_reg::offset, packet_reg::pnum, regcache_raw_supply(), packet_reg::regnum, remote_arch_state::regs, and remote_arch_state::sizeof_g_packet.
Referenced by fetch_registers_using_g().
|
static |
Definition at line 6182 of file remote.c.
References private_thread_info::core, cached_reg::data, demand_private_info(), get_remote_state(), get_thread_arch_regcache(), inferior_ptid, target_waitstatus::kind, null_ptid, cached_reg::num, regcache::ptid, stop_reply::ptid, ptid_equal(), regcache_raw_supply(), remote_notice_new_inferior(), remote_state::remote_watch_data_address, remote_state::stop_reason, stop_reply_xfree(), target_gdbarch(), TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED, VEC_free, VEC_iterate, and stop_reply::ws.
Referenced by remote_wait_as(), and remote_wait_ns().
|
static |
Definition at line 5800 of file remote.c.
References fprintf_unfiltered(), gdb_stdlog, mark_async_event_handler(), notif_debug, stop_reply::ptid, QUEUE_enque, QUEUE_length, and target_pid_to_str().
Referenced by extended_remote_attach(), and remote_notif_stop_ack().
Definition at line 7639 of file remote.c.
References putpkt_binary().
Referenced by btrace_sync_conf(), extended_remote_attach(), extended_remote_disable_randomization(), extended_remote_kill(), extended_remote_mourn(), extended_remote_restart(), extended_remote_run(), fetch_register_using_p(), get_offsets(), packet_command(), remote_check_symbols(), remote_current_thread(), remote_detach_pid(), remote_disable_btrace(), remote_disable_tracepoint(), remote_download_command_source(), remote_download_trace_state_variable(), remote_download_tracepoint(), remote_enable_btrace(), remote_enable_tracepoint(), remote_fileio_reply(), remote_get_min_fast_tracepoint_insn_len(), remote_get_noisy_reply(), remote_get_raw_trace_data(), remote_get_thread_local_address(), remote_get_threadinfo(), remote_get_threadlist(), remote_get_threads_with_qthreadinfo(), remote_get_tib_address(), remote_get_trace_state_variable_value(), remote_get_trace_status(), remote_get_tracepoint_status(), remote_insert_breakpoint(), remote_insert_hw_breakpoint(), remote_insert_watchpoint(), remote_kill(), remote_notif_stop_ack(), remote_pass_signals(), remote_program_signals(), remote_query_attached(), remote_query_supported(), remote_rcmd(), remote_read_bytes_1(), remote_read_qxfer(), remote_remove_breakpoint(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_resume(), remote_save_trace_data(), remote_send(), remote_send_printf(), remote_set_circular_trace_buffer(), remote_set_disconnected_tracing(), remote_set_permissions(), remote_set_trace_buffer_size(), remote_set_trace_notes(), remote_start_remote(), remote_static_tracepoint_marker_at(), remote_stop_ns(), remote_thread_alive(), remote_threads_extra_info(), remote_trace_find(), remote_trace_init(), remote_trace_set_readonly_regions(), remote_trace_start(), remote_trace_stop(), remote_upload_trace_state_variables(), remote_upload_tracepoints(), remote_use_agent(), remote_vcont_probe(), remote_vcont_resume(), remote_verify_memory(), remote_vkill(), remote_wait_as(), remote_xfer_partial(), set_thread(), store_register_using_P(), store_registers_using_G(), and VEC().
Definition at line 7651 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, remote_state::cached_wait_status, do_cleanups(), error(), escape_buffer(), fprintf_unfiltered(), fputc_unfiltered(), gdb_flush(), gdb_stdlog, get_remote_state(), handle_notification(), interrupt_query(), make_cleanup(), remote_state::noack_mode, non_stop, remote_state::notif_state, putchar_unfiltered(), quit_flag, read_frame(), readchar(), remote_debug, remote_serial_write(), remote_timeout, SERIAL_TIMEOUT, skip_frame(), target_is_async_p, tohex(), remote_state::waiting_for_stop_reply, and xfree().
Referenced by check_binary_download(), putpkt(), remote_hostio_send_command(), remote_search_memory(), remote_write_bytes_aux(), and remote_write_qxfer().
|
static |
Definition at line 5488 of file remote.c.
References notif_event_xfree().
|
static |
Definition at line 5784 of file remote.c.
References mark_async_event_handler(), QUEUE_is_empty, and remote_notif_remove_queued_reply().
Referenced by remote_wait_as(), and remote_wait_ns().
|
static |
Definition at line 7893 of file remote.c.
References _, do_cleanups(), escape_buffer(), fprintf_unfiltered(), fputs_filtered(), fromhex(), gdb_stdlog, get_remote_state(), make_cleanup(), remote_state::noack_mode, printf_filtered(), readchar(), remote_debug, remote_timeout, SERIAL_TIMEOUT, xfree(), and xrealloc().
Referenced by getpkt_or_notif_sane_1(), and putpkt_binary().
|
static |
Definition at line 2171 of file remote.c.
References _, remote_state::buf, error(), inferior_ptid, null_ptid, pid, ptid_build(), ptid_equal(), ptid_get_pid(), and unpack_varlen_hex().
Referenced by remote_current_thread(), remote_get_threads_with_qthreadinfo(), remote_parse_stop_reply(), start_thread(), and stop_reply_extract_thread().
|
static |
Definition at line 10333 of file remote.c.
References readahead_cache::fd, get_remote_state(), and remote_state::readahead_cache.
Referenced by remote_open_1().
|
static |
Definition at line 10343 of file remote.c.
References readahead_cache::fd, get_remote_state(), and remote_state::readahead_cache.
Referenced by remote_hostio_close(), remote_hostio_pread(), and remote_hostio_pwrite().
Definition at line 7549 of file remote.c.
References _, get_remote_state(), remote_state::remote_desc, remote_unpush_target(), SERIAL_EOF, SERIAL_ERROR, serial_readchar(), SERIAL_TIMEOUT, TARGET_CLOSE_ERROR, throw_error(), and unpush_and_perror().
Referenced by getpkt_or_notif_sane_1(), putpkt_binary(), read_frame(), and skip_frame().
|
static |
Definition at line 1813 of file remote.c.
References remote_state::general_thread.
Referenced by extended_remote_attach(), extended_remote_mourn(), and remote_wait_as().
void register_remote_g_packet_guess | ( | struct gdbarch * | gdbarch, |
int | bytes, | ||
const struct target_desc * | tdesc | ||
) |
Definition at line 10063 of file remote.c.
References _, remote_g_packet_guess::bytes, gdb_assert, gdbarch_data(), internal_error(), remote_g_packet_guess::tdesc, VEC_iterate, and VEC_safe_push.
Referenced by arm_register_g_packet_guesses(), microblaze_register_g_packet_guesses(), and mips_register_g_packet_guesses().
void register_remote_support_xml | ( | const char * | xml | ) |
Definition at line 4207 of file remote.c.
References xfree().
Referenced by _initialize_i386_tdep().
|
static |
Definition at line 1637 of file remote.c.
References add_inferior(), inferior::aspace, inferior::attach_flag, current_inferior(), current_program_space, exec_file_locate_attach(), inferior::fake_pid_p, gdbarch_has_global_solist(), get_exec_file(), arm-linux::inf, inferior_appeared(), maybe_new_address_space(), inferior::pspace, remote_query_attached(), and target_gdbarch().
Referenced by add_current_inferior_and_thread(), extended_remote_attach(), and remote_notice_new_inferior().
|
static |
Definition at line 8616 of file remote.c.
References agent_expr::buf, agent_expr::len, pack_hex_byte(), bp_target_info::persist, VEC_empty, and VEC_iterate.
Referenced by remote_insert_breakpoint(), and remote_insert_hw_breakpoint().
|
static |
Definition at line 8585 of file remote.c.
References agent_expr::buf, agent_expr::len, pack_hex_byte(), VEC_empty, VEC_iterate, and xsnprintf().
Referenced by remote_insert_breakpoint(), and remote_insert_hw_breakpoint().
Definition at line 1684 of file remote.c.
References add_thread(), add_thread_silent(), get_remote_state(), set_executing(), set_running(), and remote_state::starting_up.
Referenced by remote_notice_new_inferior().
Definition at line 6919 of file remote.c.
References gdbarch_addr_bit(), remote_address_size, and target_gdbarch().
Referenced by remote_insert_breakpoint(), remote_insert_hw_breakpoint(), remote_insert_watchpoint(), remote_read_bytes_1(), remote_remove_breakpoint(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_watchpoint_addr_within_range(), and remote_write_bytes_aux().
|
static |
Definition at line 12596 of file remote.c.
References clear_async_event_handler(), get_remote_state(), mark_async_event_handler(), QUEUE_is_empty, remote_state::remote_desc, and serial_async().
Referenced by init_remote_ops().
|
static |
Definition at line 12590 of file remote.c.
References INF_REG_EVENT, and inferior_event_handler().
Referenced by remote_open_1().
|
static |
Definition at line 12580 of file remote.c.
References INF_REG_EVENT, and inferior_event_handler().
|
static |
Definition at line 12329 of file remote.c.
References PACKET_augmented_libraries_svr4_read_feature, and PACKET_ENABLE.
Referenced by init_remote_ops().
|
static |
Definition at line 12322 of file remote.c.
References btrace_target_info::conf.
Referenced by init_remote_ops().
|
static |
Definition at line 12049 of file remote.c.
References remote_state::btrace_config, and get_remote_state().
Referenced by remote_open_1().
|
static |
Definition at line 10162 of file remote.c.
References _, bin2hex(), error(), and len.
Referenced by remote_hostio_open(), remote_hostio_readlink(), and remote_hostio_unlink().
Definition at line 10183 of file remote.c.
References _, error(), hexnumlen(), hexnumstr(), and len.
Referenced by remote_hostio_close(), remote_hostio_fstat(), remote_hostio_open(), remote_hostio_pread_vFile(), and remote_hostio_pwrite().
|
static |
Definition at line 10140 of file remote.c.
References _, error(), and len.
Referenced by remote_hostio_close(), remote_hostio_fstat(), remote_hostio_open(), remote_hostio_pread_vFile(), remote_hostio_pwrite(), remote_hostio_readlink(), remote_hostio_set_filesystem(), and remote_hostio_unlink().
|
static |
Definition at line 12548 of file remote.c.
References get_remote_state(), remote_state::remote_desc, serial_can_async_p(), and target_async_permitted.
Referenced by init_remote_ops().
|
static |
Definition at line 11403 of file remote.c.
References current_trace_status(), get_remote_state(), remote_get_trace_status(), remote_supports_install_in_trace(), trace_status::running, trace_status::running_known, remote_state::starting_up, and status.
Referenced by init_remote_ops().
|
static |
Definition at line 11072 of file remote.c.
References PACKET_bc, PACKET_bs, and PACKET_ENABLE.
Referenced by init_remote_ops().
|
static |
Definition at line 11150 of file remote.c.
References PACKET_BreakpointCommands, and PACKET_ENABLE.
Referenced by init_remote_ops(), remote_insert_breakpoint(), and remote_insert_hw_breakpoint().
|
static |
Definition at line 12032 of file remote.c.
References PACKET_DISABLE, and PACKET_QAgent.
Referenced by init_remote_ops().
|
static |
Definition at line 5197 of file remote.c.
References async_sigint_remote_twice_token, async_signal_handler_is_marked(), call_async_signal_handler(), and clear_async_signal_handler().
Referenced by init_remote_ops().
|
static |
Definition at line 3915 of file remote.c.
References BMSYMBOL_VALUE_ADDRESS, remote_state::buf, remote_state::buf_size, current_target, gdbarch_addr_bit(), gdbarch_convert_from_func_ptr_addr(), get_remote_packet_size(), get_remote_state(), getpkt(), hex2bin(), lookup_minimal_symbol(), bound_minimal_symbol::minsym, PACKET_DISABLE, packet_ok(), PACKET_qSymbol, phex_nz(), putpkt(), remote_protocol_packets, set_general_process(), startswith(), target_gdbarch(), target_has_execution, and xsnprintf().
Referenced by extended_remote_post_attach(), remote_new_objfile(), and remote_start_remote().
|
static |
Definition at line 8878 of file remote.c.
References bp_hardware_breakpoint.
Referenced by init_remote_ops().
|
static |
Definition at line 3235 of file remote.c.
References delete_async_event_handler(), discard_all_inferiors(), discard_pending_stop_replies_in_queue(), get_remote_state(), inferior_ptid, remote_state::notif_state, null_ptid, remote_state::remote_desc, remote_notif_state_xfree(), remote_terminal_ours(), serial_close(), and trace_reset_local_state().
Referenced by init_remote_ops().
|
static |
Definition at line 11066 of file remote.c.
References all_commands, gdb_stdout, and help_list().
Referenced by _initialize_remote().
|
static |
Definition at line 5428 of file remote.c.
References fputs_unfiltered(), fromhex(), gdb_flush(), and gdb_stdtarg.
Referenced by remote_get_noisy_reply(), remote_rcmd(), remote_wait_as(), and remote_wait_ns().
|
static |
Definition at line 11853 of file remote.c.
References private_thread_info::core, find_thread_ptid(), and thread_info::priv.
Referenced by init_remote_ops().
Definition at line 2779 of file remote.c.
References remote_state::buf, remote_state::buf_size, get_remote_state(), getpkt(), putpkt(), and read_ptid().
Referenced by extended_remote_attach(), get_current_thread(), and remote_start_remote().
|
static |
Definition at line 11047 of file remote.c.
References _, do_cleanups(), error(), error_no_arg(), gdb_buildargv(), make_cleanup_freeargv(), and remote_file_delete().
Referenced by _initialize_remote().
|
static |
Definition at line 4647 of file remote.c.
References remote_detach_1().
Referenced by init_remote_ops().
Definition at line 4601 of file remote.c.
References _, detach_inferior(), error(), remote_state::extended, find_thread_ptid(), gdb_flush(), gdb_stdout, get_exec_file(), get_remote_state(), inferior_ptid, target_waitstatus::kind, null_ptid, thread_info::pending_follow, pid, pid_to_ptid(), printf_unfiltered(), ptid_get_pid(), puts_filtered(), remote_detach_pid(), target_has_execution, target_mourn_inferior(), target_pid_to_str(), and TARGET_WAITKIND_FORKED.
Referenced by extended_remote_detach(), and remote_detach().
|
static |
Definition at line 4574 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, error(), get_remote_packet_size(), get_remote_state(), getpkt(), putpkt(), remote_multi_process_p(), and xsnprintf().
Referenced by remote_detach_1(), and remote_follow_fork().
|
static |
Definition at line 12231 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, error(), get_remote_packet_size(), get_remote_state(), getpkt(), packet_config::name, packet_config_support(), PACKET_ENABLE, PACKET_ERROR, packet_ok(), PACKET_Qbtrace_off, btrace_target_info::ptid, putpkt(), remote_protocol_packets, set_general_thread(), target_pid_to_str(), xfree(), and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 11472 of file remote.c.
References _, bp_location::address, remote_state::buf, remote_state::buf_size, error(), get_remote_packet_size(), get_remote_state(), breakpoint::number, bp_location::owner, putpkt(), remote_get_noisy_reply(), and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 4700 of file remote.c.
References _, error(), puts_filtered(), and remote_mourn().
Referenced by init_remote_ops().
|
static |
Definition at line 11190 of file remote.c.
References _, command_line::body_list, remote_state::buf, remote_state::buf_size, command_line::control_type, encode_source_string(), get_remote_state(), command_line::line, command_line::next, putpkt(), QUIT, remote_get_noisy_reply(), target_buf, target_buf_size, warning(), while_control, and while_stepping_control.
Referenced by remote_download_tracepoint().
|
static |
Definition at line 11431 of file remote.c.
References _, bin2hex(), remote_state::buf, trace_state_variable::builtin, error(), get_remote_packet_size(), get_remote_state(), trace_state_variable::initial_value, trace_state_variable::name, trace_state_variable::number, phex(), putpkt(), remote_get_noisy_reply(), target_buf, target_buf_size, and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 11227 of file remote.c.
References _, breakpoint::addr_string, bp_location::address, bp_enabled, bp_fast_tracepoint, bp_static_tracepoint, breakpoint_commands(), agent_expr::buf, BUF_SIZE, breakpoint::commands, bp_location::cond, breakpoint::cond_string, default_collect, do_cleanups(), breakpoint::enable_state, encode_actions_rsp(), encode_source_string(), error(), free_actions_list_cleanup_wrapper(), gdbarch_fast_tracepoint_valid_at(), gen_eval_for_expr(), internal_error(), agent_expr::len, make_cleanup(), make_cleanup_free_agent_expr(), breakpoint::number, bp_location::owner, pack_hex_byte(), PACKET_ENABLE, PACKET_TracepointSource, tracepoint::pass_count, putpkt(), QUIT, remote_download_command_source(), remote_get_noisy_reply(), remote_supports_cond_tracepoints(), remote_supports_fast_tracepoints(), remote_supports_static_tracepoints(), tracepoint::step_count, target_buf, target_buf_size, target_gdbarch(), target_static_tracepoint_marker_at, breakpoint::type, warning(), and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 12168 of file remote.c.
References _, BTRACE_FORMAT_BTS, BTRACE_FORMAT_PT, btrace_read_config(), btrace_sync_conf(), remote_state::buf, remote_state::buf_size, CATCH, btrace_target_info::conf, END_CATCH, err, error(), btrace_config::format, get_remote_packet_size(), get_remote_state(), getpkt(), packet_config::name, packet_config_support(), PACKET_ENABLE, PACKET_ERROR, packet_ok(), PACKET_Qbtrace_bts, PACKET_Qbtrace_pt, btrace_target_info::ptid, putpkt(), remote_protocol_packets, RETURN_MASK_ERROR, set_general_thread(), target_pid_to_str(), TRY, warning(), xsnprintf(), and xzalloc().
Referenced by init_remote_ops().
|
static |
Definition at line 11454 of file remote.c.
References _, bp_location::address, remote_state::buf, remote_state::buf_size, error(), get_remote_packet_size(), get_remote_state(), breakpoint::number, bp_location::owner, putpkt(), remote_get_noisy_reply(), and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 6673 of file remote.c.
References fetch_register_using_p(), fetch_registers_using_g(), gdb_assert, gdbarch_num_regs(), get_regcache_arch(), get_remote_arch_state(), packet_reg::in_g_packet, inferior_ptid, packet_reg_from_regnum(), regcache_raw_supply(), packet_reg::regnum, remote_arch_state::regs, set_general_thread(), and set_remote_traceframe().
Referenced by init_remote_ops().
Definition at line 10991 of file remote.c.
References _, error(), find_target_at(), get_remote_state(), printf_filtered(), process_stratum, remote_state::remote_desc, remote_hostio_error(), and remote_hostio_unlink().
Referenced by mi_cmd_target_file_delete(), and remote_delete_command().
Definition at line 10932 of file remote.c.
References _, discard_cleanups(), do_cleanups(), error(), find_target_at(), gdb_fopen_cloexec(), get_remote_packet_size(), get_remote_state(), make_cleanup(), make_cleanup_fclose(), offset, perror_with_name(), printf_filtered(), process_stratum, remote_state::remote_desc, remote_hostio_close(), remote_hostio_close_cleanup(), remote_hostio_error(), remote_hostio_open(), remote_hostio_pread(), xfree(), and xmalloc().
Referenced by mi_cmd_target_file_get(), and remote_get_command().
Definition at line 10839 of file remote.c.
References _, discard_cleanups(), do_cleanups(), error(), find_target_at(), gdb_fopen_cloexec(), get_remote_packet_size(), get_remote_state(), make_cleanup(), make_cleanup_fclose(), offset, perror_with_name(), printf_filtered(), process_stratum, remote_state::remote_desc, remote_hostio_close(), remote_hostio_close_cleanup(), remote_hostio_error(), remote_hostio_open(), remote_hostio_pwrite(), xfree(), and xmalloc().
Referenced by mi_cmd_target_file_put(), and remote_put_command().
Definition at line 10768 of file remote.c.
Referenced by remote_hostio_error().
|
static |
Definition at line 7522 of file remote.c.
References puts_filtered().
Referenced by init_remote_ops().
|
static |
Definition at line 10719 of file remote.c.
References _, gdb_sysroot, PACKET_DISABLE, PACKET_SUPPORT_UNKNOWN, PACKET_vFile_open, cleanup_check::ps, remote_hostio_close(), remote_hostio_open(), TARGET_SYSROOT_PREFIX, and warning().
Referenced by init_remote_ops().
|
static |
Definition at line 7499 of file remote.c.
References _, do_cleanups(), error(), make_cleanup(), PACKET_ERROR, PACKET_UNKNOWN, remote_flash_timeout, remote_send_printf(), remote_timeout, and restore_remote_timeout().
Referenced by init_remote_ops().
|
static |
Definition at line 7453 of file remote.c.
References _, do_cleanups(), error(), gdbarch_addr_bit(), make_cleanup(), PACKET_ERROR, PACKET_UNKNOWN, phex(), remote_flash_timeout, remote_send_printf(), remote_timeout, restore_remote_timeout(), and target_gdbarch().
Referenced by init_remote_ops().
|
static |
Definition at line 7481 of file remote.c.
References do_cleanups(), make_cleanup(), remote_flash_timeout, remote_timeout, remote_write_bytes_aux(), and restore_remote_timeout().
Referenced by remote_xfer_partial().
|
static |
Definition at line 4666 of file remote.c.
References detach_inferior(), get_remote_state(), inferior_thread(), target_waitstatus::kind, thread_info::pending_follow, ptid_get_pid(), target_waitstatus::related_pid, remote_detach_pid(), remote_fork_event_p(), remote_vfork_event_p(), TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED, and target_waitstatus::value.
Referenced by init_extended_remote_ops().
|
static |
Definition at line 1519 of file remote.c.
References PACKET_ENABLE, and PACKET_fork_event_feature.
Referenced by remote_follow_fork(), and remote_insert_fork_catchpoint().
|
static |
Definition at line 10057 of file remote.c.
References OBSTACK_ZALLOC.
Referenced by _initialize_remote().
|
static |
Definition at line 3211 of file remote.c.
References inferior_ptid, ptid_build(), and ptid_get_pid().
Referenced by init_remote_ops().
|
static |
Definition at line 11028 of file remote.c.
References _, do_cleanups(), error(), error_no_arg(), gdb_buildargv(), make_cleanup_freeargv(), and remote_file_get().
Referenced by _initialize_remote().
|
static |
Definition at line 11903 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), putpkt(), remote_get_noisy_reply(), set_general_process(), target_buf, target_buf_size, target_has_execution, unpack_varlen_hex(), and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 519 of file remote.c.
References _, CATCH, END_CATCH, error(), exception_fprintf(), from, gdb_stderr, gdbarch_relocate_instruction(), getpkt(), MEMORY_ERROR, putpkt(), QUIT, remote_console_output(), RETURN_MASK_ALL, startswith(), target_gdbarch(), to, trace_error(), TRY, unpack_varlen_hex(), and xsnprintf().
Referenced by extended_remote_disable_randomization(), remote_disable_tracepoint(), remote_download_command_source(), remote_download_trace_state_variable(), remote_download_tracepoint(), remote_enable_tracepoint(), remote_get_min_fast_tracepoint_insn_len(), remote_get_raw_trace_data(), remote_get_trace_state_variable_value(), remote_get_trace_status(), remote_get_tracepoint_status(), remote_save_trace_data(), remote_set_circular_trace_buffer(), remote_set_disconnected_tracing(), remote_set_trace_buffer_size(), remote_set_trace_notes(), remote_trace_find(), remote_trace_init(), remote_trace_start(), and remote_trace_stop().
|
static |
Definition at line 11793 of file remote.c.
References remote_state::buf, get_remote_state(), hex2bin(), hexnumstr(), putpkt(), remote_get_noisy_reply(), target_buf, and target_buf_size.
Referenced by init_remote_ops().
|
static |
Definition at line 9949 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), PACKET_DISABLE, PACKET_OK, packet_ok(), PACKET_qGetTLSAddr, PACKET_UNKNOWN, putpkt(), remote_protocol_packets, throw_error(), TLS_GENERIC_ERROR, unpack_varlen_hex(), and write_ptid().
Referenced by init_remote_ops().
|
static |
Definition at line 2527 of file remote.c.
References remote_state::buf, remote_state::buf_size, get_remote_state(), getpkt(), pack_threadinfo_request(), putpkt(), and remote_unpack_thread_info_response().
Referenced by remote_threads_extra_info().
|
static |
Definition at line 2594 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, BUF_THREAD_ID_SIZE, remote_state::echo_nextthread, get_remote_packet_size(), get_remote_state(), getpkt(), pack_threadlist_request(), parse_threadlist_response(), putpkt(), threadmatch(), and warning().
Referenced by remote_threadlist_iterator().
|
static |
Definition at line 2794 of file remote.c.
References CRAZY_MAX_THREADS, remote_newthread_step(), and remote_threadlist_iterator().
Referenced by remote_update_thread_list().
|
static |
Definition at line 2896 of file remote.c.
References remote_state::buf, remote_state::buf_size, thread_item::core, thread_item::extra, get_remote_state(), getpkt(), thread_item::ptid, putpkt(), read_ptid(), remote_state::use_threadinfo_query, and VEC_safe_push.
Referenced by remote_update_thread_list().
|
static |
Definition at line 2870 of file remote.c.
References _, do_cleanups(), gdb_xml_parse_quick(), make_cleanup(), PACKET_ENABLE, PACKET_qXfer_threads, TARGET_OBJECT_THREADS, target_read_stralloc(), and xfree().
Referenced by remote_update_thread_list().
|
static |
Definition at line 9997 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, error(), get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_DISABLE, PACKET_OK, packet_ok(), PACKET_qGetTIBAddr, PACKET_UNKNOWN, putpkt(), remote_protocol_packets, unpack_varlen_hex(), and write_ptid().
Referenced by init_remote_ops().
|
static |
Definition at line 11741 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), putpkt(), remote_get_noisy_reply(), set_remote_traceframe(), target_buf, target_buf_size, unpack_varlen_hex(), and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 11550 of file remote.c.
References _, CATCH, END_CATCH, error(), exception_fprintf(), trace_status::filename, gdb_stderr, get_remote_arch_state(), PACKET_DISABLE, packet_ok(), PACKET_qTStatus, PACKET_UNKNOWN, parse_trace_status(), putpkt(), remote_get_noisy_reply(), remote_protocol_packets, RETURN_MASK_ERROR, trace_status::running, remote_arch_state::sizeof_g_packet, target_buf, target_buf_size, TARGET_CLOSE_ERROR, throw_exception(), trace_regblock_size, and TRY.
Referenced by init_remote_ops(), remote_can_download_tracepoint(), and remote_start_remote().
|
static |
Definition at line 11600 of file remote.c.
References uploaded_tp::addr, bp_location::address, tracepoint::base, remote_state::buf, get_remote_packet_size(), get_remote_state(), uploaded_tp::hit_count, breakpoint::hit_count, breakpoint::loc, bp_location::next, uploaded_tp::number, tracepoint::number_on_target, parse_tracepoint_status(), phex_nz(), putpkt(), remote_get_noisy_reply(), size, target_buf, target_buf_size, uploaded_tp::traceframe_usage, tracepoint::traceframe_usage, and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 10576 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), PACKET_vFile_close, readahead_cache_invalidate_fd(), remote_buffer_add_int(), remote_buffer_add_string(), and remote_hostio_send_command().
Referenced by init_remote_ops(), remote_file_get(), remote_file_put(), remote_filesystem_is_local(), and remote_hostio_close_cleanup().
|
static |
Definition at line 10830 of file remote.c.
References find_target_at(), process_stratum, and remote_hostio_close().
Referenced by remote_file_get(), and remote_file_put().
|
static |
Definition at line 10819 of file remote.c.
References _, error(), remote_fileio_errno_to_host(), and safe_strerror().
Referenced by remote_file_delete(), remote_file_get(), and remote_file_put().
|
static |
Definition at line 10659 of file remote.c.
References _, remote_state::buf, error(), get_remote_packet_size(), get_remote_state(), INT_MAX, PACKET_vFile_fstat, remote_buffer_add_int(), remote_buffer_add_string(), remote_fileio_to_host_stat(), remote_hostio_send_command(), and remote_unescape_input().
Referenced by init_remote_ops().
|
static |
Definition at line 10391 of file remote.c.
References _, remote_state::buf, get_remote_packet_size(), get_remote_state(), PACKET_vFile_open, printf_unfiltered(), remote_buffer_add_bytes(), remote_buffer_add_int(), remote_buffer_add_string(), remote_hostio_send_command(), remote_hostio_set_filesystem(), and warning().
Referenced by init_remote_ops(), remote_file_get(), remote_file_put(), and remote_filesystem_is_local().
|
static |
Definition at line 10210 of file remote.c.
Referenced by remote_hostio_send_command().
|
static |
Definition at line 10532 of file remote.c.
References readahead_cache::buf, readahead_cache::bufsize, readahead_cache::fd, fprintf_unfiltered(), gdb_stdlog, get_remote_packet_size(), get_remote_state(), readahead_cache::hit_count, readahead_cache::miss_count, offset, readahead_cache::offset, pulongest(), remote_state::readahead_cache, readahead_cache_invalidate_fd(), remote_debug, remote_hostio_pread_from_cache(), remote_hostio_pread_vFile(), and xrealloc().
Referenced by init_remote_ops(), and remote_file_get().
|
static |
Definition at line 10507 of file remote.c.
References readahead_cache::buf, readahead_cache::bufsize, readahead_cache::fd, len, max, offset, readahead_cache::offset, and remote_state::readahead_cache.
Referenced by remote_hostio_pread().
|
static |
Definition at line 10467 of file remote.c.
References _, remote_state::buf, error(), get_remote_packet_size(), get_remote_state(), PACKET_vFile_pread, remote_buffer_add_int(), remote_buffer_add_string(), remote_hostio_send_command(), and remote_unescape_input().
Referenced by remote_hostio_pread().
|
static |
Definition at line 10437 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), PACKET_vFile_pwrite, readahead_cache_invalidate_fd(), remote_buffer_add_int(), remote_buffer_add_string(), remote_escape_output(), and remote_hostio_send_command().
Referenced by init_remote_ops(), and remote_file_put().
|
static |
Definition at line 10618 of file remote.c.
References _, remote_state::buf, error(), get_remote_packet_size(), get_remote_state(), len, PACKET_vFile_readlink, remote_buffer_add_bytes(), remote_buffer_add_string(), remote_hostio_send_command(), remote_hostio_set_filesystem(), remote_unescape_input(), and xmalloc().
Referenced by init_remote_ops().
|
static |
Definition at line 10266 of file remote.c.
References remote_state::buf, remote_state::buf_size, get_remote_state(), getpkt_sane(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, putpkt_binary(), remote_state::remote_desc, remote_hostio_parse_result(), and remote_protocol_packets.
Referenced by remote_hostio_close(), remote_hostio_fstat(), remote_hostio_open(), remote_hostio_pread_vFile(), remote_hostio_pwrite(), remote_hostio_readlink(), remote_hostio_set_filesystem(), and remote_hostio_unlink().
Definition at line 10356 of file remote.c.
References remote_state::buf, inferior::fake_pid_p, remote_state::fs_pid, get_remote_packet_size(), get_remote_state(), PACKET_DISABLE, PACKET_vFile_setfs, inferior::pid, remote_buffer_add_string(), remote_hostio_send_command(), and xsnprintf().
Referenced by remote_hostio_open(), remote_hostio_readlink(), and remote_hostio_unlink().
|
static |
Definition at line 10595 of file remote.c.
References remote_state::buf, get_remote_packet_size(), get_remote_state(), PACKET_vFile_unlink, remote_buffer_add_bytes(), remote_buffer_add_string(), remote_hostio_send_command(), and remote_hostio_set_filesystem().
Referenced by init_remote_ops(), and remote_file_delete().
|
static |
Definition at line 8649 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, gdbarch_has_global_breakpoints(), gdbarch_remote_breakpoint_from_pc(), get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), memory_insert_breakpoint(), NOT_SUPPORTED_ERROR, PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_Z0, bp_target_info::placed_address, bp_target_info::placed_size, putpkt(), remote_add_target_side_commands(), remote_add_target_side_condition(), remote_address_masked(), remote_can_run_breakpoint_commands(), remote_protocol_packets, remote_supports_cond_breakpoints(), bp_target_info::reqstd_address, set_general_process(), target_gdbarch(), throw_error(), VEC_empty, and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 1536 of file remote.c.
References get_remote_state(), and remote_fork_event_p().
Referenced by init_extended_remote_ops().
|
static |
Definition at line 8971 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, error(), gdbarch_has_global_breakpoints(), gdbarch_remote_breakpoint_from_pc(), get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), internal_error(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_Z1, bp_target_info::placed_address, bp_target_info::placed_size, putpkt(), remote_add_target_side_commands(), remote_add_target_side_condition(), remote_address_masked(), remote_can_run_breakpoint_commands(), remote_protocol_packets, remote_supports_cond_breakpoints(), bp_target_info::reqstd_address, set_general_process(), target_gdbarch(), and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 1556 of file remote.c.
References get_remote_state(), and remote_vfork_event_p().
Referenced by init_extended_remote_ops().
|
static |
Definition at line 8771 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, gdbarch_has_global_breakpoints(), get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), internal_error(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_Z0, putpkt(), remote_address_masked(), remote_protocol_packets, set_general_process(), target_gdbarch(), watchpoint_to_Z_packet(), and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 12561 of file remote.c.
References get_remote_state(), remote_state::remote_desc, serial_is_async_p(), and target_async_permitted.
Referenced by init_remote_ops().
|
static |
Definition at line 8271 of file remote.c.
References CATCH, END_CATCH, putpkt(), RETURN_MASK_ERROR, TARGET_CLOSE_ERROR, target_mourn_inferior(), throw_exception(), and TRY.
Referenced by init_remote_ops().
|
static |
Definition at line 12338 of file remote.c.
References generic_load().
Referenced by init_remote_ops().
|
static |
Definition at line 8368 of file remote.c.
References generic_mourn_inferior(), and unpush_target().
Referenced by init_remote_ops(), and remote_disconnect().
|
static |
Definition at line 1511 of file remote.c.
References PACKET_ENABLE, and PACKET_multiprocess_feature.
Referenced by add_current_inferior_and_thread(), append_resumption(), extended_remote_kill(), extended_remote_mourn(), remote_detach_pid(), remote_notice_new_inferior(), remote_pid_to_str(), remote_query_attached(), remote_stop_ns(), remote_supports_multi_process(), set_general_process(), and write_ptid().
|
static |
Definition at line 12661 of file remote.c.
References get_remote_state(), remote_check_symbols(), and remote_state::remote_desc.
Referenced by _initialize_remote().
Definition at line 2761 of file remote.c.
References thread_item::core, thread_item::extra, inferior_ptid, pid, thread_item::ptid, ptid_build(), ptid_get_pid(), threadref_to_int(), and VEC_safe_push.
Referenced by remote_get_threads_with_ql().
Definition at line 1710 of file remote.c.
References get_remote_state(), in_inferior_list(), in_thread_list(), inferior_ptid, is_exited(), non_stop, notice_new_inferior(), pid, pid_to_ptid(), ptid_equal(), ptid_get_pid(), ptid_is_pid(), remote_add_inferior(), remote_add_thread(), remote_multi_process_p(), remote_state::starting_up, and thread_change_ptid().
Referenced by process_stop_reply(), and remote_update_thread_list().
void remote_notif_get_pending_events | ( | struct notif_client * | nc | ) |
Definition at line 6144 of file remote.c.
References notif_client::ack, remote_state::buf, remote_state::buf_size, fprintf_unfiltered(), gdb_stdlog, get_remote_state(), getpkt(), notif_client::id, notif_client::name, notif_debug, remote_state::notif_state, remote_notif_state::pending_event, and remote_notif_ack().
Referenced by kill_new_fork_children(), remote_notif_process(), remote_start_remote(), remote_wait_ns(), and remove_new_fork_children().
|
static |
Definition at line 5739 of file remote.c.
References queue_iter_param::input, queue_iter_param::output, stop_reply::ptid, ptid_match(), and QUEUE_remove_elem.
Referenced by remote_notif_remove_queued_reply().
|
static |
Definition at line 5761 of file remote.c.
References fprintf_unfiltered(), gdb_stdlog, queue_iter_param::input, notif_debug, queue_iter_param::output, QUEUE_iterate, remote_notif_remove_once_on_match(), and target_pid_to_str().
Referenced by queued_stop_reply().
|
static |
Definition at line 5504 of file remote.c.
References _, error(), target_waitstatus::kind, push_stop_reply(), putpkt(), TARGET_WAITKIND_IGNORE, and stop_reply::ws.
|
static |
Definition at line 5540 of file remote.c.
References notif_event::dtr, and stop_reply_dtr().
|
static |
Definition at line 5520 of file remote.c.
References mark_async_event_handler().
|
static |
Definition at line 5497 of file remote.c.
References remote_parse_stop_reply().
Definition at line 3872 of file remote.c.
References remote_open_1(), and remote_ops.
Referenced by init_remote_ops().
|
static |
Definition at line 4411 of file remote.c.
References _, baud_rate, remote_state::cached_wait_status, CATCH, remote_state::continue_thread, create_async_event_handler(), remote_state::ctrlc_pending_p, END_CATCH, error(), remote_state::explicit_packet_size, remote_state::extended, remote_state::general_thread, get_remote_state(), have_inferiors(), init_thread_list(), remote_state::last_pass_packet, remote_state::last_program_signals_packet, no_shared_libraries(), remote_state::noack_mode, not_sent_ptid, remote_state::notif_state, perror_with_name(), push_target(), puts_filtered(), query(), readahead_cache_invalidate(), remote_async_inferior_event_handler(), remote_async_terminal_ours_p, remote_btrace_reset(), remote_state::remote_desc, remote_fileio_reset(), remote_notif_state_allocate(), remote_serial_open(), remote_start_remote(), remote_state::remote_traceframe_number, remote_unpush_target(), reopen_exec_file(), reread_symbols(), reset_all_packet_configs_support(), RETURN_MASK_ALL, serial_close(), serial_flush_input(), serial_parity, serial_raw(), serial_setbaudrate(), serial_setparity(), target_async_permitted, target_preopen(), throw_exception(), TRY, remote_state::use_threadextra_query, remote_state::use_threadinfo_query, wait_forever_enabled_p, remote_state::waiting_for_stop_reply, and xfree().
Referenced by extended_remote_open(), and remote_open().
|
static |
Definition at line 4072 of file remote.c.
References _, remote_state::explicit_packet_size, get_remote_state(), MAX_REMOTE_PACKET_SIZE, protocol_feature::name, PACKET_ENABLE, and warning().
|
static |
Definition at line 5861 of file remote.c.
References _, cached_reg::data, error(), fromhex(), GDB_SIGNAL_FIRST, get_remote_arch_state(), get_remote_state(), hex2bin(), hex_string(), inferior_ptid, target_waitstatus::kind, non_stop, null_ptid, cached_reg::num, PACKET_ENABLE, PACKET_hwbreak_feature, packet_reg_from_pnum(), PACKET_swbreak_feature, pid, pid_to_ptid(), stop_reply::ptid, ptid_equal(), ptid_get_pid(), read_ptid(), register_size(), packet_reg::regnum, skip_to_semicolon(), startswith(), strprefix(), target_gdbarch(), TARGET_STOPPED_BY_HW_BREAKPOINT, TARGET_STOPPED_BY_NO_REASON, TARGET_STOPPED_BY_SW_BREAKPOINT, TARGET_STOPPED_BY_WATCHPOINT, TARGET_WAITKIND_EXITED, TARGET_WAITKIND_FORKED, TARGET_WAITKIND_IGNORE, TARGET_WAITKIND_LOADED, TARGET_WAITKIND_NO_HISTORY, TARGET_WAITKIND_SIGNALLED, TARGET_WAITKIND_STOPPED, TARGET_WAITKIND_VFORK_DONE, TARGET_WAITKIND_VFORKED, unpack_varlen_hex(), VEC_safe_push, warning(), and stop_reply::ws.
Referenced by remote_notif_stop_parse().
|
static |
Definition at line 1822 of file remote.c.
References remote_state::buf, remote_state::buf_size, gdb_assert, get_remote_state(), getpkt(), remote_state::last_pass_packet, PACKET_DISABLE, packet_ok(), PACKET_QPassSignals, putpkt(), remote_protocol_packets, tohex(), xfree(), and xmalloc().
Referenced by init_remote_ops(), and remote_start_remote().
|
static |
Definition at line 12348 of file remote.c.
References _, current_target, inferior::fake_pid_p, find_inferior_pid(), arm-linux::inf, internal_error(), PACKET_ENABLE, PACKET_qXfer_exec_file, TARGET_OBJECT_EXEC_FILE, target_read_stralloc(), xfree(), and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 9900 of file remote.c.
References remote_state::buf, remote_state::extended, get_remote_state(), normal_pid_to_str(), null_ptid, ptid_equal(), ptid_get_lwp(), ptid_get_pid(), ptid_is_pid(), remote_multi_process_p(), and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 6724 of file remote.c.
References gdbarch_num_regs(), get_regcache_arch(), get_remote_arch_state(), packet_reg::in_g_packet, MAX_REGISTER_SIZE, PACKET_DISABLE, PACKET_ENABLE, PACKET_P, PACKET_SUPPORT_UNKNOWN, regcache_raw_read(), packet_reg::regnum, and remote_arch_state::regs.
Referenced by init_remote_ops().
|
static |
Definition at line 1873 of file remote.c.
References remote_state::buf, remote_state::buf_size, gdb_assert, get_remote_state(), getpkt(), remote_state::last_program_signals_packet, PACKET_DISABLE, packet_ok(), PACKET_QProgramSignals, putpkt(), remote_protocol_packets, signal_pass_state(), tohex(), xfree(), and xmalloc().
Referenced by init_remote_ops().
|
static |
Definition at line 11009 of file remote.c.
References _, do_cleanups(), error(), error_no_arg(), gdb_buildargv(), make_cleanup_freeargv(), and remote_file_put().
Referenced by _initialize_remote().
Definition at line 1592 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_qAttached, PACKET_UNKNOWN, putpkt(), remote_multi_process_p(), remote_protocol_packets, size, warning(), and xsnprintf().
Referenced by remote_add_inferior().
|
static |
Definition at line 4246 of file remote.c.
References _, AUTO_BOOLEAN_FALSE, remote_state::buf, remote_state::buf_size, protocol_feature::default_support, do_cleanups(), remote_state::explicit_packet_size, remote_state::extended, free_current_contents(), protocol_feature::func, get_remote_state(), getpkt(), make_cleanup(), name, cleanup::next, PACKET_DISABLE, PACKET_ENABLE, PACKET_ERROR, PACKET_fork_event_feature, PACKET_hwbreak_feature, packet_ok(), PACKET_qSupported, packet_set_cmd_state(), PACKET_SUPPORT_UNKNOWN, PACKET_swbreak_feature, PACKET_vfork_event_feature, putpkt(), remote_protocol_packets, remote_query_supported_append(), warning(), and xrealloc().
Referenced by remote_start_remote().
|
static |
Definition at line 4237 of file remote.c.
Referenced by remote_query_supported().
|
static |
Definition at line 9639 of file remote.c.
References _, bin2hex(), remote_state::buf, remote_state::buf_size, error(), fputc_unfiltered(), fromhex(), get_remote_packet_size(), get_remote_state(), getpkt_sane(), putpkt(), QUIT, remote_console_output(), and remote_state::remote_desc.
Referenced by init_remote_ops().
|
static |
Definition at line 12274 of file remote.c.
References _, BTRACE_ERR_NONE, BTRACE_ERR_UNKNOWN, BTRACE_READ_ALL, BTRACE_READ_DELTA, BTRACE_READ_NEW, current_target, do_cleanups(), error(), get_remote_state(), internal_error(), make_cleanup(), packet_config_support(), PACKET_ENABLE, PACKET_qXfer_btrace, parse_xml_btrace(), remote_protocol_packets, TARGET_OBJECT_BTRACE, target_read_stralloc(), and xfree().
Referenced by init_remote_ops().
|
static |
Definition at line 7343 of file remote.c.
References available, do_cleanups(), gdb_assert, get_traceframe_number(), len, make_cleanup(), remote_read_bytes_1(), remote_xfer_live_readonly_partial(), TARGET_XFER_EOF, TARGET_XFER_OK, TARGET_XFER_UNAVAILABLE, traceframe_available_memory(), VEC(), VEC_cleanup, VEC_empty, and VEC_index.
Referenced by remote_xfer_partial().
|
static |
Definition at line 7245 of file remote.c.
References remote_state::buf, remote_state::buf_size, get_memory_read_packet_size(), get_remote_state(), getpkt(), hex2bin(), hexnumstr(), min, putpkt(), remote_address_masked(), TARGET_XFER_E_IO, and TARGET_XFER_OK.
Referenced by remote_read_bytes(), and remote_xfer_live_readonly_partial().
|
static |
Definition at line 10102 of file remote.c.
References target_ops::beneath, remote_g_packet_guess::bytes, gdbarch_data(), inferior_ptid, null_ptid, ptid_equal(), send_g_packet(), target_gdbarch(), target_has_execution, remote_g_packet_guess::tdesc, target_ops::to_read_description, VEC_empty, and VEC_iterate.
Referenced by init_remote_ops().
|
static |
Definition at line 10090 of file remote.c.
References gdbarch_data(), target_gdbarch(), and VEC_empty.
Referenced by remote_start_remote().
|
static |
Definition at line 9252 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, error(), remote_state::finished_annex, remote_state::finished_object, remote_state::finished_offset, get_remote_packet_size(), get_remote_state(), getpkt_sane(), min, PACKET_DISABLE, PACKET_OK, packet_ok(), phex_nz(), putpkt(), remote_unescape_input(), packet_config::support, TARGET_XFER_E_IO, TARGET_XFER_EOF, TARGET_XFER_OK, and xfree().
Referenced by remote_xfer_partial().
|
static |
Definition at line 8864 of file remote.c.
Referenced by init_remote_ops().
int remote_register_number_and_offset | ( | struct gdbarch * | gdbarch, |
int | regnum, | ||
int * | pnum, | ||
int * | poffset | ||
) |
Definition at line 682 of file remote.c.
References do_cleanups(), gdb_assert, gdbarch_num_regs(), make_cleanup(), map_regcache_remote_table(), packet_reg::offset, packet_reg::pnum, regnum, xcalloc(), and xfree().
Referenced by regcache_dump().
|
static |
Definition at line 8716 of file remote.c.
References remote_state::buf, remote_state::buf_size, gdbarch_has_global_breakpoints(), get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), memory_remove_breakpoint(), PACKET_DISABLE, PACKET_Z0, bp_target_info::placed_address, bp_target_info::placed_size, putpkt(), remote_address_masked(), set_general_process(), target_gdbarch(), and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 1547 of file remote.c.
Referenced by init_extended_remote_ops().
|
static |
Definition at line 9037 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, gdbarch_has_global_breakpoints(), get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), internal_error(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_Z1, bp_target_info::placed_address, bp_target_info::placed_size, putpkt(), remote_address_masked(), remote_protocol_packets, set_general_process(), target_gdbarch(), and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 1567 of file remote.c.
Referenced by init_extended_remote_ops().
|
static |
Definition at line 8821 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, gdbarch_has_global_breakpoints(), get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), internal_error(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_Z0, putpkt(), remote_address_masked(), remote_protocol_packets, set_general_process(), target_gdbarch(), watchpoint_to_Z_packet(), and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 5084 of file remote.c.
References _, remote_state::buf, error(), EXEC_REVERSE, execution_direction, get_remote_state(), info_verbose, remote_state::last_sent_signal, remote_state::last_sent_step, minus_one_ptid, non_stop, notif_client_stop, remote_state::notif_state, PACKET_bc, PACKET_bs, PACKET_DISABLE, ptid_equal(), putpkt(), remote_notif_process(), remote_vcont_resume(), set_continue_thread(), target_async, target_can_async_p, tohex(), remote_state::waiting_for_stop_reply, and warning().
Referenced by init_remote_ops().
|
static |
Definition at line 11766 of file remote.c.
References _, bin2hex(), remote_state::buf, error(), get_remote_packet_size(), get_remote_state(), putpkt(), remote_get_noisy_reply(), target_buf, and target_buf_size.
Referenced by init_remote_ops().
|
static |
Definition at line 9548 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, error(), gdbarch_addr_bit(), get_memory_write_packet_size(), get_remote_state(), getpkt_sane(), packet_config_support(), PACKET_DISABLE, PACKET_OK, packet_ok(), PACKET_qSearch_memory, phex_nz(), putpkt_binary(), remote_escape_output(), remote_protocol_packets, set_general_process(), simple_search_memory(), packet_config::support, target_gdbarch(), and unpack_varlen_hex().
Referenced by init_remote_ops().
|
static |
|
static |
Definition at line 7418 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, error(), get_remote_packet_size(), get_remote_state(), getpkt(), internal_error(), packet_check_result(), and putpkt().
Referenced by remote_flash_done(), and remote_flash_erase().
Definition at line 3980 of file remote.c.
References _, serial_open(), startswith(), and warning().
Referenced by remote_open_1().
Definition at line 7579 of file remote.c.
References _, get_remote_state(), remote_state::remote_desc, serial_write(), and unpush_and_perror().
Referenced by getpkt_or_notif_sane_1(), putpkt_binary(), and send_interrupt_sequence().
|
static |
Definition at line 11863 of file remote.c.
References _, remote_state::buf, error(), get_remote_packet_size(), get_remote_state(), putpkt(), remote_get_noisy_reply(), target_buf, target_buf_size, and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 11832 of file remote.c.
References _, remote_state::buf, error(), get_remote_packet_size(), get_remote_state(), PACKET_DisconnectedTracing_feature, PACKET_ENABLE, putpkt(), remote_get_noisy_reply(), target_buf, target_buf_size, warning(), and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 4009 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, get_remote_packet_size(), get_remote_state(), getpkt(), may_insert_breakpoints, may_insert_fast_tracepoints, may_insert_tracepoints, may_stop, may_write_memory, may_write_registers, putpkt(), warning(), and xsnprintf().
Referenced by init_remote_ops(), and remote_start_remote().
|
static |
Definition at line 11932 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, gdb_assert, get_remote_packet_size(), get_remote_state(), hexnumstr(), PACKET_DISABLE, PACKET_OK, packet_ok(), PACKET_QTBuffer_size, putpkt(), remote_get_noisy_reply(), remote_protocol_packets, warning(), and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 11963 of file remote.c.
References _, bin2hex(), remote_state::buf, error(), get_remote_packet_size(), get_remote_state(), putpkt(), remote_get_noisy_reply(), target_buf, target_buf_size, and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 3570 of file remote.c.
References _, add_current_inferior_and_thread(), auto_solib_add, breakpoints_should_be_inserted_now(), remote_state::buf, remote_state::buf_size, remote_state::cached_wait_status, current_trace_status(), error(), gdb_assert, gdbarch_has_global_solist(), gdbarch_target_desc(), get_current_thread(), get_offsets(), get_remote_state(), getpkt(), notif_client::id, immediate_quit, arm-linux::inf, inferior_ptid, init_wait_for_inferior(), insert_breakpoints(), interrupt_on_connect, iterate_over_threads(), merge_uploaded_trace_state_variables(), merge_uploaded_tracepoints(), minus_one_ptid, remote_state::noack_mode, non_stop, notif_client_stop, remote_state::notif_state, null_ptid, packet_config_support(), PACKET_DISABLE, PACKET_ENABLE, PACKET_OK, packet_ok(), PACKET_QAllow, PACKET_QNonStop, PACKET_QStartNoAckMode, remote_notif_state::pending_event, printf_filtered(), thread_info::ptid, ptid_equal(), putpkt(), QUIT, remote_check_symbols(), remote_current_thread(), remote_state::remote_desc, remote_get_trace_status(), remote_notif_get_pending_events(), remote_notif_parse(), remote_pass_signals(), remote_protocol_packets, remote_query_supported(), remote_read_description_p(), remote_set_permissions(), remote_update_thread_list(), remote_upload_trace_state_variables(), remote_upload_tracepoints(), send_interrupt_sequence(), serial_write(), set_continue_thread(), set_general_thread(), set_stop_requested_callback(), solib_add(), start_remote(), remote_state::starting_up, symfile_objfile, target_async, target_can_async_p, target_clear_description(), target_find_description(), target_gdbarch(), target_has_execution, target_update_thread_list(), thread_count(), thread_list, update_address_spaces(), and update_signals_program_target().
Referenced by remote_open_1().
|
static |
Definition at line 3130 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, error(), get_remote_packet_size(), get_remote_state(), getpkt(), hexnumstr(), parse_static_tracepoint_marker_definition(), putpkt(), and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 5343 of file remote.c.
References fprintf_unfiltered(), gdb_stdlog, non_stop, remote_debug, remote_stop_as(), and remote_stop_ns().
Referenced by init_remote_ops().
|
static |
Definition at line 5322 of file remote.c.
References remote_state::cached_wait_status, remote_state::ctrlc_pending_p, get_remote_state(), and send_interrupt_sequence().
Referenced by remote_stop().
|
static |
Definition at line 5271 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, error(), get_remote_packet_size(), get_remote_state(), getpkt(), minus_one_ptid, PACKET_SUPPORT_UNKNOWN, PACKET_vCont, peek_stop_reply(), ptid_build(), ptid_equal(), ptid_get_pid(), ptid_is_pid(), putpkt(), remote_multi_process_p(), remote_vcont_probe(), remote_state::supports_vCont, vCont_action_support::t, target_pid_to_str(), write_ptid(), and xsnprintf().
Referenced by remote_stop().
|
static |
Definition at line 8928 of file remote.c.
References get_remote_state(), remote_state::stop_reason, and TARGET_STOPPED_BY_HW_BREAKPOINT.
Referenced by init_remote_ops().
|
static |
Definition at line 8907 of file remote.c.
References get_remote_state(), remote_state::stop_reason, and TARGET_STOPPED_BY_SW_BREAKPOINT.
Referenced by init_remote_ops().
|
static |
Definition at line 8947 of file remote.c.
References get_remote_state(), remote_state::stop_reason, and TARGET_STOPPED_BY_WATCHPOINT.
Referenced by init_remote_ops(), and remote_stopped_data_address().
|
static |
Definition at line 8955 of file remote.c.
References get_remote_state(), remote_stopped_by_watchpoint(), and remote_state::remote_watch_data_address.
Referenced by init_remote_ops().
|
static |
Definition at line 6831 of file remote.c.
References gdb_assert, gdbarch_num_regs(), get_regcache_arch(), get_remote_arch_state(), packet_reg::in_g_packet, inferior_ptid, packet_reg_from_regnum(), remote_arch_state::regs, set_general_thread(), set_remote_traceframe(), store_register_using_P(), and store_registers_using_G().
Referenced by init_remote_ops().
|
static |
Definition at line 4057 of file remote.c.
References _, protocol_feature::name, protocol_feature::packet, remote_protocol_packets, packet_config::support, and warning().
|
static |
Definition at line 12059 of file remote.c.
References _, BTRACE_FORMAT_BTS, BTRACE_FORMAT_NONE, BTRACE_FORMAT_PT, internal_error(), PACKET_ENABLE, PACKET_Qbtrace_bts, PACKET_Qbtrace_off, PACKET_Qbtrace_pt, and PACKET_qXfer_btrace.
Referenced by init_remote_ops().
|
static |
Definition at line 11113 of file remote.c.
References PACKET_ConditionalBreakpoints, and PACKET_ENABLE.
Referenced by init_remote_ops(), remote_insert_breakpoint(), and remote_insert_hw_breakpoint().
|
static |
Definition at line 11107 of file remote.c.
References PACKET_ConditionalTracepoints, and PACKET_ENABLE.
Referenced by remote_download_tracepoint().
|
static |
Definition at line 11088 of file remote.c.
Referenced by init_remote_ops().
|
static |
Definition at line 11137 of file remote.c.
References PACKET_ENABLE, and PACKET_EnableDisableTracepoints_feature.
Referenced by init_remote_ops().
|
static |
Definition at line 11119 of file remote.c.
References PACKET_ENABLE, and PACKET_FastTracepoints.
Referenced by remote_download_tracepoint().
|
static |
Definition at line 11131 of file remote.c.
References PACKET_ENABLE, and PACKET_InstallInTrace.
Referenced by remote_can_download_tracepoint().
|
static |
Definition at line 11095 of file remote.c.
References remote_state::extended, get_remote_state(), and remote_multi_process_p().
Referenced by init_remote_ops().
|
static |
Definition at line 11082 of file remote.c.
Referenced by init_remote_ops().
|
static |
Definition at line 11125 of file remote.c.
References PACKET_ENABLE, and PACKET_StaticTracepoints.
Referenced by remote_download_tracepoint().
|
static |
Definition at line 8939 of file remote.c.
References get_remote_state(), PACKET_ENABLE, and PACKET_hwbreak_feature.
Referenced by init_remote_ops().
|
static |
Definition at line 8918 of file remote.c.
References get_remote_state(), PACKET_ENABLE, and PACKET_swbreak_feature.
Referenced by init_remote_ops().
|
static |
Definition at line 11144 of file remote.c.
References PACKET_ENABLE, and PACKET_tracenz_feature.
Referenced by init_remote_ops().
|
static |
|
static |
Definition at line 5390 of file remote.c.
References async_initialize_sigint_signal_handler(), delete_file_handler(), input_fd, remote_async_terminal_ours_p, and target_async_permitted.
Referenced by init_remote_ops().
|
static |
Definition at line 5413 of file remote.c.
References add_file_handler(), async_cleanup_sigint_signal_handler(), input_fd, remote_async_terminal_ours_p, stdin_event_handler(), and target_async_permitted.
Referenced by init_remote_ops(), and remote_close().
|
static |
Definition at line 2016 of file remote.c.
References remote_state::buf, remote_state::buf_size, get_remote_packet_size(), get_remote_state(), getpkt(), putpkt(), remote_thread_always_alive(), and write_ptid().
Referenced by init_remote_ops().
|
static |
Definition at line 1994 of file remote.c.
References get_remote_state(), ptid_equal(), ptid_get_lwp(), and ptid_get_pid().
Referenced by remote_thread_alive(), and remote_update_thread_list().
|
static |
Definition at line 2656 of file remote.c.
References _, copy_threadref(), get_remote_state(), MAXTHREADLISTRESULTS, remote_state::nextthread, remote_get_threadlist(), remote_state::resultthreadlist, and warning().
Referenced by remote_get_threads_with_ql().
|
static |
Definition at line 3049 of file remote.c.
References _, gdb_ext_thread_info::active, remote_state::buf, remote_state::buf_size, gdb_ext_thread_info::display, private_thread_info::extra, find_thread_ptid(), get_remote_packet_size(), get_remote_state(), getpkt(), hex2bin(), int_to_threadref(), internal_error(), min, gdb_ext_thread_info::more_display, PACKET_ENABLE, PACKET_qXfer_threads, thread_info::priv, thread_info::ptid, ptid_equal(), ptid_get_lwp(), ptid_get_pid(), putpkt(), remote_state::remote_desc, remote_get_threadinfo(), gdb_ext_thread_info::shortname, TAG_DISPLAY, TAG_EXISTS, TAG_MOREDISPLAY, TAG_THREADID, TAG_THREADNAME, remote_state::use_threadextra_query, write_ptid(), and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 11658 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, error(), get_remote_packet_size(), get_remote_state(), int, phex_nz(), putpkt(), remote_get_noisy_reply(), remote_state::remote_traceframe_number, set_remote_traceframe(), tfind_number, tfind_outside, tfind_pc, tfind_range, tfind_tp, and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 11156 of file remote.c.
References _, error(), putpkt(), remote_get_noisy_reply(), target_buf, and target_buf_size.
Referenced by init_remote_ops().
|
static |
Definition at line 11490 of file remote.c.
References _, exec_bfd, getpkt(), offset, PACKET_ENABLE, PACKET_qXfer_traceframe_info, putpkt(), size, target_buf, target_buf_size, warning(), and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 11539 of file remote.c.
References _, error(), putpkt(), remote_get_noisy_reply(), target_buf, and target_buf_size.
Referenced by init_remote_ops().
|
static |
Definition at line 11647 of file remote.c.
References _, error(), putpkt(), remote_get_noisy_reply(), target_buf, and target_buf_size.
Referenced by init_remote_ops().
|
static |
Definition at line 11878 of file remote.c.
References current_target, do_cleanups(), make_cleanup(), parse_traceframe_info(), TARGET_OBJECT_TRACEFRAME_INFO, target_read_stralloc(), and xfree().
Referenced by init_remote_ops().
|
static |
Definition at line 2434 of file remote.c.
References _, gdb_ext_thread_info::active, remote_state::buf_size, copy_threadref(), gdb_ext_thread_info::display, get_remote_state(), gdb_ext_thread_info::more_display, gdb_ext_thread_info::shortname, stub_unpack_int(), TAG_DISPLAY, TAG_EXISTS, TAG_MOREDISPLAY, TAG_THREADID, TAG_THREADNAME, gdb_ext_thread_info::threadid, threadmatch(), unpack_byte(), unpack_int(), unpack_string(), unpack_threadid(), and warning().
Referenced by remote_get_threadinfo().
|
static |
Definition at line 4405 of file remote.c.
References pop_all_targets_above(), and process_stratum.
Referenced by getpkt_or_notif_sane_1(), interrupt_query(), readchar(), remote_open_1(), and unpush_and_perror().
|
static |
Definition at line 2943 of file remote.c.
References ALL_THREADS_SAFE, clear_threads_listing_context(), private_thread_info::core, thread_item::core, delete_thread(), demand_private_info(), do_cleanups(), private_thread_info::extra, thread_item::extra, get_remote_state(), inferior_ptid, make_cleanup(), non_stop, null_ptid, prune_threads(), thread_info::ptid, thread_item::ptid, ptid_equal(), remote_get_threads_with_ql(), remote_get_threads_with_qthreadinfo(), remote_get_threads_with_qxfer(), remote_notice_new_inferior(), remote_thread_always_alive(), remove_new_fork_children(), VEC_empty, VEC_iterate, and VEC_length.
Referenced by extended_remote_attach(), init_remote_ops(), and remote_start_remote().
|
static |
Definition at line 12696 of file remote.c.
References remote_state::buf, remote_state::buf_size, get_remote_state(), getpkt(), parse_tsv_definition(), and putpkt().
Referenced by init_remote_ops(), and remote_start_remote().
|
static |
Definition at line 12675 of file remote.c.
References remote_state::buf, remote_state::buf_size, get_remote_state(), getpkt(), parse_tracepoint_definition(), and putpkt().
Referenced by init_remote_ops(), and remote_start_remote().
|
static |
Definition at line 12010 of file remote.c.
References remote_state::buf, remote_state::buf_size, get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_DISABLE, PACKET_QAgent, putpkt(), use_agent, and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 4850 of file remote.c.
References remote_state::buf, remote_state::buf_size, getpkt(), packet_ok(), PACKET_vCont, putpkt(), vCont_action_support::r, remote_protocol_packets, startswith(), remote_state::supports_vCont, and vCont_action_support::t.
Referenced by remote_stop_ns(), remote_vcont_resume(), and set_range_stepping().
Definition at line 5011 of file remote.c.
References _, append_pending_thread_resumptions(), append_resumption(), remote_state::buf, remote_state::buf_size, error(), gdb_assert, get_remote_packet_size(), get_remote_state(), getpkt(), inferior_ptid, minus_one_ptid, non_stop, PACKET_DISABLE, PACKET_SUPPORT_UNKNOWN, PACKET_vCont, ptid_equal(), ptid_is_pid(), putpkt(), remote_vcont_probe(), and xsnprintf().
Referenced by remote_resume().
|
static |
Definition at line 9079 of file remote.c.
References remote_state::buf, remote_state::buf_size, fromhex(), get_remote_packet_size(), get_remote_state(), getpkt(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_qCRC, putpkt(), remote_protocol_packets, set_general_process(), simple_verify_memory(), target_has_execution, and xsnprintf().
Referenced by init_remote_ops().
|
static |
Definition at line 1527 of file remote.c.
References PACKET_ENABLE, and PACKET_vfork_event_feature.
Referenced by remote_follow_fork(), and remote_insert_vfork_catchpoint().
|
static |
Definition at line 8307 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, get_remote_packet_size(), getpkt(), internal_error(), PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_UNKNOWN, PACKET_vKill, putpkt(), remote_protocol_packets, and xsnprintf().
Referenced by extended_remote_kill(), kill_child_of_pending_fork(), and kill_new_fork_children().
|
static |
Definition at line 6437 of file remote.c.
References mark_async_event_handler(), non_stop, QUEUE_is_empty, remote_wait_as(), remote_wait_ns(), and target_is_async_p.
Referenced by init_remote_ops().
|
static |
Definition at line 6288 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, remote_state::cached_wait_status, check_quit_flag(), clear_quit_flag(), remote_state::ctrlc_pending_p, gdb_signal_to_name(), get_remote_state(), getpkt_or_notif_sane(), inferior_ptid, target_waitstatus::integer, target_waitstatus::kind, remote_state::last_sent_signal, remote_state::last_sent_step, minus_one_ptid, null_ptid, ofunc, printf_filtered(), process_stop_reply(), ptid_equal(), putpkt(), queued_stop_reply(), record_currthread(), remote_console_output(), remote_fileio_request(), remote_notif_parse(), target_waitstatus::sig, remote_state::stop_reason, sync_remote_interrupt(), target_is_async_p, TARGET_STOPPED_BY_NO_REASON, target_terminal_inferior(), target_terminal_ours_for_output(), TARGET_WAITKIND_EXITED, TARGET_WAITKIND_IGNORE, TARGET_WAITKIND_SIGNALLED, TARGET_WAITKIND_STOPPED, TARGET_WNOHANG, target_waitstatus::value, wait_forever_enabled_p, remote_state::waiting_for_stop_reply, and warning().
Referenced by remote_wait().
|
static |
Definition at line 6229 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, get_remote_state(), getpkt_or_notif_sane(), notif_client::id, target_waitstatus::kind, minus_one_ptid, remote_state::notif_state, remote_notif_state::pending_event, process_stop_reply(), queued_stop_reply(), remote_console_output(), remote_notif_get_pending_events(), TARGET_WAITKIND_IGNORE, TARGET_WNOHANG, and warning().
Referenced by remote_wait().
|
static |
Definition at line 8811 of file remote.c.
References remote_address_masked().
Referenced by init_remote_ops().
|
static |
Definition at line 7202 of file remote.c.
References _, check_binary_download(), internal_error(), PACKET_DISABLE, PACKET_ENABLE, PACKET_SUPPORT_UNKNOWN, PACKET_X, and remote_write_bytes_aux().
Referenced by remote_xfer_partial().
|
static |
Definition at line 7043 of file remote.c.
References _, align_for_efficient_write(), bin2hex(), remote_state::buf, remote_state::buf_size, get_memory_write_packet_size(), get_remote_state(), getpkt(), hexnumlen(), hexnumnstr(), hexnumstr(), internal_error(), min, putpkt_binary(), remote_address_masked(), REMOTE_ALIGN_WRITES, remote_escape_output(), TARGET_XFER_E_IO, TARGET_XFER_EOF, and TARGET_XFER_OK.
Referenced by remote_flash_write(), and remote_write_bytes().
|
static |
Definition at line 9209 of file remote.c.
References remote_state::buf, remote_state::buf_size, get_memory_write_packet_size(), get_remote_state(), getpkt_sane(), PACKET_DISABLE, PACKET_OK, packet_ok(), phex_nz(), putpkt_binary(), remote_escape_output(), packet_config::support, TARGET_XFER_E_IO, TARGET_XFER_OK, and unpack_varlen_hex().
Referenced by remote_xfer_partial().
|
static |
Definition at line 7291 of file remote.c.
References target_section::addr, target_section::endaddr, len, remote_read_bytes_1(), target_section_table::sections, target_get_section_table(), target_section_by_addr(), TARGET_XFER_EOF, and target_section::the_bfd_section.
Referenced by remote_read_bytes().
|
static |
Definition at line 9333 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, error(), gdb_assert, gdbarch_addressable_memory_unit_size(), get_remote_packet_size(), get_remote_state(), getpkt(), inferior_ptid, PACKET_qXfer_auxv, PACKET_qXfer_btrace, PACKET_qXfer_btrace_conf, PACKET_qXfer_exec_file, PACKET_qXfer_fdpic, PACKET_qXfer_features, PACKET_qXfer_libraries, PACKET_qXfer_libraries_svr4, PACKET_qXfer_memory_map, PACKET_qXfer_osdata, PACKET_qXfer_siginfo_read, PACKET_qXfer_siginfo_write, PACKET_qXfer_spu_read, PACKET_qXfer_spu_write, PACKET_qXfer_statictrace_read, PACKET_qXfer_threads, PACKET_qXfer_traceframe_info, PACKET_qXfer_uib, putpkt(), remote_state::remote_desc, remote_flash_write(), remote_protocol_packets, remote_read_bytes(), remote_read_qxfer(), remote_write_bytes(), remote_write_qxfer(), set_general_thread(), set_remote_traceframe(), target_gdbarch(), target_has_execution, TARGET_OBJECT_AUXV, TARGET_OBJECT_AVAILABLE_FEATURES, TARGET_OBJECT_AVR, TARGET_OBJECT_BTRACE, TARGET_OBJECT_BTRACE_CONF, TARGET_OBJECT_EXEC_FILE, TARGET_OBJECT_FDPIC, TARGET_OBJECT_FLASH, TARGET_OBJECT_LIBRARIES, TARGET_OBJECT_LIBRARIES_SVR4, TARGET_OBJECT_MEMORY, TARGET_OBJECT_MEMORY_MAP, TARGET_OBJECT_OPENVMS_UIB, TARGET_OBJECT_OSDATA, TARGET_OBJECT_SIGNAL_INFO, TARGET_OBJECT_SPU, TARGET_OBJECT_STATIC_TRACE_DATA, TARGET_OBJECT_THREADS, TARGET_OBJECT_TRACEFRAME_INFO, TARGET_XFER_E_IO, TARGET_XFER_EOF, and TARGET_XFER_OK.
Referenced by init_remote_ops().
|
static |
Definition at line 5593 of file remote.c.
References queue_iter_param::input, target_waitstatus::kind, TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED, threads_listing_context_remove(), and stop_reply::ws.
Referenced by remove_new_fork_children().
|
static |
Definition at line 5617 of file remote.c.
References ALL_NON_EXITED_THREADS, queue_iter_param::input, is_pending_fork_parent(), notif_client_stop, queue_iter_param::output, thread_info::pending_follow, pid, thread_info::ptid, QUEUE_iterate, remote_notif_get_pending_events(), remove_child_of_pending_fork(), and threads_listing_context_remove().
Referenced by remote_update_thread_list().
|
static |
Definition at line 5650 of file remote.c.
References queue_iter_param::input, inferior::pid, stop_reply::ptid, ptid_get_pid(), QUEUE_remove_elem, and stop_reply_xfree().
Referenced by discard_pending_stop_replies().
|
static |
Definition at line 5704 of file remote.c.
References queue_iter_param::input, QUEUE_remove_elem, stop_reply::rs, and stop_reply_xfree().
Referenced by discard_pending_stop_replies_in_queue().
|
static |
Definition at line 3890 of file remote.c.
References PACKET_MAX, PACKET_SUPPORT_UNKNOWN, and remote_protocol_packets.
Referenced by remote_open_1().
|
static |
Definition at line 7440 of file remote.c.
References remote_timeout.
Referenced by remote_flash_done(), remote_flash_erase(), and remote_flash_write().
|
static |
Definition at line 6521 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, error(), fprintf_unfiltered(), gdb_stdlog, get_remote_packet_size(), get_remote_state(), getpkt(), remote_debug, remote_send(), and xsnprintf().
Referenced by fetch_registers_using_g(), and remote_read_description().
|
static |
Definition at line 3444 of file remote.c.
References _, get_remote_state(), internal_error(), interrupt_sequence_break, interrupt_sequence_break_g, interrupt_sequence_control_c, interrupt_sequence_mode, remote_state::remote_desc, remote_serial_write(), and serial_send_break().
Referenced by remote_start_remote(), and remote_stop_as().
|
static |
Referenced by remote_resume(), and remote_start_remote().
|
static |
Definition at line 1960 of file remote.c.
References set_thread().
|
static |
Definition at line 1975 of file remote.c.
References remote_state::extended, remote_state::general_thread, get_remote_state(), inferior_ptid, ptid_get_pid(), remote_multi_process_p(), and set_general_thread().
Referenced by compare_sections_command(), remote_check_symbols(), remote_get_min_fast_tracepoint_insn_len(), remote_insert_breakpoint(), remote_insert_hw_breakpoint(), remote_insert_watchpoint(), remote_remove_breakpoint(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_search_memory(), and remote_verify_memory().
|
static |
|
static |
Definition at line 1954 of file remote.c.
References set_thread().
|
static |
Definition at line 983 of file remote.c.
References _, error(), memory_packet_config::fixed_p, MAX_REMOTE_PACKET_SIZE, 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 1066 of file remote.c.
References set_memory_packet_size().
Referenced by _initialize_remote().
|
static |
Definition at line 1043 of file remote.c.
References set_memory_packet_size().
Referenced by _initialize_remote().
|
static |
Definition at line 12732 of file remote.c.
References _, get_remote_state(), PACKET_ENABLE, PACKET_SUPPORT_UNKNOWN, PACKET_vCont, vCont_action_support::r, remote_state::remote_desc, remote_vcont_probe(), remote_state::supports_vCont, use_range_stepping, and warning().
Referenced by _initialize_remote().
|
static |
Definition at line 12617 of file remote.c.
References all_commands, gdb_stdout, and help_list().
Referenced by _initialize_remote().
|
static |
Definition at line 1486 of file remote.c.
References packet_config::detect, NR_Z_PACKET_TYPES, PACKET_Z0, remote_protocol_packets, and remote_Z_packet_detect.
Referenced by _initialize_remote().
|
static |
Definition at line 6653 of file remote.c.
References _, get_remote_state(), get_traceframe_number(), remote_state::remote_traceframe_number, target_trace_find, tfind_number, and warning().
Referenced by remote_fetch_registers(), remote_get_trace_state_variable_value(), remote_store_registers(), remote_trace_find(), and remote_xfer_partial().
|
static |
Definition at line 866 of file remote.c.
References interrupt_sequence_break, interrupt_sequence_control_c, interrupt_sequence_mode, and remote_break.
Referenced by _initialize_remote().
|
static |
Definition at line 3433 of file remote.c.
References peek_stop_reply(), thread_info::ptid, and set_stop_requested().
Referenced by remote_start_remote().
Definition at line 1925 of file remote.c.
References remote_state::buf, remote_state::buf_size, remote_state::continue_thread, remote_state::general_thread, get_remote_packet_size(), get_remote_state(), getpkt(), minus_one_ptid, ptid_equal(), putpkt(), write_ptid(), and xsnprintf().
Referenced by set_continue_thread(), and set_general_thread().
|
static |
Definition at line 830 of file remote.c.
References _, fprintf_filtered(), internal_error(), interrupt_sequence_break, interrupt_sequence_break_g, interrupt_sequence_control_c, and interrupt_sequence_mode.
Referenced by _initialize_remote().
|
static |
Definition at line 1026 of file remote.c.
References _, memory_packet_config::fixed_p, get_memory_packet_size(), memory_packet_config::name, printf_filtered(), and memory_packet_config::size.
Referenced by show_memory_read_packet_size(), and show_memory_write_packet_size().
|
static |
Definition at line 1072 of file remote.c.
References show_memory_packet_size().
Referenced by _initialize_remote().
|
static |
Definition at line 1049 of file remote.c.
References show_memory_packet_size().
Referenced by _initialize_remote().
|
static |
Definition at line 1132 of file remote.c.
References _, AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_FALSE, AUTO_BOOLEAN_TRUE, packet_config::detect, packet_config::name, packet_config_support(), PACKET_DISABLE, PACKET_ENABLE, PACKET_SUPPORT_UNKNOWN, and printf_filtered().
Referenced by show_remote_protocol_packet_cmd(), and show_remote_protocol_Z_packet_cmd().
|
static |
Definition at line 12720 of file remote.c.
References _, and fprintf_filtered().
Referenced by _initialize_remote().
|
static |
Definition at line 12623 of file remote.c.
References cmd_func(), current_uiout, do_cleanups(), do_show_command(), make_cleanup_ui_out_tuple_begin_end(), cmd_list_element::name, cmd_list_element::next, not_set_cmd, remote_show_cmdlist, show_cmd, cmd_list_element::type, ui_out_field_string(), and ui_out_text().
Referenced by _initialize_remote().
|
static |
Definition at line 1448 of file remote.c.
References _, packet_config::detect, internal_error(), cmd_list_element::name, PACKET_MAX, remote_protocol_packets, show_packet_config_cmd(), and cmd_list_element::var.
Referenced by add_packet_config_cmd().
|
static |
Definition at line 1496 of file remote.c.
References NR_Z_PACKET_TYPES, PACKET_Z0, remote_protocol_packets, and show_packet_config_cmd().
Referenced by _initialize_remote().
|
static |
Definition at line 875 of file remote.c.
Referenced by _initialize_remote().
|
static |
Definition at line 7851 of file remote.c.
References readchar(), remote_timeout, and SERIAL_TIMEOUT.
Referenced by putpkt_binary().
|
static |
Definition at line 5838 of file remote.c.
Referenced by remote_parse_stop_reply().
|
static |
Definition at line 2807 of file remote.c.
References thread_item::core, thread_item::extra, thread_item::ptid, read_ptid(), gdb_xml_value::value, VEC_safe_push, and xml_find_attribute().
|
static |
Definition at line 5532 of file remote.c.
References VEC_free.
Referenced by remote_notif_stop_alloc_reply().
|
static |
Definition at line 3468 of file remote.c.
References null_ptid, and read_ptid().
Referenced by get_current_thread().
|
static |
Definition at line 5815 of file remote.c.
References stop_reply::ptid, ptid_equal(), and TARGET_WAITKIND_STOPPED.
Referenced by peek_stop_reply().
|
static |
|
static |
Definition at line 6749 of file remote.c.
References _, bin2hex(), remote_state::buf, remote_state::buf_size, error(), gdbarch_register_name(), get_regcache_arch(), get_remote_packet_size(), get_remote_state(), getpkt(), internal_error(), MAX_REGISTER_SIZE, PACKET_DISABLE, PACKET_ERROR, PACKET_OK, packet_ok(), PACKET_P, PACKET_UNKNOWN, phex_nz(), packet_reg::pnum, putpkt(), regcache_raw_collect(), register_size(), packet_reg::regnum, remote_protocol_packets, and xsnprintf().
Referenced by remote_store_registers().
Definition at line 6790 of file remote.c.
References _, bin2hex(), remote_state::buf, remote_state::buf_size, error(), gdbarch_num_regs(), get_regcache_arch(), get_remote_arch_state(), get_remote_state(), getpkt(), packet_reg::in_g_packet, packet_reg::offset, packet_check_result(), PACKET_ERROR, putpkt(), regcache_raw_collect(), packet_reg::regnum, remote_arch_state::regs, and remote_arch_state::sizeof_g_packet.
Referenced by remote_store_registers().
Definition at line 5849 of file remote.c.
Referenced by remote_parse_stop_reply().
Definition at line 2221 of file remote.c.
References stubhex().
Referenced by remote_unpack_thread_info_response(), unpack_byte(), and unpack_int().
Definition at line 2209 of file remote.c.
Referenced by stub_unpack_int(), and unpack_threadid().
|
static |
Definition at line 5248 of file remote.c.
References gdb_call_async_signal_handler(), and sync_remote_interrupt_twice().
Referenced by remote_wait_as(), and sync_remote_interrupt_twice().
|
static |
Definition at line 5259 of file remote.c.
References gdb_call_async_signal_handler(), ofunc, and sync_remote_interrupt().
Referenced by sync_remote_interrupt().
Definition at line 2383 of file remote.c.
Referenced by remote_get_threadlist(), and remote_unpack_thread_info_response().
|
static |
Definition at line 2743 of file remote.c.
References thread_item::ptid, ptid_equal(), target_waitstatus::related_pid, target_waitstatus::value, VEC_iterate, and VEC_ordered_remove.
Referenced by remove_child_of_pending_fork(), and remove_new_fork_children().
|
static |
Definition at line 500 of file remote.c.
Referenced by remote_get_noisy_reply().
|
static |
Definition at line 2245 of file remote.c.
References stub_unpack_int().
Referenced by parse_threadlist_response(), and remote_unpack_thread_info_response().
|
static |
Definition at line 2262 of file remote.c.
References stub_unpack_int().
Referenced by remote_unpack_thread_info_response().
|
static |
Definition at line 2238 of file remote.c.
References remote_state::buf, and fromhex().
Referenced by parse_threadlist_response().
|
static |
Definition at line 2293 of file remote.c.
Referenced by remote_unpack_thread_info_response().
|
static |
Definition at line 2316 of file remote.c.
References BUF_THREAD_ID_SIZE, and stubhex().
Referenced by parse_threadlist_response(), and remote_unpack_thread_info_response().
|
static |
Definition at line 7537 of file remote.c.
References remote_unpush_target(), safe_strerror(), TARGET_CLOSE_ERROR, and throw_error().
Referenced by readchar(), and remote_serial_write().
|
static |
Definition at line 3155 of file remote.c.
References _, remote_state::buf, remote_state::buf_size, do_cleanups(), error(), free_current_marker(), get_remote_state(), getpkt(), make_cleanup(), parse_static_tracepoint_marker_definition(), putpkt(), release_static_tracepoint_marker(), static_tracepoint_marker::str_id, and VEC_safe_push.
Referenced by remote_read_bytes(), and VEC().
|
static |
Definition at line 9708 of file remote.c.
References current_target, do_cleanups(), make_cleanup(), TARGET_OBJECT_MEMORY_MAP, target_read_stralloc(), VEC(), and xfree().
Definition at line 8751 of file remote.c.
References _, hw_access, hw_read, hw_write, internal_error(), Z_PACKET_ACCESS_WP, Z_PACKET_READ_WP, and Z_PACKET_WRITE_WP.
Referenced by remote_insert_watchpoint(), and remote_remove_watchpoint().
Definition at line 2145 of file remote.c.
References remote_state::buf, get_remote_state(), pid, ptid_get_lwp(), ptid_get_pid(), remote_multi_process_p(), and xsnprintf().
Referenced by append_resumption(), remote_get_thread_local_address(), remote_get_tib_address(), remote_stop_ns(), remote_thread_alive(), remote_threads_extra_info(), and set_thread().
|
static |
|
static |
Definition at line 1573 of file remote.c.
Referenced by remote_check_pending_interrupt().
|
static |
Definition at line 800 of file remote.c.
Referenced by _initialize_remote(), extended_remote_open(), and init_extended_remote_ops().
|
static |
Definition at line 858 of file remote.c.
Referenced by _initialize_remote(), and remote_start_remote().
const char interrupt_sequence_break[] = "BREAK" |
Definition at line 818 of file remote.c.
Referenced by send_interrupt_sequence(), set_remotebreak(), and show_interrupt_sequence().
const char interrupt_sequence_break_g[] = "BREAK-g" |
Definition at line 819 of file remote.c.
Referenced by send_interrupt_sequence(), and show_interrupt_sequence().
const char interrupt_sequence_control_c[] = "Ctrl-C" |
Definition at line 817 of file remote.c.
Referenced by send_interrupt_sequence(), set_remotebreak(), and show_interrupt_sequence().
|
static |
Definition at line 827 of file remote.c.
Referenced by _initialize_remote(), send_interrupt_sequence(), set_remotebreak(), and show_interrupt_sequence().
Definition at line 820 of file remote.c.
Referenced by _initialize_remote().
|
static |
Definition at line 1584 of file remote.c.
Referenced by add_current_inferior_and_thread(), and extended_remote_mourn().
|
static |
|
static |
|
static |
Definition at line 1585 of file remote.c.
Referenced by remote_open_1().
struct notif_client notif_client_stop |
Definition at line 5552 of file remote.c.
Referenced by extended_remote_attach(), kill_new_fork_children(), remote_resume(), remote_start_remote(), and remove_new_fork_children().
|
static |
Definition at line 5240 of file remote.c.
Referenced by remote_wait_as(), and sync_remote_interrupt_twice().
|
static |
Definition at line 892 of file remote.c.
Referenced by _initialize_remote(), and remote_address_masked().
|
static |
|
static |
|
static |
Definition at line 897 of file remote.c.
Referenced by remote_open_1(), remote_terminal_inferior(), and remote_terminal_ours().
|
static |
Definition at line 863 of file remote.c.
Referenced by _initialize_remote(), and set_remotebreak().
|
static |
|
static |
Definition at line 901 of file remote.c.
Referenced by _initialize_remote(), extended_remote_create_inferior(), and extended_remote_run().
Definition at line 7450 of file remote.c.
Referenced by remote_flash_done(), remote_flash_erase(), and remote_flash_write().
|
static |
|
static |
|
static |
Definition at line 798 of file remote.c.
Referenced by _initialize_remote(), init_extended_remote_ops(), init_remote_ops(), and remote_open().
|
static |
|
static |
Definition at line 1405 of file remote.c.
Referenced by _initialize_remote(), btrace_sync_conf(), check_binary_download(), extended_remote_attach(), extended_remote_run(), fetch_register_using_p(), init_all_packet_configs(), packet_set_cmd_state(), packet_support(), remote_check_symbols(), remote_disable_btrace(), remote_enable_btrace(), remote_get_thread_local_address(), remote_get_tib_address(), remote_get_trace_status(), remote_hostio_send_command(), remote_insert_breakpoint(), remote_insert_hw_breakpoint(), remote_insert_watchpoint(), remote_pass_signals(), remote_program_signals(), remote_query_attached(), remote_query_supported(), remote_read_btrace(), remote_remove_hw_breakpoint(), remote_remove_watchpoint(), remote_search_memory(), remote_set_trace_buffer_size(), remote_start_remote(), remote_supported_packet(), remote_vcont_probe(), remote_verify_memory(), remote_vkill(), remote_xfer_partial(), reset_all_packet_configs_support(), set_remote_protocol_Z_packet_cmd(), show_remote_protocol_packet_cmd(), show_remote_protocol_Z_packet_cmd(), and store_register_using_P().
|
static |
|
static |
Definition at line 236 of file remote.c.
Referenced by show_remote_cmd().
|
static |
Definition at line 435 of file remote.c.
Referenced by get_remote_state_raw().
|
static |
Definition at line 1483 of file remote.c.
Referenced by _initialize_remote(), and set_remote_protocol_Z_packet_cmd().
|
static |
Definition at line 73 of file remote.c.
Referenced by _initialize_remote(), extended_remote_disable_randomization(), remote_download_command_source(), remote_download_trace_state_variable(), remote_download_tracepoint(), remote_get_min_fast_tracepoint_insn_len(), remote_get_raw_trace_data(), remote_get_trace_state_variable_value(), remote_get_trace_status(), remote_get_tracepoint_status(), remote_save_trace_data(), remote_set_circular_trace_buffer(), remote_set_disconnected_tracing(), remote_set_trace_notes(), remote_trace_init(), remote_trace_set_readonly_regions(), remote_trace_start(), and remote_trace_stop().
|
static |
Definition at line 74 of file remote.c.
Referenced by _initialize_remote(), extended_remote_disable_randomization(), remote_download_command_source(), remote_download_trace_state_variable(), remote_download_tracepoint(), remote_get_min_fast_tracepoint_insn_len(), remote_get_raw_trace_data(), remote_get_trace_state_variable_value(), remote_get_trace_status(), remote_get_tracepoint_status(), remote_save_trace_data(), remote_set_circular_trace_buffer(), remote_set_disconnected_tracing(), remote_set_trace_notes(), remote_trace_init(), remote_trace_set_readonly_regions(), remote_trace_start(), and remote_trace_stop().
const struct gdb_xml_attribute thread_attributes[] |
const struct gdb_xml_element thread_children[] |
const struct gdb_xml_element threads_children[] |
const struct gdb_xml_element threads_elements[] |
|
static |
Definition at line 254 of file remote.c.
Referenced by _initialize_remote(), append_resumption(), and set_range_stepping().
|
static |
Definition at line 809 of file remote.c.
Referenced by remote_open_1(), and remote_wait_as().