summaryrefslogtreecommitdiffstats
path: root/lldb/source/Utility/StringExtractorGDBRemote.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-03-23 00:09:55 +0000
committerGreg Clayton <gclayton@apple.com>2011-03-23 00:09:55 +0000
commitd314e810a70e9104c8d30d9b0719bc5a3dc0acab (patch)
tree0d881e5b16df61aa732dea1555adecf675db83e8 /lldb/source/Utility/StringExtractorGDBRemote.cpp
parent7ca3ddc2333a05f60be578cffc93610a34638602 (diff)
downloadbcm5719-llvm-d314e810a70e9104c8d30d9b0719bc5a3dc0acab.tar.gz
bcm5719-llvm-d314e810a70e9104c8d30d9b0719bc5a3dc0acab.zip
Added new platform commands:
platform connect <args> platform disconnect Each platform can decide the args they want to use for "platform connect". I will need to add a function that gets the connect options for the current platform as each one can have different options and argument counts. Hooked up more functionality in the PlatformMacOSX and PlatformRemoteiOS. Also started an platform agnostic PlatformRemoteGDBServer.cpp which can end up being used by one or more actual platforms. It can also be specialized and allow for platform specific commands. llvm-svn: 128123
Diffstat (limited to 'lldb/source/Utility/StringExtractorGDBRemote.cpp')
-rw-r--r--lldb/source/Utility/StringExtractorGDBRemote.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Utility/StringExtractorGDBRemote.cpp b/lldb/source/Utility/StringExtractorGDBRemote.cpp
index fc64b275e55..372eaee501c 100644
--- a/lldb/source/Utility/StringExtractorGDBRemote.cpp
+++ b/lldb/source/Utility/StringExtractorGDBRemote.cpp
@@ -59,6 +59,11 @@ StringExtractorGDBRemote::GetServerPacketType () const
const char *packet_cstr = m_packet.c_str();
switch (m_packet[0])
{
+ case '\x03':
+ if (m_packet.size() == 1)
+ return eServerPacketType_interrupt;
+ break;
+
case '-':
if (m_packet.size() == 1)
return eServerPacketType_nack;
OpenPOWER on IntegriCloud