Go to the documentation of this file.
9 #ifndef LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_GDBREMOTECOMMUNICATIONSERVER_H
10 #define LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_GDBREMOTECOMMUNICATIONSERVER_H
18 #include "llvm/Support/Errc.h"
19 #include "llvm/Support/Error.h"
24 namespace process_gdb_remote {
26 class ProcessGDBRemote;
35 const char *listener_name);
48 std::map<StringExtractorGDBRemote::ServerPacketType, PacketHandler>
67 const char *error_message);
87 #endif // LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_GDBREMOTECOMMUNICATIONSERVER_H
PacketResult SendErrorResponse(const Status &error)
void RegisterPacketHandler(StringExtractorGDBRemote::ServerPacketType packet_type, PacketHandler handler)
PacketResult GetPacketAndSendResponse(Timeout< std::micro > timeout, Status &error, bool &interrupt, bool &quit)
std::function< PacketResult(StringExtractorGDBRemote &packet, Status &error, bool &interrupt, bool &quit)> PacketHandler
~GDBRemoteCommunicationServer() override
static llvm::raw_ostream & error(Stream &strm)
const GDBRemoteCommunicationServer & operator=(const GDBRemoteCommunicationServer &)=delete
PacketResult SendJSONResponse(const llvm::json::Value &value)
Serialize and send a JSON object response.
PacketResult Handle_QErrorStringEnable(StringExtractorGDBRemote &packet)
PacketResult SendUnimplementedResponse(const char *packet)
std::map< StringExtractorGDBRemote::ServerPacketType, PacketHandler > m_packet_handlers
PacketResult SendOKResponse()
A class that represents a running process on the host machine.
bool m_send_error_strings
GDBRemoteCommunicationServer(const char *comm_name, const char *listener_name)
PacketResult SendIllFormedResponse(const StringExtractorGDBRemote &packet, const char *error_message)