From 576d8834fe41bf73802832e7ac204b98455bfe25 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Tue, 22 Mar 2011 04:00:09 +0000 Subject: Split the GDBRemoteCommunication class into three classes: GDBRemoteCommunication - The base GDB remote communication class GDBRemoteCommunicationClient - designed to be used for clients the connect to a remote GDB server GDBRemoteCommunicationServer - designed to be used on the server side of a GDB server implementation. llvm-svn: 128070 --- lldb/source/Utility/StringExtractorGDBRemote.h | 28 ++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) (limited to 'lldb/source/Utility/StringExtractorGDBRemote.h') diff --git a/lldb/source/Utility/StringExtractorGDBRemote.h b/lldb/source/Utility/StringExtractorGDBRemote.h index 6002b8bddce..e8c41778ec0 100644 --- a/lldb/source/Utility/StringExtractorGDBRemote.h +++ b/lldb/source/Utility/StringExtractorGDBRemote.h @@ -39,30 +39,42 @@ public: { } - enum Type + enum ServerPacketType + { + eServerPacketType_nack = 0, + eServerPacketType_ack, + eServerPacketType_invalid, + eServerPacketType_unimplemented, + eServerPacketType_qHostInfo + }; + + ServerPacketType + GetServerPacketType () const; + + enum ResponseType { eUnsupported = 0, eAck, eNack, eError, eOK, - eResponse + eResponse, }; - StringExtractorGDBRemote::Type - GetType () const; + ResponseType + GetResponseType () const; bool - IsOKPacket() const; + IsOKResponse() const; bool - IsUnsupportedPacket() const; + IsUnsupportedResponse() const; bool - IsNormalPacket () const; + IsNormalResponse () const; bool - IsErrorPacket() const; + IsErrorResponse() const; // Returns zero if the packet isn't a EXX packet where XX are two hex // digits. Otherwise the error encoded in XX is returned. -- cgit v1.2.3