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
This commit is contained in:
Greg Clayton
2011-03-23 00:09:55 +00:00
parent 7ca3ddc233
commit d314e810a7
19 changed files with 847 additions and 134 deletions

View File

@@ -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;