Skip to content

Commit 9db6073

Browse files
committed
[GDBRemote] Remove code that flushes GDB remote packets
The arbitrary timeout when flushing GDB remote packets caused non-determinism and flakiness between test runs. I suspect it is what's causing the flakiness of the reproducer tests on GreenDragon, and want to see if removing it causes that to go away. This change was originally introduced in r197579 to discard a `$T02thread:01;#4` that QEMU was sending. If anybody knows how to test that this continues working after removing this code, I'd love to hear it. llvm-svn: 364669
1 parent 7d78e5c commit 9db6073

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp

-7
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,6 @@ bool GDBRemoteCommunicationClient::HandshakeWithServer(Status *error_ptr) {
115115
// Start the read thread after we send the handshake ack since if we fail to
116116
// send the handshake ack, there is no reason to continue...
117117
if (SendAck()) {
118-
// Wait for any responses that might have been queued up in the remote
119-
// GDB server and flush them all
120-
StringExtractorGDBRemote response;
121-
PacketResult packet_result = PacketResult::Success;
122-
while (packet_result == PacketResult::Success)
123-
packet_result = ReadPacket(response, milliseconds(10), false);
124-
125118
// The return value from QueryNoAckModeSupported() is true if the packet
126119
// was sent and _any_ response (including UNIMPLEMENTED) was received), or
127120
// false if no response was received. This quickly tells us if we have a

0 commit comments

Comments
 (0)