Lines Matching refs:packet
349 StreamString packet; in GetRemoteQSupported() local
350 packet.PutCString("qSupported"); in GetRemoteQSupported()
352 packet.PutCString(i == 0 ? ":" : ";"); in GetRemoteQSupported()
353 packet.PutCString(features[i]); in GetRemoteQSupported()
357 if (SendPacketAndWaitForResponse(packet.GetString(), response, in GetRemoteQSupported()
648 char packet[256]; in GetxPacketSupported() local
649 snprintf(packet, sizeof(packet), "x0,0"); in GetxPacketSupported()
650 if (SendPacketAndWaitForResponse(packet, response, false) == in GetxPacketSupported()
799 StreamString packet; in SendArgumentsPacket() local
800 packet.PutChar('A'); in SendArgumentsPacket()
805 packet.PutChar(','); in SendArgumentsPacket()
806 packet.Printf("%i,%i,", arg_len * 2, (int)i); in SendArgumentsPacket()
807 packet.PutBytesAsRawHex8(arg, arg_len); in SendArgumentsPacket()
811 if (SendPacketAndWaitForResponse(packet.GetString(), response, false) == in SendArgumentsPacket()
835 StreamString packet; in SendEnvironmentPacket() local
859 packet.PutCString("QEnvironmentHexEncoded:"); in SendEnvironmentPacket()
860 packet.PutBytesAsRawHex8(name_equal_value, strlen(name_equal_value)); in SendEnvironmentPacket()
861 if (SendPacketAndWaitForResponse(packet.GetString(), response, false) == in SendEnvironmentPacket()
874 packet.Printf("QEnvironment:%s", name_equal_value); in SendEnvironmentPacket()
875 if (SendPacketAndWaitForResponse(packet.GetString(), response, false) == in SendEnvironmentPacket()
892 StreamString packet; in SendLaunchArchPacket() local
893 packet.Printf("QLaunchArch:%s", arch); in SendLaunchArchPacket()
895 if (SendPacketAndWaitForResponse(packet.GetString(), response, false) == in SendLaunchArchPacket()
910 StreamString packet; in SendLaunchEventDataPacket() local
911 packet.Printf("QSetProcessEvent:%s", data); in SendLaunchEventDataPacket()
913 if (SendPacketAndWaitForResponse(packet.GetString(), response, false) == in SendLaunchEventDataPacket()
1084 std::string packet = "QEnableCompression:type:" + avail_name + ";"; in MaybeEnableCompression() local
1085 if (SendPacketAndWaitForResponse(packet, response, false) != in MaybeEnableCompression()
1310 char packet[64]; in SendAttach() local
1312 ::snprintf(packet, sizeof(packet), "vAttach;%" PRIx64, pid); in SendAttach()
1314 assert(packet_len < (int)sizeof(packet)); in SendAttach()
1315 if (SendPacketAndWaitForResponse(packet, response, false) == in SendAttach()
1327 StreamString packet; in SendStdinNotification() local
1328 packet.PutCString("I"); in SendStdinNotification()
1329 packet.PutBytesAsRawHex8(data, data_len); in SendStdinNotification()
1331 if (SendPacketAndWaitForResponse(packet.GetString(), response, false) == in SendStdinNotification()
1355 char packet[64]; in AllocateMemory() local
1357 packet, sizeof(packet), "_M%" PRIx64 ",%s%s%s", (uint64_t)size, in AllocateMemory()
1361 assert(packet_len < (int)sizeof(packet)); in AllocateMemory()
1364 if (SendPacketAndWaitForResponse(packet, response, false) == in AllocateMemory()
1380 char packet[64]; in DeallocateMemory() local
1382 ::snprintf(packet, sizeof(packet), "_m%" PRIx64, (uint64_t)addr); in DeallocateMemory()
1383 assert(packet_len < (int)sizeof(packet)); in DeallocateMemory()
1386 if (SendPacketAndWaitForResponse(packet, response, false) == in DeallocateMemory()
1404 char packet[64]; in Detach() local
1406 ::snprintf(packet, sizeof(packet), "qSupportsDetachAndStayStopped:"); in Detach()
1407 assert(packet_len < (int)sizeof(packet)); in Detach()
1410 if (SendPacketAndWaitForResponse(packet, response, false) == in Detach()
1446 char packet[64]; in GetMemoryRegionInfo() local
1448 packet, sizeof(packet), "qMemoryRegionInfo:%" PRIx64, (uint64_t)addr); in GetMemoryRegionInfo()
1449 assert(packet_len < (int)sizeof(packet)); in GetMemoryRegionInfo()
1452 if (SendPacketAndWaitForResponse(packet, response, false) == in GetMemoryRegionInfo()
1672 char packet[64]; in GetWatchpointSupportInfo() local
1674 ::snprintf(packet, sizeof(packet), "qWatchpointSupportInfo:"); in GetWatchpointSupportInfo()
1675 assert(packet_len < (int)sizeof(packet)); in GetWatchpointSupportInfo()
1678 if (SendPacketAndWaitForResponse(packet, response, false) == in GetWatchpointSupportInfo()
1748 StreamString packet; in SetSTDIN() local
1749 packet.PutCString("QSetSTDIN:"); in SetSTDIN()
1750 packet.PutCStringAsRawHex8(path.c_str()); in SetSTDIN()
1753 if (SendPacketAndWaitForResponse(packet.GetString(), response, false) == in SetSTDIN()
1768 StreamString packet; in SetSTDOUT() local
1769 packet.PutCString("QSetSTDOUT:"); in SetSTDOUT()
1770 packet.PutCStringAsRawHex8(path.c_str()); in SetSTDOUT()
1773 if (SendPacketAndWaitForResponse(packet.GetString(), response, false) == in SetSTDOUT()
1788 StreamString packet; in SetSTDERR() local
1789 packet.PutCString("QSetSTDERR:"); in SetSTDERR()
1790 packet.PutCStringAsRawHex8(path.c_str()); in SetSTDERR()
1793 if (SendPacketAndWaitForResponse(packet.GetString(), response, false) == in SetSTDERR()
1824 StreamString packet; in SetWorkingDir() local
1825 packet.PutCString("QSetWorkingDir:"); in SetWorkingDir()
1826 packet.PutCStringAsRawHex8(path.c_str()); in SetWorkingDir()
1829 if (SendPacketAndWaitForResponse(packet.GetString(), response, false) == in SetWorkingDir()
1842 char packet[32]; in SetDisableASLR() local
1844 ::snprintf(packet, sizeof(packet), "QSetDisableASLR:%i", enable ? 1 : 0); in SetDisableASLR()
1845 assert(packet_len < (int)sizeof(packet)); in SetDisableASLR()
1848 if (SendPacketAndWaitForResponse(packet, response, false) == in SetDisableASLR()
1860 char packet[32]; in SetDetachOnError() local
1861 const int packet_len = ::snprintf(packet, sizeof(packet), in SetDetachOnError()
1863 assert(packet_len < (int)sizeof(packet)); in SetDetachOnError()
1866 if (SendPacketAndWaitForResponse(packet, response, false) == in SetDetachOnError()
1959 char packet[32]; in GetProcessInfo() local
1961 ::snprintf(packet, sizeof(packet), "qProcessInfoPID:%" PRIu64, pid); in GetProcessInfo()
1962 assert(packet_len < (int)sizeof(packet)); in GetProcessInfo()
1965 if (SendPacketAndWaitForResponse(packet, response, false) == in GetProcessInfo()
2109 StreamString packet; in FindProcesses() local
2110 packet.PutCString("qfProcessInfo"); in FindProcesses()
2112 packet.PutChar(':'); in FindProcesses()
2124 packet.PutCString("name_match:equals;"); in FindProcesses()
2128 packet.PutCString("name_match:contains;"); in FindProcesses()
2132 packet.PutCString("name_match:starts_with;"); in FindProcesses()
2136 packet.PutCString("name_match:ends_with;"); in FindProcesses()
2140 packet.PutCString("name_match:regex;"); in FindProcesses()
2144 packet.PutCString("name:"); in FindProcesses()
2145 packet.PutBytesAsRawHex8(name, ::strlen(name)); in FindProcesses()
2146 packet.PutChar(';'); in FindProcesses()
2151 packet.Printf("pid:%" PRIu64 ";", in FindProcesses()
2154 packet.Printf("parent_pid:%" PRIu64 ";", in FindProcesses()
2157 packet.Printf("uid:%u;", match_info.GetProcessInfo().GetUserID()); in FindProcesses()
2159 packet.Printf("gid:%u;", match_info.GetProcessInfo().GetGroupID()); in FindProcesses()
2161 packet.Printf("euid:%u;", in FindProcesses()
2164 packet.Printf("egid:%u;", in FindProcesses()
2167 packet.Printf("all_users:%u;", match_info.GetMatchAllUsers() ? 1 : 0); in FindProcesses()
2172 packet.PutCString("triple:"); in FindProcesses()
2173 packet.PutCString(triple.getTriple()); in FindProcesses()
2174 packet.PutChar(';'); in FindProcesses()
2181 if (SendPacketAndWaitForResponse(packet.GetString(), response, false) == in FindProcesses()
2203 char packet[32]; in GetUserName() local
2205 ::snprintf(packet, sizeof(packet), "qUserName:%i", uid); in GetUserName()
2206 assert(packet_len < (int)sizeof(packet)); in GetUserName()
2209 if (SendPacketAndWaitForResponse(packet, response, false) == in GetUserName()
2230 char packet[32]; in GetGroupName() local
2232 ::snprintf(packet, sizeof(packet), "qGroupName:%i", gid); in GetGroupName()
2233 assert(packet_len < (int)sizeof(packet)); in GetGroupName()
2236 if (SendPacketAndWaitForResponse(packet, response, false) == in GetGroupName()
2256 char packet[32]; in SetNonStopMode() local
2258 ::snprintf(packet, sizeof(packet), "QNonStop:%1d", (int)enable); in SetNonStopMode()
2259 assert(packet_len < (int)sizeof(packet)); in SetNonStopMode()
2264 if (SendPacketAndWaitForResponse(packet, response, false) == in SetNonStopMode()
2273 static void MakeSpeedTestPacket(StreamString &packet, uint32_t send_size, in MakeSpeedTestPacket() argument
2275 packet.Clear(); in MakeSpeedTestPacket()
2276 packet.Printf("qSpeedTest:response_size:%i;data:", recv_size); in MakeSpeedTestPacket()
2280 packet.PutCString("abcdefghijklmnopqrstuvwxyz"); in MakeSpeedTestPacket()
2283 packet.Printf("%*.*s;", bytes_left, bytes_left, in MakeSpeedTestPacket()
2311 StreamString packet; in TestPacketSpeed() local
2329 MakeSpeedTestPacket(packet, send_size, recv_size); in TestPacketSpeed()
2337 SendPacketAndWaitForResponse(packet.GetString(), response, false); in TestPacketSpeed()
2381 MakeSpeedTestPacket(packet, send_size, recv_size); in TestPacketSpeed()
2391 SendPacketAndWaitForResponse(packet.GetString(), response, false); in TestPacketSpeed()
2430 StreamString packet; in SendSpeedTestPacket() local
2431 packet.Printf("qSpeedTest:response_size:%i;data:", recv_size); in SendSpeedTestPacket()
2435 packet.PutCString("abcdefghijklmnopqrstuvwxyz"); in SendSpeedTestPacket()
2438 packet.Printf("%*.*s;", bytes_left, bytes_left, in SendSpeedTestPacket()
2445 return SendPacketAndWaitForResponse(packet.GetString(), response, false) == in SendSpeedTestPacket()
2550 char packet[32]; in SetCurrentThread() local
2553 packet_len = ::snprintf(packet, sizeof(packet), "Hg-1"); in SetCurrentThread()
2555 packet_len = ::snprintf(packet, sizeof(packet), "Hg%" PRIx64, tid); in SetCurrentThread()
2556 assert(packet_len + 1 < (int)sizeof(packet)); in SetCurrentThread()
2559 if (SendPacketAndWaitForResponse(packet, response, false) == in SetCurrentThread()
2585 char packet[32]; in SetCurrentThreadForRun() local
2588 packet_len = ::snprintf(packet, sizeof(packet), "Hc-1"); in SetCurrentThreadForRun()
2590 packet_len = ::snprintf(packet, sizeof(packet), "Hc%" PRIx64, tid); in SetCurrentThreadForRun()
2592 assert(packet_len + 1 < (int)sizeof(packet)); in SetCurrentThreadForRun()
2595 if (SendPacketAndWaitForResponse(packet, response, false) == in SetCurrentThreadForRun()
2628 char packet[256]; in GetThreadStopInfo() local
2630 ::snprintf(packet, sizeof(packet), "qThreadStopInfo%" PRIx64, tid); in GetThreadStopInfo()
2631 assert(packet_len < (int)sizeof(packet)); in GetThreadStopInfo()
2633 if (SendPacketAndWaitForResponse(packet, response, false) == in GetThreadStopInfo()
2659 char packet[64]; in SendGDBStoppointTypePacket() local
2661 ::snprintf(packet, sizeof(packet), "%c%i,%" PRIx64 ",%x", in SendGDBStoppointTypePacket()
2664 assert(packet_len + 1 < (int)sizeof(packet)); in SendGDBStoppointTypePacket()
2671 if (SendPacketAndWaitForResponse(packet, response, true) == in SendGDBStoppointTypePacket()
2834 llvm::StringRef packet = stream.GetString(); in MakeDirectory() local
2837 if (SendPacketAndWaitForResponse(packet, response, false) != in MakeDirectory()
2839 return Status("failed to send '%s' packet", packet.str().c_str()); in MakeDirectory()
2842 return Status("invalid response to '%s' packet", packet.str().c_str()); in MakeDirectory()
2856 llvm::StringRef packet = stream.GetString(); in SetFilePermissions() local
2859 if (SendPacketAndWaitForResponse(packet, response, false) != in SetFilePermissions()
3284 StreamString packet; in SyncThreadState() local
3286 packet.Printf("QSyncThreadState:%4.4" PRIx64 ";", tid); in SyncThreadState()
3287 return SendPacketAndWaitForResponse(packet.GetString(), response, false) == in SyncThreadState()
3462 StreamGDBRemote &packet, lldb::user_id_t uid, lldb::tid_t thread_id, in SendGetTraceDataPacket() argument
3479 packet.PutEscapedBytes(json_string.GetData(), json_string.GetSize()); in SendGetTraceDataPacket()
3481 if (SendPacketAndWaitForResponse(packet.GetString(), response, true) == in SendGetTraceDataPacket()
3493 packet.GetData()); in SendGetTraceDataPacket()
3509 StreamString packet; in GetModuleInfo() local
3510 packet.PutCString("qModuleInfo:"); in GetModuleInfo()
3511 packet.PutCStringAsRawHex8(module_path.c_str()); in GetModuleInfo()
3512 packet.PutCString(";"); in GetModuleInfo()
3514 packet.PutCStringAsRawHex8(triple.c_str()); in GetModuleInfo()
3517 if (SendPacketAndWaitForResponse(packet.GetString(), response, false) != in GetModuleInfo()
3678 std::stringstream packet; in ReadExtFeature() local
3679 packet << "qXfer:" << object.AsCString("") in ReadExtFeature()
3684 SendPacketAndWaitForResponse(packet.str(), chunk, false); in ReadExtFeature()
3775 StreamString packet; in ServeSymbolLookups() local
3776 packet.PutCString("qSymbol::"); in ServeSymbolLookups()
3778 while (SendPacketAndWaitForResponseNoLock(packet.GetString(), response) == in ServeSymbolLookups()
3861 packet.Clear(); in ServeSymbolLookups()
3862 packet.PutCString("qSymbol:"); in ServeSymbolLookups()
3864 packet.Printf("%" PRIx64, symbol_load_addr); in ServeSymbolLookups()
3869 packet.PutCString(":"); in ServeSymbolLookups()
3870 packet.PutBytesAsRawHex8(symbol_name.data(), symbol_name.size()); in ServeSymbolLookups()
3942 std::string packet = formatv("QPassSignals:{0:$[;]@(x-2)}", range).str(); in SendSignalsToIgnore() local
3945 auto send_status = SendPacketAndWaitForResponse(packet, response, false); in SendSignalsToIgnore()