9#ifndef LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_GDBREMOTECOMMUNICATIONSERVERCOMMON_H
10#define LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_GDBREMOTECOMMUNICATIONSERVERCOMMON_H
22namespace process_gdb_remote {
24class ProcessGDBRemote;
116 template <
typename T>
124 return (
static_cast<T *
>(
this)->*handler)(packet);
144 virtual std::vector<std::string>
static llvm::raw_ostream & error(Stream &strm)
An architecture specification class.
PacketResult Handle_vFile_MD5(StringExtractorGDBRemote &packet)
PacketResult Handle_qEcho(StringExtractorGDBRemote &packet)
PacketResult Handle_qProcessInfoPID(StringExtractorGDBRemote &packet)
PacketResult Handle_qHostInfo(StringExtractorGDBRemote &packet)
virtual Status LaunchProcess()=0
Launch a process with the current launch settings.
GDBRemoteCommunicationServerCommon()
PacketResult Handle_qModuleInfo(StringExtractorGDBRemote &packet)
PacketResult Handle_QSetSTDERR(StringExtractorGDBRemote &packet)
PacketResult Handle_vFile_Close(StringExtractorGDBRemote &packet)
ModuleSpec GetModuleInfo(llvm::StringRef module_path, llvm::StringRef triple)
PacketResult Handle_QSetDetachOnError(StringExtractorGDBRemote &packet)
PacketResult Handle_vFile_pWrite(StringExtractorGDBRemote &packet)
PacketResult Handle_qUserName(StringExtractorGDBRemote &packet)
PacketResult Handle_qLaunchSuccess(StringExtractorGDBRemote &packet)
PacketResult Handle_QEnvironmentHexEncoded(StringExtractorGDBRemote &packet)
PacketResult Handle_qfProcessInfo(StringExtractorGDBRemote &packet)
virtual FileSpec FindModuleFile(const std::string &module_path, const ArchSpec &arch)
PacketResult Handle_vFile_Exists(StringExtractorGDBRemote &packet)
uint32_t m_proc_infos_index
PacketResult Handle_vFile_Mode(StringExtractorGDBRemote &packet)
~GDBRemoteCommunicationServerCommon() override
void RegisterMemberFunctionHandler(StringExtractorGDBRemote::ServerPacketType packet_type, PacketResult(T::*handler)(StringExtractorGDBRemote &packet))
PacketResult Handle_QEnvironment(StringExtractorGDBRemote &packet)
PacketResult Handle_QSetSTDIN(StringExtractorGDBRemote &packet)
PacketResult Handle_qSpeedTest(StringExtractorGDBRemote &packet)
PacketResult Handle_vFile_FStat(StringExtractorGDBRemote &packet)
static void CreateProcessInfoResponse_DebugServerStyle(const ProcessInstanceInfo &proc_info, StreamString &response)
Status m_process_launch_error
PacketResult Handle_qPlatform_mkdir(StringExtractorGDBRemote &packet)
PacketResult Handle_vFile_symlink(StringExtractorGDBRemote &packet)
ProcessLaunchInfo m_process_launch_info
PacketResult Handle_qSupported(StringExtractorGDBRemote &packet)
PacketResult Handle_vFile_pRead(StringExtractorGDBRemote &packet)
virtual std::vector< std::string > HandleFeatures(llvm::ArrayRef< llvm::StringRef > client_features)
PacketResult Handle_QStartNoAckMode(StringExtractorGDBRemote &packet)
ProcessInstanceInfoList m_proc_infos
static void CreateProcessInfoResponse(const ProcessInstanceInfo &proc_info, StreamString &response)
PacketResult Handle_QLaunchArch(StringExtractorGDBRemote &packet)
PacketResult Handle_vFile_unlink(StringExtractorGDBRemote &packet)
PacketResult Handle_jModulesInfo(StringExtractorGDBRemote &packet)
PacketResult Handle_qPlatform_shell(StringExtractorGDBRemote &packet)
PacketResult Handle_qPlatform_chmod(StringExtractorGDBRemote &packet)
PacketResult Handle_vFile_Size(StringExtractorGDBRemote &packet)
PacketResult Handle_vFile_Open(StringExtractorGDBRemote &packet)
PacketResult Handle_QSetSTDOUT(StringExtractorGDBRemote &packet)
PacketResult Handle_qsProcessInfo(StringExtractorGDBRemote &packet)
PacketResult Handle_A(StringExtractorGDBRemote &packet)
PacketResult Handle_vFile_Stat(StringExtractorGDBRemote &packet)
PacketResult Handle_qGroupName(StringExtractorGDBRemote &packet)
void RegisterPacketHandler(StringExtractorGDBRemote::ServerPacketType packet_type, PacketHandler handler)
A class that represents a running process on the host machine.
std::vector< ProcessInstanceInfo > ProcessInstanceInfoList