Added a speed test to the GDBRemoteCommunicationClient and
GDBRemoteCommunicationServer classes. This involved adding a new packet named "qSpeedTest" which can test the speed of a packet send/response pairs using a wide variety of send/recv packet sizes. Added a few new connection classes: one for shared memory, and one for using mach messages (Apple only). The mach message stuff is experimental and not working yet, but added so I don't lose the code. The shared memory stuff uses pretty standard calls to setup shared memory. llvm-svn: 128837
This commit is contained in:
@@ -81,7 +81,9 @@ StringExtractorGDBRemote::GetServerPacketType () const
|
||||
break;
|
||||
|
||||
case 'q':
|
||||
if (packet_cstr[1] == 'H' && 0 == ::strcmp (packet_cstr, "qHostInfo"))
|
||||
if (packet_cstr[1] == 'S' && 0 == ::strncmp(packet_cstr, "qSpeedTest:", strlen("qSpeedTest:")))
|
||||
return eServerPacketType_qSpeedTest;
|
||||
else if (packet_cstr[1] == 'H' && 0 == ::strcmp (packet_cstr, "qHostInfo"))
|
||||
return eServerPacketType_qHostInfo;
|
||||
else if (packet_cstr[1] == 'P' && 0 == ::strncmp(packet_cstr, "qProcessInfoPID:", strlen("qProcessInfoPID:")))
|
||||
return eServerPacketType_qProcessInfoPID;
|
||||
|
||||
Reference in New Issue
Block a user