mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-05 07:32:36 +00:00
Revert "[GDBRemote] Remove code that flushes GDB remote packets"
Reverting this again as it doesn't appear to solve the flakiness on the LLDB standalone bot. llvm-svn: 364722
This commit is contained in:
parent
706b48251f
commit
135cf982e8
@ -115,6 +115,13 @@ bool GDBRemoteCommunicationClient::HandshakeWithServer(Status *error_ptr) {
|
||||
// Start the read thread after we send the handshake ack since if we fail to
|
||||
// send the handshake ack, there is no reason to continue...
|
||||
if (SendAck()) {
|
||||
// Wait for any responses that might have been queued up in the remote
|
||||
// GDB server and flush them all
|
||||
StringExtractorGDBRemote response;
|
||||
PacketResult packet_result = PacketResult::Success;
|
||||
while (packet_result == PacketResult::Success)
|
||||
packet_result = ReadPacket(response, milliseconds(10), false);
|
||||
|
||||
// The return value from QueryNoAckModeSupported() is true if the packet
|
||||
// was sent and _any_ response (including UNIMPLEMENTED) was received), or
|
||||
// false if no response was received. This quickly tells us if we have a
|
||||
|
Loading…
Reference in New Issue
Block a user