Path: blob/main/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
39644 views
//===-- GDBRemoteCommunicationClient.h --------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_GDBREMOTECOMMUNICATIONCLIENT_H9#define LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_GDBREMOTECOMMUNICATIONCLIENT_H1011#include "GDBRemoteClientBase.h"1213#include <chrono>14#include <map>15#include <mutex>16#include <optional>17#include <string>18#include <vector>1920#include "lldb/Host/File.h"21#include "lldb/Utility/AddressableBits.h"22#include "lldb/Utility/ArchSpec.h"23#include "lldb/Utility/GDBRemote.h"24#include "lldb/Utility/ProcessInfo.h"25#include "lldb/Utility/StructuredData.h"26#include "lldb/Utility/TraceGDBRemotePackets.h"27#include "lldb/Utility/UUID.h"28#if defined(_WIN32)29#include "lldb/Host/windows/PosixApi.h"30#endif3132#include "llvm/Support/VersionTuple.h"3334namespace lldb_private {35namespace process_gdb_remote {3637/// The offsets used by the target when relocating the executable. Decoded from38/// qOffsets packet response.39struct QOffsets {40/// If true, the offsets field describes segments. Otherwise, it describes41/// sections.42bool segments;4344/// The individual offsets. Section offsets have two or three members.45/// Segment offsets have either one of two.46std::vector<uint64_t> offsets;47};48inline bool operator==(const QOffsets &a, const QOffsets &b) {49return a.segments == b.segments && a.offsets == b.offsets;50}51llvm::raw_ostream &operator<<(llvm::raw_ostream &os, const QOffsets &offsets);5253// A trivial struct used to return a pair of PID and TID.54struct PidTid {55uint64_t pid;56uint64_t tid;57};5859class GDBRemoteCommunicationClient : public GDBRemoteClientBase {60public:61GDBRemoteCommunicationClient();6263~GDBRemoteCommunicationClient() override;6465// After connecting, send the handshake to the server to make sure66// we are communicating with it.67bool HandshakeWithServer(Status *error_ptr);6869bool GetThreadSuffixSupported();7071// This packet is usually sent first and the boolean return value72// indicates if the packet was send and any response was received73// even in the response is UNIMPLEMENTED. If the packet failed to74// get a response, then false is returned. This quickly tells us75// if we were able to connect and communicate with the remote GDB76// server77bool QueryNoAckModeSupported();7879void GetListThreadsInStopReplySupported();8081lldb::pid_t GetCurrentProcessID(bool allow_lazy = true);8283bool LaunchGDBServer(const char *remote_accept_hostname, lldb::pid_t &pid,84uint16_t &port, std::string &socket_name);8586size_t QueryGDBServer(87std::vector<std::pair<uint16_t, std::string>> &connection_urls);8889bool KillSpawnedProcess(lldb::pid_t pid);9091/// Launch the process using the provided arguments.92///93/// \param[in] args94/// A list of program arguments. The first entry is the program being run.95llvm::Error LaunchProcess(const Args &args);9697/// Sends a "QEnvironment:NAME=VALUE" packet that will build up the98/// environment that will get used when launching an application99/// in conjunction with the 'A' packet. This function can be called100/// multiple times in a row in order to pass on the desired101/// environment that the inferior should be launched with.102///103/// \param[in] name_equal_value104/// A NULL terminated C string that contains a single environment105/// in the format "NAME=VALUE".106///107/// \return108/// Zero if the response was "OK", a positive value if the109/// the response was "Exx" where xx are two hex digits, or110/// -1 if the call is unsupported or any other unexpected111/// response was received.112int SendEnvironmentPacket(char const *name_equal_value);113int SendEnvironment(const Environment &env);114115int SendLaunchArchPacket(const char *arch);116117int SendLaunchEventDataPacket(const char *data,118bool *was_supported = nullptr);119120/// Sends a GDB remote protocol 'I' packet that delivers stdin121/// data to the remote process.122///123/// \param[in] data124/// A pointer to stdin data.125///126/// \param[in] data_len127/// The number of bytes available at \a data.128///129/// \return130/// Zero if the attach was successful, or an error indicating131/// an error code.132int SendStdinNotification(const char *data, size_t data_len);133134/// Sets the path to use for stdin/out/err for a process135/// that will be launched with the 'A' packet.136///137/// \param[in] file_spec138/// The path to use for stdin/out/err139///140/// \return141/// Zero if the for success, or an error code for failure.142int SetSTDIN(const FileSpec &file_spec);143int SetSTDOUT(const FileSpec &file_spec);144int SetSTDERR(const FileSpec &file_spec);145146/// Sets the disable ASLR flag to \a enable for a process that will147/// be launched with the 'A' packet.148///149/// \param[in] enable150/// A boolean value indicating whether to disable ASLR or not.151///152/// \return153/// Zero if the for success, or an error code for failure.154int SetDisableASLR(bool enable);155156/// Sets the DetachOnError flag to \a enable for the process controlled by the157/// stub.158///159/// \param[in] enable160/// A boolean value indicating whether to detach on error or not.161///162/// \return163/// Zero if the for success, or an error code for failure.164int SetDetachOnError(bool enable);165166/// Sets the working directory to \a path for a process that will167/// be launched with the 'A' packet for non platform based168/// connections. If this packet is sent to a GDB server that169/// implements the platform, it will change the current working170/// directory for the platform process.171///172/// \param[in] working_dir173/// The path to a directory to use when launching our process174///175/// \return176/// Zero if the for success, or an error code for failure.177int SetWorkingDir(const FileSpec &working_dir);178179/// Gets the current working directory of a remote platform GDB180/// server.181///182/// \param[out] working_dir183/// The current working directory on the remote platform.184///185/// \return186/// Boolean for success187bool GetWorkingDir(FileSpec &working_dir);188189lldb::addr_t AllocateMemory(size_t size, uint32_t permissions);190191bool DeallocateMemory(lldb::addr_t addr);192193Status Detach(bool keep_stopped, lldb::pid_t pid = LLDB_INVALID_PROCESS_ID);194195Status GetMemoryRegionInfo(lldb::addr_t addr, MemoryRegionInfo &range_info);196197std::optional<uint32_t> GetWatchpointSlotCount();198199std::optional<bool> GetWatchpointReportedAfter();200201WatchpointHardwareFeature GetSupportedWatchpointTypes();202203const ArchSpec &GetHostArchitecture();204205std::chrono::seconds GetHostDefaultPacketTimeout();206207const ArchSpec &GetProcessArchitecture();208209bool GetProcessStandaloneBinary(UUID &uuid, lldb::addr_t &value,210bool &value_is_offset);211212std::vector<lldb::addr_t> GetProcessStandaloneBinaries();213214void GetRemoteQSupported();215216bool GetVContSupported(char flavor);217218bool GetpPacketSupported(lldb::tid_t tid);219220bool GetxPacketSupported();221222bool GetVAttachOrWaitSupported();223224bool GetSyncThreadStateSupported();225226void ResetDiscoverableSettings(bool did_exec);227228bool GetHostInfo(bool force = false);229230bool GetDefaultThreadId(lldb::tid_t &tid);231232llvm::VersionTuple GetOSVersion();233234llvm::VersionTuple GetMacCatalystVersion();235236std::optional<std::string> GetOSBuildString();237238std::optional<std::string> GetOSKernelDescription();239240ArchSpec GetSystemArchitecture();241242lldb_private::AddressableBits GetAddressableBits();243244bool GetHostname(std::string &s);245246lldb::addr_t GetShlibInfoAddr();247248bool GetProcessInfo(lldb::pid_t pid, ProcessInstanceInfo &process_info);249250uint32_t FindProcesses(const ProcessInstanceInfoMatch &process_match_info,251ProcessInstanceInfoList &process_infos);252253bool GetUserName(uint32_t uid, std::string &name);254255bool GetGroupName(uint32_t gid, std::string &name);256257bool HasFullVContSupport() { return GetVContSupported('A'); }258259bool HasAnyVContSupport() { return GetVContSupported('a'); }260261bool GetStopReply(StringExtractorGDBRemote &response);262263bool GetThreadStopInfo(lldb::tid_t tid, StringExtractorGDBRemote &response);264265bool SupportsGDBStoppointPacket(GDBStoppointType type) {266switch (type) {267case eBreakpointSoftware:268return m_supports_z0;269case eBreakpointHardware:270return m_supports_z1;271case eWatchpointWrite:272return m_supports_z2;273case eWatchpointRead:274return m_supports_z3;275case eWatchpointReadWrite:276return m_supports_z4;277default:278return false;279}280}281282uint8_t SendGDBStoppointTypePacket(283GDBStoppointType type, // Type of breakpoint or watchpoint284bool insert, // Insert or remove?285lldb::addr_t addr, // Address of breakpoint or watchpoint286uint32_t length, // Byte Size of breakpoint or watchpoint287std::chrono::seconds interrupt_timeout); // Time to wait for an interrupt288289void TestPacketSpeed(const uint32_t num_packets, uint32_t max_send,290uint32_t max_recv, uint64_t recv_amount, bool json,291Stream &strm);292293// This packet is for testing the speed of the interface only. Both294// the client and server need to support it, but this allows us to295// measure the packet speed without any other work being done on the296// other end and avoids any of that work affecting the packet send297// and response times.298bool SendSpeedTestPacket(uint32_t send_size, uint32_t recv_size);299300std::optional<PidTid> SendSetCurrentThreadPacket(uint64_t tid, uint64_t pid,301char op);302303bool SetCurrentThread(uint64_t tid,304lldb::pid_t pid = LLDB_INVALID_PROCESS_ID);305306bool SetCurrentThreadForRun(uint64_t tid,307lldb::pid_t pid = LLDB_INVALID_PROCESS_ID);308309bool GetQXferAuxvReadSupported();310311void EnableErrorStringInPacket();312313bool GetQXferLibrariesReadSupported();314315bool GetQXferLibrariesSVR4ReadSupported();316317uint64_t GetRemoteMaxPacketSize();318319bool GetEchoSupported();320321bool GetQPassSignalsSupported();322323bool GetAugmentedLibrariesSVR4ReadSupported();324325bool GetQXferFeaturesReadSupported();326327bool GetQXferMemoryMapReadSupported();328329bool GetQXferSigInfoReadSupported();330331bool GetMultiprocessSupported();332333LazyBool SupportsAllocDeallocMemory() // const334{335// Uncomment this to have lldb pretend the debug server doesn't respond to336// alloc/dealloc memory packets.337// m_supports_alloc_dealloc_memory = lldb_private::eLazyBoolNo;338return m_supports_alloc_dealloc_memory;339}340341std::vector<std::pair<lldb::pid_t, lldb::tid_t>>342GetCurrentProcessAndThreadIDs(bool &sequence_mutex_unavailable);343344size_t GetCurrentThreadIDs(std::vector<lldb::tid_t> &thread_ids,345bool &sequence_mutex_unavailable);346347lldb::user_id_t OpenFile(const FileSpec &file_spec, File::OpenOptions flags,348mode_t mode, Status &error);349350bool CloseFile(lldb::user_id_t fd, Status &error);351352std::optional<GDBRemoteFStatData> FStat(lldb::user_id_t fd);353354// NB: this is just a convenience wrapper over open() + fstat(). It does not355// work if the file cannot be opened.356std::optional<GDBRemoteFStatData> Stat(const FileSpec &file_spec);357358lldb::user_id_t GetFileSize(const FileSpec &file_spec);359360void AutoCompleteDiskFileOrDirectory(CompletionRequest &request,361bool only_dir);362363Status GetFilePermissions(const FileSpec &file_spec,364uint32_t &file_permissions);365366Status SetFilePermissions(const FileSpec &file_spec,367uint32_t file_permissions);368369uint64_t ReadFile(lldb::user_id_t fd, uint64_t offset, void *dst,370uint64_t dst_len, Status &error);371372uint64_t WriteFile(lldb::user_id_t fd, uint64_t offset, const void *src,373uint64_t src_len, Status &error);374375Status CreateSymlink(const FileSpec &src, const FileSpec &dst);376377Status Unlink(const FileSpec &file_spec);378379Status MakeDirectory(const FileSpec &file_spec, uint32_t mode);380381bool GetFileExists(const FileSpec &file_spec);382383Status RunShellCommand(384llvm::StringRef command,385const FileSpec &working_dir, // Pass empty FileSpec to use the current386// working directory387int *status_ptr, // Pass nullptr if you don't want the process exit status388int *signo_ptr, // Pass nullptr if you don't want the signal that caused389// the process to exit390std::string391*command_output, // Pass nullptr if you don't want the command output392const Timeout<std::micro> &timeout);393394llvm::ErrorOr<llvm::MD5::MD5Result> CalculateMD5(const FileSpec &file_spec);395396lldb::DataBufferSP ReadRegister(397lldb::tid_t tid,398uint32_t399reg_num); // Must be the eRegisterKindProcessPlugin register number400401lldb::DataBufferSP ReadAllRegisters(lldb::tid_t tid);402403bool404WriteRegister(lldb::tid_t tid,405uint32_t reg_num, // eRegisterKindProcessPlugin register number406llvm::ArrayRef<uint8_t> data);407408bool WriteAllRegisters(lldb::tid_t tid, llvm::ArrayRef<uint8_t> data);409410bool SaveRegisterState(lldb::tid_t tid, uint32_t &save_id);411412bool RestoreRegisterState(lldb::tid_t tid, uint32_t save_id);413414bool SyncThreadState(lldb::tid_t tid);415416const char *GetGDBServerProgramName();417418uint32_t GetGDBServerProgramVersion();419420bool AvoidGPackets(ProcessGDBRemote *process);421422StructuredData::ObjectSP GetThreadsInfo();423424bool GetThreadExtendedInfoSupported();425426bool GetLoadedDynamicLibrariesInfosSupported();427428bool GetSharedCacheInfoSupported();429430bool GetDynamicLoaderProcessStateSupported();431432bool GetMemoryTaggingSupported();433434bool UsesNativeSignals();435436lldb::DataBufferSP ReadMemoryTags(lldb::addr_t addr, size_t len,437int32_t type);438439Status WriteMemoryTags(lldb::addr_t addr, size_t len, int32_t type,440const std::vector<uint8_t> &tags);441442/// Use qOffsets to query the offset used when relocating the target443/// executable. If successful, the returned structure will contain at least444/// one value in the offsets field.445std::optional<QOffsets> GetQOffsets();446447bool GetModuleInfo(const FileSpec &module_file_spec,448const ArchSpec &arch_spec, ModuleSpec &module_spec);449450std::optional<std::vector<ModuleSpec>>451GetModulesInfo(llvm::ArrayRef<FileSpec> module_file_specs,452const llvm::Triple &triple);453454llvm::Expected<std::string> ReadExtFeature(llvm::StringRef object,455llvm::StringRef annex);456457void ServeSymbolLookups(lldb_private::Process *process);458459// Sends QPassSignals packet to the server with given signals to ignore.460Status SendSignalsToIgnore(llvm::ArrayRef<int32_t> signals);461462/// Return the feature set supported by the gdb-remote server.463///464/// This method returns the remote side's response to the qSupported465/// packet. The response is the complete string payload returned466/// to the client.467///468/// \return469/// The string returned by the server to the qSupported query.470const std::string &GetServerSupportedFeatures() const {471return m_qSupported_response;472}473474/// Return the array of async JSON packet types supported by the remote.475///476/// This method returns the remote side's array of supported JSON477/// packet types as a list of type names. Each of the results are478/// expected to have an Enable{type_name} command to enable and configure479/// the related feature. Each type_name for an enabled feature will480/// possibly send async-style packets that contain a payload of a481/// binhex-encoded JSON dictionary. The dictionary will have a482/// string field named 'type', that contains the type_name of the483/// supported packet type.484///485/// There is a Plugin category called structured-data plugins.486/// A plugin indicates whether it knows how to handle a type_name.487/// If so, it can be used to process the async JSON packet.488///489/// \return490/// The string returned by the server to the qSupported query.491lldb_private::StructuredData::Array *GetSupportedStructuredDataPlugins();492493/// Configure a StructuredData feature on the remote end.494///495/// \see \b Process::ConfigureStructuredData(...) for details.496Status497ConfigureRemoteStructuredData(llvm::StringRef type_name,498const StructuredData::ObjectSP &config_sp);499500llvm::Expected<TraceSupportedResponse>501SendTraceSupported(std::chrono::seconds interrupt_timeout);502503llvm::Error SendTraceStart(const llvm::json::Value &request,504std::chrono::seconds interrupt_timeout);505506llvm::Error SendTraceStop(const TraceStopRequest &request,507std::chrono::seconds interrupt_timeout);508509llvm::Expected<std::string>510SendTraceGetState(llvm::StringRef type,511std::chrono::seconds interrupt_timeout);512513llvm::Expected<std::vector<uint8_t>>514SendTraceGetBinaryData(const TraceGetBinaryDataRequest &request,515std::chrono::seconds interrupt_timeout);516517bool GetSaveCoreSupported() const;518519llvm::Expected<int> KillProcess(lldb::pid_t pid);520521protected:522LazyBool m_supports_not_sending_acks = eLazyBoolCalculate;523LazyBool m_supports_thread_suffix = eLazyBoolCalculate;524LazyBool m_supports_threads_in_stop_reply = eLazyBoolCalculate;525LazyBool m_supports_vCont_all = eLazyBoolCalculate;526LazyBool m_supports_vCont_any = eLazyBoolCalculate;527LazyBool m_supports_vCont_c = eLazyBoolCalculate;528LazyBool m_supports_vCont_C = eLazyBoolCalculate;529LazyBool m_supports_vCont_s = eLazyBoolCalculate;530LazyBool m_supports_vCont_S = eLazyBoolCalculate;531LazyBool m_qHostInfo_is_valid = eLazyBoolCalculate;532LazyBool m_curr_pid_is_valid = eLazyBoolCalculate;533LazyBool m_qProcessInfo_is_valid = eLazyBoolCalculate;534LazyBool m_qGDBServerVersion_is_valid = eLazyBoolCalculate;535LazyBool m_supports_alloc_dealloc_memory = eLazyBoolCalculate;536LazyBool m_supports_memory_region_info = eLazyBoolCalculate;537LazyBool m_supports_watchpoint_support_info = eLazyBoolCalculate;538LazyBool m_supports_detach_stay_stopped = eLazyBoolCalculate;539LazyBool m_watchpoints_trigger_after_instruction = eLazyBoolCalculate;540LazyBool m_attach_or_wait_reply = eLazyBoolCalculate;541LazyBool m_prepare_for_reg_writing_reply = eLazyBoolCalculate;542LazyBool m_supports_p = eLazyBoolCalculate;543LazyBool m_supports_x = eLazyBoolCalculate;544LazyBool m_avoid_g_packets = eLazyBoolCalculate;545LazyBool m_supports_QSaveRegisterState = eLazyBoolCalculate;546LazyBool m_supports_qXfer_auxv_read = eLazyBoolCalculate;547LazyBool m_supports_qXfer_libraries_read = eLazyBoolCalculate;548LazyBool m_supports_qXfer_libraries_svr4_read = eLazyBoolCalculate;549LazyBool m_supports_qXfer_features_read = eLazyBoolCalculate;550LazyBool m_supports_qXfer_memory_map_read = eLazyBoolCalculate;551LazyBool m_supports_qXfer_siginfo_read = eLazyBoolCalculate;552LazyBool m_supports_augmented_libraries_svr4_read = eLazyBoolCalculate;553LazyBool m_supports_jThreadExtendedInfo = eLazyBoolCalculate;554LazyBool m_supports_jLoadedDynamicLibrariesInfos = eLazyBoolCalculate;555LazyBool m_supports_jGetSharedCacheInfo = eLazyBoolCalculate;556LazyBool m_supports_jGetDyldProcessState = eLazyBoolCalculate;557LazyBool m_supports_QPassSignals = eLazyBoolCalculate;558LazyBool m_supports_error_string_reply = eLazyBoolCalculate;559LazyBool m_supports_multiprocess = eLazyBoolCalculate;560LazyBool m_supports_memory_tagging = eLazyBoolCalculate;561LazyBool m_supports_qSaveCore = eLazyBoolCalculate;562LazyBool m_uses_native_signals = eLazyBoolCalculate;563564bool m_supports_qProcessInfoPID : 1, m_supports_qfProcessInfo : 1,565m_supports_qUserName : 1, m_supports_qGroupName : 1,566m_supports_qThreadStopInfo : 1, m_supports_z0 : 1, m_supports_z1 : 1,567m_supports_z2 : 1, m_supports_z3 : 1, m_supports_z4 : 1,568m_supports_QEnvironment : 1, m_supports_QEnvironmentHexEncoded : 1,569m_supports_qSymbol : 1, m_qSymbol_requests_done : 1,570m_supports_qModuleInfo : 1, m_supports_jThreadsInfo : 1,571m_supports_jModulesInfo : 1, m_supports_vFileSize : 1,572m_supports_vFileMode : 1, m_supports_vFileExists : 1,573m_supports_vRun : 1;574575/// Current gdb remote protocol process identifier for all other operations576lldb::pid_t m_curr_pid = LLDB_INVALID_PROCESS_ID;577/// Current gdb remote protocol process identifier for continue, step, etc578lldb::pid_t m_curr_pid_run = LLDB_INVALID_PROCESS_ID;579/// Current gdb remote protocol thread identifier for all other operations580lldb::tid_t m_curr_tid = LLDB_INVALID_THREAD_ID;581/// Current gdb remote protocol thread identifier for continue, step, etc582lldb::tid_t m_curr_tid_run = LLDB_INVALID_THREAD_ID;583584uint32_t m_num_supported_hardware_watchpoints = 0;585WatchpointHardwareFeature m_watchpoint_types =586eWatchpointHardwareFeatureUnknown;587uint32_t m_low_mem_addressing_bits = 0;588uint32_t m_high_mem_addressing_bits = 0;589590ArchSpec m_host_arch;591std::string m_host_distribution_id;592ArchSpec m_process_arch;593UUID m_process_standalone_uuid;594lldb::addr_t m_process_standalone_value = LLDB_INVALID_ADDRESS;595bool m_process_standalone_value_is_offset = false;596std::vector<lldb::addr_t> m_binary_addresses;597llvm::VersionTuple m_os_version;598llvm::VersionTuple m_maccatalyst_version;599std::string m_os_build;600std::string m_os_kernel;601std::string m_hostname;602std::string m_gdb_server_name; // from reply to qGDBServerVersion, empty if603// qGDBServerVersion is not supported604uint32_t m_gdb_server_version =605UINT32_MAX; // from reply to qGDBServerVersion, zero if606// qGDBServerVersion is not supported607std::chrono::seconds m_default_packet_timeout;608int m_target_vm_page_size = 0; // target system VM page size; 0 unspecified609uint64_t m_max_packet_size = 0; // as returned by qSupported610std::string m_qSupported_response; // the complete response to qSupported611612bool m_supported_async_json_packets_is_valid = false;613lldb_private::StructuredData::ObjectSP m_supported_async_json_packets_sp;614615std::vector<MemoryRegionInfo> m_qXfer_memory_map;616bool m_qXfer_memory_map_loaded = false;617618bool GetCurrentProcessInfo(bool allow_lazy_pid = true);619620bool GetGDBServerVersion();621622// Given the list of compression types that the remote debug stub can support,623// possibly enable compression if we find an encoding we can handle.624void MaybeEnableCompression(625llvm::ArrayRef<llvm::StringRef> supported_compressions);626627bool DecodeProcessInfoResponse(StringExtractorGDBRemote &response,628ProcessInstanceInfo &process_info);629630void OnRunPacketSent(bool first) override;631632PacketResult SendThreadSpecificPacketAndWaitForResponse(633lldb::tid_t tid, StreamString &&payload,634StringExtractorGDBRemote &response);635636Status SendGetTraceDataPacket(StreamGDBRemote &packet, lldb::user_id_t uid,637lldb::tid_t thread_id,638llvm::MutableArrayRef<uint8_t> &buffer,639size_t offset);640641Status LoadQXferMemoryMap();642643Status GetQXferMemoryMapRegionInfo(lldb::addr_t addr,644MemoryRegionInfo ®ion);645646LazyBool GetThreadPacketSupported(lldb::tid_t tid, llvm::StringRef packetStr);647648private:649GDBRemoteCommunicationClient(const GDBRemoteCommunicationClient &) = delete;650const GDBRemoteCommunicationClient &651operator=(const GDBRemoteCommunicationClient &) = delete;652};653654} // namespace process_gdb_remote655} // namespace lldb_private656657#endif // LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_GDBREMOTECOMMUNICATIONCLIENT_H658659660