Lines Matching defs:packet

93     // The return value from QueryNoAckModeSupported() is true if the packet
109 "handshake packet");
112 "failed to get reply to handshake packet within timeout of "
205 // This is the first real packet that we'll send in a debug session and it
207 // 6 seconds for a reply to this packet.
353 // build the qSupported packet
357 StreamString packet;
358 packet.PutCString("qSupported");
360 packet.PutCString(i == 0 ? ":" : ";");
361 packet.PutCString(features[i]);
365 if (SendPacketAndWaitForResponse(packet.GetString(), response) ==
367 // Hang on to the qSupported packet, so that platforms can do custom
513 "for %s packet.",
528 // Check if the target supports 'p' packet. It sends out a 'p' packet and
529 // checks the response. A normal packet will tell us that support is available.
556 // Get information on all threads at one using the "jThreadsInfo" packet
654 StreamString packet;
655 packet.Printf("qMemTags:%" PRIx64 ",%zx:%" PRIx32, addr, len, type);
660 if (SendPacketAndWaitForResponse(packet.GetString(), response) !=
663 LLDB_LOGF(log, "GDBRemoteCommunicationClient::%s: qMemTags packet failed",
699 StreamString packet;
700 packet.Printf("QMemTags:%" PRIx64 ",%zx:%" PRIx32 ":", addr, len, type);
701 packet.PutBytesAsRawHex8(tags.data(), tags.size());
705 if (SendPacketAndWaitForResponse(packet.GetString(), response) !=
708 status.SetErrorString("QMemTags packet failed");
717 char packet[256];
718 snprintf(packet, sizeof(packet), "x0,0");
719 if (SendPacketAndWaitForResponse(packet, response) ==
783 StreamString packet;
784 packet.PutCString("vRun");
786 packet.PutChar(';');
787 packet.PutStringAsRawHex8(arg.ref());
791 if (SendPacketAndWaitForResponse(packet.GetString(), response) !=
794 "Sending vRun packet failed");
799 // vRun replies with a stop reason packet
800 // FIXME: right now we just discard the packet and LLDB queries
809 StreamString packet;
810 packet.PutChar('A');
813 packet << LS;
814 packet.Format("{0},{1},", arg.value().ref().size() * 2, arg.index());
815 packet.PutStringAsRawHex8(arg.value().ref());
819 if (SendPacketAndWaitForResponse(packet.GetString(), response) !=
822 "Sending A packet failed");
830 "Sending qLaunchSuccess packet failed");
881 StreamString packet;
882 packet.Printf("QEnvironment:%s", name_equal_value);
883 if (SendPacketAndWaitForResponse(packet.GetString(), response) !=
900 StreamString packet;
901 packet.PutCString("QEnvironmentHexEncoded:");
902 packet.PutBytesAsRawHex8(name_equal_value, strlen(name_equal_value));
903 if (SendPacketAndWaitForResponse(packet.GetString(), response) !=
924 StreamString packet;
925 packet.Printf("QLaunchArch:%s", arch);
927 if (SendPacketAndWaitForResponse(packet.GetString(), response) ==
942 StreamString packet;
943 packet.Printf("QSetProcessEvent:%s", data);
945 if (SendPacketAndWaitForResponse(packet.GetString(), response) ==
1140 std::string packet = "QEnableCompression:type:" + avail_name.str() + ";";
1141 if (SendPacketAndWaitForResponse(packet, response) != PacketResult::Success)
1413 StreamString packet;
1414 packet.PutCString("I");
1415 packet.PutBytesAsRawHex8(data, data_len);
1417 if (SendPacketAndWaitForResponse(packet.GetString(), response) ==
1454 char packet[64];
1456 packet, sizeof(packet), "_M%" PRIx64 ",%s%s%s", (uint64_t)size,
1460 assert(packet_len < (int)sizeof(packet));
1463 if (SendPacketAndWaitForResponse(packet, response) ==
1479 char packet[64];
1481 ::snprintf(packet, sizeof(packet), "_m%" PRIx64, (uint64_t)addr);
1482 assert(packet_len < (int)sizeof(packet));
1485 if (SendPacketAndWaitForResponse(packet, response) ==
1501 lldb_private::StreamString packet;
1503 packet.PutChar('D');
1506 char packet[64];
1508 ::snprintf(packet, sizeof(packet), "qSupportsDetachAndStayStopped:");
1509 assert(packet_len < (int)sizeof(packet));
1512 if (SendPacketAndWaitForResponse(packet, response) ==
1525 packet.PutChar('1');
1534 packet.PutChar(';');
1535 packet.PutHex64(pid);
1543 SendPacketAndWaitForResponse(packet.GetString(), response);
1545 error.SetErrorString("Sending isconnect packet failed.");
1556 char packet[64];
1558 packet, sizeof(packet), "qMemoryRegionInfo:%" PRIx64, (uint64_t)addr);
1559 assert(packet_len < (int)sizeof(packet));
1562 if (SendPacketAndWaitForResponse(packet, response) ==
1868 StreamString packet;
1869 packet.PutCString("QSetSTDIN:");
1870 packet.PutStringAsRawHex8(path);
1873 if (SendPacketAndWaitForResponse(packet.GetString(), response) ==
1888 StreamString packet;
1889 packet.PutCString("QSetSTDOUT:");
1890 packet.PutStringAsRawHex8(path);
1893 if (SendPacketAndWaitForResponse(packet.GetString(), response) ==
1908 StreamString packet;
1909 packet.PutCString("QSetSTDERR:");
1910 packet.PutStringAsRawHex8(path);
1913 if (SendPacketAndWaitForResponse(packet.GetString(), response) ==
1944 StreamString packet;
1945 packet.PutCString("QSetWorkingDir:");
1946 packet.PutStringAsRawHex8(path);
1949 if (SendPacketAndWaitForResponse(packet.GetString(), response) ==
1962 char packet[32];
1964 ::snprintf(packet, sizeof(packet), "QSetDisableASLR:%i", enable ? 1 : 0);
1965 assert(packet_len < (int)sizeof(packet));
1968 if (SendPacketAndWaitForResponse(packet, response) == PacketResult::Success) {
1979 char packet[32];
1980 const int packet_len = ::snprintf(packet, sizeof(packet),
1982 assert(packet_len < (int)sizeof(packet));
1985 if (SendPacketAndWaitForResponse(packet, response) == PacketResult::Success) {
2097 char packet[32];
2099 ::snprintf(packet, sizeof(packet), "qProcessInfoPID:%" PRIu64, pid);
2100 assert(packet_len < (int)sizeof(packet));
2103 if (SendPacketAndWaitForResponse(packet, response) ==
2291 StreamString packet;
2292 packet.PutCString("qfProcessInfo");
2294 packet.PutChar(':');
2306 packet.PutCString("name_match:equals;");
2310 packet.PutCString("name_match:contains;");
2314 packet.PutCString("name_match:starts_with;");
2318 packet.PutCString("name_match:ends_with;");
2322 packet.PutCString("name_match:regex;");
2326 packet.PutCString("name:");
2327 packet.PutBytesAsRawHex8(name, ::strlen(name));
2328 packet.PutChar(';');
2333 packet.Printf("pid:%" PRIu64 ";",
2336 packet.Printf("parent_pid:%" PRIu64 ";",
2339 packet.Printf("uid:%u;", match_info.GetProcessInfo().GetUserID());
2341 packet.Printf("gid:%u;", match_info.GetProcessInfo().GetGroupID());
2343 packet.Printf("euid:%u;",
2346 packet.Printf("egid:%u;",
2348 packet.Printf("all_users:%u;", match_info.GetMatchAllUsers() ? 1 : 0);
2353 packet.PutCString("triple:");
2354 packet.PutCString(triple.getTriple());
2355 packet.PutChar(';');
2359 // Increase timeout as the first qfProcessInfo packet takes a long time on
2362 if (SendPacketAndWaitForResponse(packet.GetString(), response) ==
2383 char packet[32];
2385 ::snprintf(packet, sizeof(packet), "qUserName:%i", uid);
2386 assert(packet_len < (int)sizeof(packet));
2389 if (SendPacketAndWaitForResponse(packet, response) ==
2393 // the hex encoded user name and should make up the entire packet. If
2410 char packet[32];
2412 ::snprintf(packet, sizeof(packet), "qGroupName:%i", gid);
2413 assert(packet_len < (int)sizeof(packet));
2416 if (SendPacketAndWaitForResponse(packet, response) ==
2420 // the hex encoded group name and should make up the entire packet. If
2434 static void MakeSpeedTestPacket(StreamString &packet, uint32_t send_size,
2436 packet.Clear();
2437 packet.Printf("qSpeedTest:response_size:%i;data:", recv_size);
2441 packet.PutCString("abcdefghijklmnopqrstuvwxyz");
2444 packet.Printf("%*.*s;", bytes_left, bytes_left,
2474 StreamString packet;
2492 MakeSpeedTestPacket(packet, send_size, recv_size);
2500 SendPacketAndWaitForResponse(packet.GetString(), response);
2522 "{3,9:f2} packets/s ({4,10:ms+f6} per packet) with "
2539 "packet sizes:\n",
2545 MakeSpeedTestPacket(packet, send_size, recv_size);
2555 SendPacketAndWaitForResponse(packet.GetString(), response);
2579 "{6,9:f2} packets/sec ({7,10:ms+f6} per packet)\n",
2596 StreamString packet;
2597 packet.Printf("qSpeedTest:response_size:%i;data:", recv_size);
2601 packet.PutCString("abcdefghijklmnopqrstuvwxyz");
2604 packet.Printf("%*.*s;", bytes_left, bytes_left,
2611 return SendPacketAndWaitForResponse(packet.GetString(), response) ==
2719 lldb_private::StreamString packet;
2720 packet.PutChar('H');
2721 packet.PutChar(op);
2724 packet.Printf("p%" PRIx64 ".", pid);
2727 packet.PutCString("-1");
2729 packet.Printf("%" PRIx64, tid);
2732 if (SendPacketAndWaitForResponse(packet.GetString(), response) ==
2739 * Hg packet.
2740 * The reply from '?' packet could be as simple as 'S05'. There is no packet
2790 char packet[256];
2792 ::snprintf(packet, sizeof(packet), "qThreadStopInfo%" PRIx64, tid);
2793 assert(packet_len < (int)sizeof(packet));
2795 if (SendPacketAndWaitForResponse(packet, response) ==
2820 // Construct the breakpoint packet
2821 char packet[64];
2823 ::snprintf(packet, sizeof(packet), "%c%i,%" PRIx64 ",%x",
2825 // Check we haven't overwritten the end of the packet buffer
2826 assert(packet_len + 1 < (int)sizeof(packet));
2832 // Try to send the breakpoint packet, and check that it was correctly sent
2833 if (SendPacketAndWaitForResponse(packet, response, timeout) ==
2835 // Receive and OK packet when the breakpoint successfully placed
2843 // Empty packet informs us that breakpoint is not supported
2908 * qProcessInfo, qC and qfThreadInfo packets. The reply from '?' packet
2910 * be as simple as 'S05'. There is no packet which can give us pid and/or
2920 LLDB_LOG(log, "error: failed to get packet sequence mutex, not sending "
2921 "packet 'qfThreadInfo'");
3008 return Status("unable to send packet");
3019 llvm::StringRef packet = stream.GetString();
3022 if (SendPacketAndWaitForResponse(packet, response) != PacketResult::Success)
3023 return Status("failed to send '%s' packet", packet.str().c_str());
3026 return Status("invalid response to '%s' packet", packet.str().c_str());
3040 llvm::StringRef packet = stream.GetString();
3043 if (SendPacketAndWaitForResponse(packet, response) != PacketResult::Success)
3044 return Status("failed to send '%s' packet", stream.GetData());
3047 return Status("invalid response to '%s' packet", stream.GetData());
3214 error.SetErrorStringWithFormat("failed to send '%s' packet",
3220 error.SetErrorStringWithFormat("invalid response to '%s' packet",
3318 error.SetErrorString("failed to send vFile:pwrite packet");
3352 error.SetErrorString("failed to send vFile:symlink packet");
3383 error.SetErrorString("failed to send vFile:unlink packet");
3439 // would consume the whole response packet which would give incorrect
3622 StreamString packet;
3624 packet.Printf("QSyncThreadState:%4.4" PRIx64 ";", tid);
3625 return SendPacketAndWaitForResponse(packet.GetString(), response) ==
3650 LLDB_LOG(log, "failed to send packet: jLLDBTraceSupported");
3652 "failed to send packet: jLLDBTraceSupported");
3684 LLDB_LOG(log, "failed to send packet: jLLDBTraceStop");
3686 "failed to send packet: jLLDBTraceStop '%s'",
3719 LLDB_LOG(log, "failed to send packet: jLLDBTraceStart");
3721 "failed to send packet: jLLDBTraceStart '%s'",
3752 LLDB_LOG(log, "failed to send packet: jLLDBTraceGetState");
3755 "failed to send packet: jLLDBTraceGetState '%s'",
3784 LLDB_LOG(log, "failed to send packet: jLLDBTraceGetBinaryData");
3787 "failed to send packet: jLLDBTraceGetBinaryData '%s'",
3841 StreamString packet;
3842 packet.PutCString("qModuleInfo:");
3843 packet.PutStringAsRawHex8(module_path);
3844 packet.PutCString(";");
3846 packet.PutStringAsRawHex8(triple);
3849 if (SendPacketAndWaitForResponse(packet.GetString(), response) !=
3952 // Increase the timeout for jModulesInfo since this packet can take longer.
3985 // query the target remote for extended information using the qXfer packet
4007 // send query extended feature packet
4008 std::string packet =
4014 SendPacketAndWaitForResponse(packet, chunk);
4019 "Error sending $qXfer packet");
4022 // check packet code
4039 "Invalid continuation code from $qXfer packet");
4047 // packet: "qSymbol::"
4053 // packet
4091 // Is this the initial qSymbol:: packet?
4097 StreamString packet;
4098 packet.PutCString("qSymbol::");
4100 while (SendPacketAndWaitForResponseNoLock(packet.GetString(), response) ==
4173 // and we want to send a packet with the new symbol value and see
4176 // Change "packet" to contain the requested symbol value and name
4177 packet.Clear();
4178 packet.PutCString("qSymbol:");
4180 packet.Printf("%" PRIx64, symbol_load_addr);
4185 packet.PutCString(":");
4186 packet.PutBytesAsRawHex8(symbol_name.data(), symbol_name.size());
4187 continue; // go back to the while loop and send "packet" and wait
4193 // If we make it here, the symbol request packet response wasn't valid or
4254 // Format packet:
4257 std::string packet = formatv("QPassSignals:{0:$[;]@(x-2)}", range).str();
4260 auto send_status = SendPacketAndWaitForResponse(packet, response);
4263 return Status("Sending QPassSignals packet failed");
4268 return Status("Unknown error happened during sending QPassSignals packet.");
4298 // Send the packet.
4314 "configuring StructuredData feature {0} failed when sending packet: "
4344 "failed to send k packet");
4351 "unexpected response to k packet: %s",