Lines Matching refs:packet

347   StreamString packet;  in GetRemoteQSupported()  local
348 packet.PutCString("qSupported"); in GetRemoteQSupported()
350 packet.PutCString(i == 0 ? ":" : ";"); in GetRemoteQSupported()
351 packet.PutCString(features[i]); in GetRemoteQSupported()
355 if (SendPacketAndWaitForResponse(packet.GetString(), response) == in GetRemoteQSupported()
620 StreamString packet; in ReadMemoryTags() local
621 packet.Printf("qMemTags:%" PRIx64 ",%zx:%" PRIx32, addr, len, type); in ReadMemoryTags()
626 if (SendPacketAndWaitForResponse(packet.GetString(), response) != in ReadMemoryTags()
665 StreamString packet; in WriteMemoryTags() local
666 packet.Printf("QMemTags:%" PRIx64 ",%zx:%" PRIx32 ":", addr, len, type); in WriteMemoryTags()
667 packet.PutBytesAsRawHex8(tags.data(), tags.size()); in WriteMemoryTags()
671 if (SendPacketAndWaitForResponse(packet.GetString(), response) != in WriteMemoryTags()
683 char packet[256]; in GetxPacketSupported() local
684 snprintf(packet, sizeof(packet), "x0,0"); in GetxPacketSupported()
685 if (SendPacketAndWaitForResponse(packet, response) == in GetxPacketSupported()
795 StreamString packet; in SendArgumentsPacket() local
796 packet.PutCString("vRun"); in SendArgumentsPacket()
798 packet.PutChar(';'); in SendArgumentsPacket()
799 packet.PutBytesAsRawHex8(arg, strlen(arg)); in SendArgumentsPacket()
803 if (SendPacketAndWaitForResponse(packet.GetString(), response) != in SendArgumentsPacket()
823 StreamString packet; in SendArgumentsPacket() local
824 packet.PutChar('A'); in SendArgumentsPacket()
829 packet.PutChar(','); in SendArgumentsPacket()
830 packet.Printf("%i,%i,", arg_len * 2, (int)i); in SendArgumentsPacket()
831 packet.PutBytesAsRawHex8(arg, arg_len); in SendArgumentsPacket()
835 if (SendPacketAndWaitForResponse(packet.GetString(), response) == in SendArgumentsPacket()
882 StreamString packet; in SendEnvironmentPacket() local
883 packet.Printf("QEnvironment:%s", name_equal_value); in SendEnvironmentPacket()
884 if (SendPacketAndWaitForResponse(packet.GetString(), response) != in SendEnvironmentPacket()
901 StreamString packet; in SendEnvironmentPacket() local
902 packet.PutCString("QEnvironmentHexEncoded:"); in SendEnvironmentPacket()
903 packet.PutBytesAsRawHex8(name_equal_value, strlen(name_equal_value)); in SendEnvironmentPacket()
904 if (SendPacketAndWaitForResponse(packet.GetString(), response) != in SendEnvironmentPacket()
925 StreamString packet; in SendLaunchArchPacket() local
926 packet.Printf("QLaunchArch:%s", arch); in SendLaunchArchPacket()
928 if (SendPacketAndWaitForResponse(packet.GetString(), response) == in SendLaunchArchPacket()
943 StreamString packet; in SendLaunchEventDataPacket() local
944 packet.Printf("QSetProcessEvent:%s", data); in SendLaunchEventDataPacket()
946 if (SendPacketAndWaitForResponse(packet.GetString(), response) == in SendLaunchEventDataPacket()
1134 std::string packet = "QEnableCompression:type:" + avail_name.str() + ";"; in MaybeEnableCompression() local
1135 if (SendPacketAndWaitForResponse(packet, response) != PacketResult::Success) in MaybeEnableCompression()
1402 StreamString packet; in SendStdinNotification() local
1403 packet.PutCString("I"); in SendStdinNotification()
1404 packet.PutBytesAsRawHex8(data, data_len); in SendStdinNotification()
1406 if (SendPacketAndWaitForResponse(packet.GetString(), response) == in SendStdinNotification()
1435 char packet[64]; in AllocateMemory() local
1437 packet, sizeof(packet), "_M%" PRIx64 ",%s%s%s", (uint64_t)size, in AllocateMemory()
1441 assert(packet_len < (int)sizeof(packet)); in AllocateMemory()
1444 if (SendPacketAndWaitForResponse(packet, response) == in AllocateMemory()
1460 char packet[64]; in DeallocateMemory() local
1462 ::snprintf(packet, sizeof(packet), "_m%" PRIx64, (uint64_t)addr); in DeallocateMemory()
1463 assert(packet_len < (int)sizeof(packet)); in DeallocateMemory()
1466 if (SendPacketAndWaitForResponse(packet, response) == in DeallocateMemory()
1482 lldb_private::StreamString packet; in Detach() local
1484 packet.PutChar('D'); in Detach()
1487 char packet[64]; in Detach() local
1489 ::snprintf(packet, sizeof(packet), "qSupportsDetachAndStayStopped:"); in Detach()
1490 assert(packet_len < (int)sizeof(packet)); in Detach()
1493 if (SendPacketAndWaitForResponse(packet, response) == in Detach()
1506 packet.PutChar('1'); in Detach()
1515 packet.PutChar(';'); in Detach()
1516 packet.PutHex64(pid); in Detach()
1524 SendPacketAndWaitForResponse(packet.GetString(), response); in Detach()
1537 char packet[64]; in GetMemoryRegionInfo() local
1539 packet, sizeof(packet), "qMemoryRegionInfo:%" PRIx64, (uint64_t)addr); in GetMemoryRegionInfo()
1540 assert(packet_len < (int)sizeof(packet)); in GetMemoryRegionInfo()
1543 if (SendPacketAndWaitForResponse(packet, response) == in GetMemoryRegionInfo()
1865 StreamString packet; in SetSTDIN() local
1866 packet.PutCString("QSetSTDIN:"); in SetSTDIN()
1867 packet.PutStringAsRawHex8(path); in SetSTDIN()
1870 if (SendPacketAndWaitForResponse(packet.GetString(), response) == in SetSTDIN()
1885 StreamString packet; in SetSTDOUT() local
1886 packet.PutCString("QSetSTDOUT:"); in SetSTDOUT()
1887 packet.PutStringAsRawHex8(path); in SetSTDOUT()
1890 if (SendPacketAndWaitForResponse(packet.GetString(), response) == in SetSTDOUT()
1905 StreamString packet; in SetSTDERR() local
1906 packet.PutCString("QSetSTDERR:"); in SetSTDERR()
1907 packet.PutStringAsRawHex8(path); in SetSTDERR()
1910 if (SendPacketAndWaitForResponse(packet.GetString(), response) == in SetSTDERR()
1941 StreamString packet; in SetWorkingDir() local
1942 packet.PutCString("QSetWorkingDir:"); in SetWorkingDir()
1943 packet.PutStringAsRawHex8(path); in SetWorkingDir()
1946 if (SendPacketAndWaitForResponse(packet.GetString(), response) == in SetWorkingDir()
1959 char packet[32]; in SetDisableASLR() local
1961 ::snprintf(packet, sizeof(packet), "QSetDisableASLR:%i", enable ? 1 : 0); in SetDisableASLR()
1962 assert(packet_len < (int)sizeof(packet)); in SetDisableASLR()
1965 if (SendPacketAndWaitForResponse(packet, response) == PacketResult::Success) { in SetDisableASLR()
1976 char packet[32]; in SetDetachOnError() local
1977 const int packet_len = ::snprintf(packet, sizeof(packet), in SetDetachOnError()
1979 assert(packet_len < (int)sizeof(packet)); in SetDetachOnError()
1982 if (SendPacketAndWaitForResponse(packet, response) == PacketResult::Success) { in SetDetachOnError()
2094 char packet[32]; in GetProcessInfo() local
2096 ::snprintf(packet, sizeof(packet), "qProcessInfoPID:%" PRIu64, pid); in GetProcessInfo()
2097 assert(packet_len < (int)sizeof(packet)); in GetProcessInfo()
2100 if (SendPacketAndWaitForResponse(packet, response) == in GetProcessInfo()
2267 StreamString packet; in FindProcesses() local
2268 packet.PutCString("qfProcessInfo"); in FindProcesses()
2270 packet.PutChar(':'); in FindProcesses()
2282 packet.PutCString("name_match:equals;"); in FindProcesses()
2286 packet.PutCString("name_match:contains;"); in FindProcesses()
2290 packet.PutCString("name_match:starts_with;"); in FindProcesses()
2294 packet.PutCString("name_match:ends_with;"); in FindProcesses()
2298 packet.PutCString("name_match:regex;"); in FindProcesses()
2302 packet.PutCString("name:"); in FindProcesses()
2303 packet.PutBytesAsRawHex8(name, ::strlen(name)); in FindProcesses()
2304 packet.PutChar(';'); in FindProcesses()
2309 packet.Printf("pid:%" PRIu64 ";", in FindProcesses()
2312 packet.Printf("parent_pid:%" PRIu64 ";", in FindProcesses()
2315 packet.Printf("uid:%u;", match_info.GetProcessInfo().GetUserID()); in FindProcesses()
2317 packet.Printf("gid:%u;", match_info.GetProcessInfo().GetGroupID()); in FindProcesses()
2319 packet.Printf("euid:%u;", in FindProcesses()
2322 packet.Printf("egid:%u;", in FindProcesses()
2324 packet.Printf("all_users:%u;", match_info.GetMatchAllUsers() ? 1 : 0); in FindProcesses()
2329 packet.PutCString("triple:"); in FindProcesses()
2330 packet.PutCString(triple.getTriple()); in FindProcesses()
2331 packet.PutChar(';'); in FindProcesses()
2338 if (SendPacketAndWaitForResponse(packet.GetString(), response) == in FindProcesses()
2359 char packet[32]; in GetUserName() local
2361 ::snprintf(packet, sizeof(packet), "qUserName:%i", uid); in GetUserName()
2362 assert(packet_len < (int)sizeof(packet)); in GetUserName()
2365 if (SendPacketAndWaitForResponse(packet, response) == in GetUserName()
2386 char packet[32]; in GetGroupName() local
2388 ::snprintf(packet, sizeof(packet), "qGroupName:%i", gid); in GetGroupName()
2389 assert(packet_len < (int)sizeof(packet)); in GetGroupName()
2392 if (SendPacketAndWaitForResponse(packet, response) == in GetGroupName()
2410 static void MakeSpeedTestPacket(StreamString &packet, uint32_t send_size, in MakeSpeedTestPacket() argument
2412 packet.Clear(); in MakeSpeedTestPacket()
2413 packet.Printf("qSpeedTest:response_size:%i;data:", recv_size); in MakeSpeedTestPacket()
2417 packet.PutCString("abcdefghijklmnopqrstuvwxyz"); in MakeSpeedTestPacket()
2420 packet.Printf("%*.*s;", bytes_left, bytes_left, in MakeSpeedTestPacket()
2448 StreamString packet; in TestPacketSpeed() local
2466 MakeSpeedTestPacket(packet, send_size, recv_size); in TestPacketSpeed()
2474 SendPacketAndWaitForResponse(packet.GetString(), response); in TestPacketSpeed()
2518 MakeSpeedTestPacket(packet, send_size, recv_size); in TestPacketSpeed()
2528 SendPacketAndWaitForResponse(packet.GetString(), response); in TestPacketSpeed()
2567 StreamString packet; in SendSpeedTestPacket() local
2568 packet.Printf("qSpeedTest:response_size:%i;data:", recv_size); in SendSpeedTestPacket()
2572 packet.PutCString("abcdefghijklmnopqrstuvwxyz"); in SendSpeedTestPacket()
2575 packet.Printf("%*.*s;", bytes_left, bytes_left, in SendSpeedTestPacket()
2582 return SendPacketAndWaitForResponse(packet.GetString(), response) == in SendSpeedTestPacket()
2687 lldb_private::StreamString packet; in SendSetCurrentThreadPacket() local
2688 packet.PutChar('H'); in SendSetCurrentThreadPacket()
2689 packet.PutChar(op); in SendSetCurrentThreadPacket()
2692 packet.Printf("p%" PRIx64 ".", pid); in SendSetCurrentThreadPacket()
2695 packet.PutCString("-1"); in SendSetCurrentThreadPacket()
2697 packet.Printf("%" PRIx64, tid); in SendSetCurrentThreadPacket()
2700 if (SendPacketAndWaitForResponse(packet.GetString(), response) == in SendSetCurrentThreadPacket()
2758 char packet[256]; in GetThreadStopInfo() local
2760 ::snprintf(packet, sizeof(packet), "qThreadStopInfo%" PRIx64, tid); in GetThreadStopInfo()
2761 assert(packet_len < (int)sizeof(packet)); in GetThreadStopInfo()
2763 if (SendPacketAndWaitForResponse(packet, response) == in GetThreadStopInfo()
2789 char packet[64]; in SendGDBStoppointTypePacket() local
2791 ::snprintf(packet, sizeof(packet), "%c%i,%" PRIx64 ",%x", in SendGDBStoppointTypePacket()
2794 assert(packet_len + 1 < (int)sizeof(packet)); in SendGDBStoppointTypePacket()
2801 if (SendPacketAndWaitForResponse(packet, response, timeout) == in SendGDBStoppointTypePacket()
2987 llvm::StringRef packet = stream.GetString(); in MakeDirectory() local
2990 if (SendPacketAndWaitForResponse(packet, response) != PacketResult::Success) in MakeDirectory()
2991 return Status("failed to send '%s' packet", packet.str().c_str()); in MakeDirectory()
2994 return Status("invalid response to '%s' packet", packet.str().c_str()); in MakeDirectory()
3008 llvm::StringRef packet = stream.GetString(); in SetFilePermissions() local
3011 if (SendPacketAndWaitForResponse(packet, response) != PacketResult::Success) in SetFilePermissions()
3546 StreamString packet; in SyncThreadState() local
3548 packet.Printf("QSyncThreadState:%4.4" PRIx64 ";", tid); in SyncThreadState()
3549 return SendPacketAndWaitForResponse(packet.GetString(), response) == in SyncThreadState()
3765 StreamString packet; in GetModuleInfo() local
3766 packet.PutCString("qModuleInfo:"); in GetModuleInfo()
3767 packet.PutStringAsRawHex8(module_path); in GetModuleInfo()
3768 packet.PutCString(";"); in GetModuleInfo()
3770 packet.PutStringAsRawHex8(triple); in GetModuleInfo()
3773 if (SendPacketAndWaitForResponse(packet.GetString(), response) != in GetModuleInfo()
3932 std::string packet = in ReadExtFeature() local
3938 SendPacketAndWaitForResponse(packet, chunk); in ReadExtFeature()
4021 StreamString packet; in ServeSymbolLookups() local
4022 packet.PutCString("qSymbol::"); in ServeSymbolLookups()
4024 while (SendPacketAndWaitForResponseNoLock(packet.GetString(), response) == in ServeSymbolLookups()
4108 packet.Clear(); in ServeSymbolLookups()
4109 packet.PutCString("qSymbol:"); in ServeSymbolLookups()
4111 packet.Printf("%" PRIx64, symbol_load_addr); in ServeSymbolLookups()
4116 packet.PutCString(":"); in ServeSymbolLookups()
4117 packet.PutBytesAsRawHex8(symbol_name.data(), symbol_name.size()); in ServeSymbolLookups()
4188 std::string packet = formatv("QPassSignals:{0:$[;]@(x-2)}", range).str(); in SendSignalsToIgnore() local
4191 auto send_status = SendPacketAndWaitForResponse(packet, response); in SendSignalsToIgnore()