summaryrefslogtreecommitdiffstats
path: root/lldb/source/Utility/StringExtractorGDBRemote.h
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-03-22 04:00:09 +0000
committerGreg Clayton <gclayton@apple.com>2011-03-22 04:00:09 +0000
commit576d8834fe41bf73802832e7ac204b98455bfe25 (patch)
tree1dca2525b98563838acf8ea1445b9c316f2b162d /lldb/source/Utility/StringExtractorGDBRemote.h
parent27cfcbac82cc1c840571f0edf1c8675787f5db64 (diff)
downloadbcm5719-llvm-576d8834fe41bf73802832e7ac204b98455bfe25.tar.gz
bcm5719-llvm-576d8834fe41bf73802832e7ac204b98455bfe25.zip
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
Diffstat (limited to 'lldb/source/Utility/StringExtractorGDBRemote.h')
-rw-r--r--lldb/source/Utility/StringExtractorGDBRemote.h28
1 files changed, 20 insertions, 8 deletions
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.
OpenPOWER on IntegriCloud