This is an archive of the discontinued LLVM Phabricator instance.

[lldb/gdb-remote] Remove initial pipe-draining workaround
ClosedPublic

Authored by labath on Nov 24 2021, 5:22 AM.

Details

Summary

This code, added in rL197579 (Dec 2013) is supposed to work around what
was presumably a qemu bug, where it would send unsolicited stop-reply
packets after the initial connection.

At present, qemu does not exhibit such behavior. Also, the 10ms delay
introduced by this code is sufficient to mask bugs in other stubs, but
it is not sufficient to *reliably* mask those bugs. This resulted in
flakyness in one of our stubs, which was (incorrectly) sending a +
packet at the start of the connection, resulting in a small-but-annoying
number of dropped connections.

Diff Detail

Event Timeline

labath requested review of this revision.Nov 24 2021, 5:22 AM
labath created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptNov 24 2021, 5:22 AM

Ed, I don't suppose you by any chance remember more details about that patch? I couldn't find a way to reproduce this with a modern-day qemu, but I also couldn't find any evidence that this ever was an issue, so it is possible (though not very likely, I hope) that I am missing something...

mgorny accepted this revision.Nov 24 2021, 5:52 AM

Makes sense to me.

This revision is now accepted and ready to land.Nov 24 2021, 5:52 AM
This revision was automatically updated to reflect the committed changes.