Lines Matching refs:packet

34 /// Check if the given expected packet matches the actual packet.
37 // trailing checksum. The 'actual' string contains only the packet's content.
53 /// Check if we should reply to the given packet.
55 assert(!data.empty() && "Empty packet?");
57 // We've already acknowledge the '+' packet so we're done here.
64 /// previous packet (e.g. vCont). As a result, we should ignore real
98 StringExtractorGDBRemote packet;
99 PacketResult packet_result = WaitForPacketNoLock(packet, timeout, false);
113 // Check if we should reply to this packet.
114 if (skip(packet.GetStringRef()))
119 if (packet.GetStringRef() == "QStartNoAckMode")
122 // A QEnvironment packet is sent for every environment variable. If the
125 if (packet.GetStringRef().find("QEnvironment") == 0)
130 // Pop last packet from the history.
134 // We've handled the handshake implicitly before. Skip the packet and move
136 if (entry.packet.data == "+")
140 if (unexpected(entry.packet.data, packet.GetStringRef())) {
142 "GDBRemoteCommunicationReplayServer expected packet: '{0}'",
143 entry.packet.data);
144 LLDB_LOG(log, "GDBRemoteCommunicationReplayServer actual packet: '{0}'",
145 packet.GetStringRef());
148 // received packet before aborting.
149 printf("Reproducer expected packet: '%s'\n", entry.packet.data.c_str());
150 printf("Reproducer received packet: '%s'\n",
151 packet.GetStringRef().data());
152 llvm::report_fatal_error("Encountered unexpected packet during replay");
158 if (entry.packet.data.find("QEnvironment") == 1) {
170 "GDBRemoteCommunicationReplayServer skipped invalid packet: '{0}'",
171 packet.GetStringRef());
177 packet.GetStringRef(), entry.packet.data);
178 return SendRawPacketNoLock(entry.packet.data);