Refactor ConnectionFileDescriptor to improve code reuse for different
types of sockets. Unify method naming.
While at it, remove some (now-)dead code from Socket.
Paths
| Differential D112495
[lldb] [Host/ConnectionFileDescriptor] Refactor to improve code reuse ClosedPublic Authored by mgorny on Oct 25 2021, 3:06 PM.
Details Summary Refactor ConnectionFileDescriptor to improve code reuse for different While at it, remove some (now-)dead code from Socket.
Diff Detail Event Timelinemgorny created this revision. mgorny added a parent revision: D112357: [lldb] [Host] Move port predicate-related logic to gdb-remote. This revision is now accepted and ready to land.Oct 27 2021, 1:45 AM This revision was landed with ongoing or failed builds.Oct 27 2021, 3:46 AM Closed by commit rGe1acadb61dfc: [lldb] [Host/ConnectionFileDescriptor] Refactor to improve code reuse (authored by mgorny). · Explain Why This revision was automatically updated to reflect the committed changes. Comment Actions This patch broke TestPlatformSDK.py on GreenDragon (https://green.lab.llvm.org/green/job/lldb-cmake/37156/) Comment Actions Looking at the test backtrace, it seems that we couldn't connect to debugserver: File "/Users/buildslave/jenkins/workspace/lldb-cmake/llvm-project/lldb/test/API/commands/platform/sdk/TestPlatformSDK.py", line 113, in test_macos_sdk self.assertTrue(connected, "could not connect to debugserver") I checked the SBCommandReturnObject.GetError output, which says Failed to connect port. The only occurence for this error is in : lldb/source/Host/common/TCPSocket.cpp 183: error.SetErrorString("error: Failed to connect port"); I reverted the patch to fix GreenDragon, I'll try to investigate more tomorrow. Comment Actions Build run #37166 (https://green.lab.llvm.org/green/job/lldb-cmake/37166/) confirms that this patch caused the failure.
Revision Contents
Diff 382136 lldb/include/lldb/Host/Socket.h
lldb/include/lldb/Host/posix/ConnectionFileDescriptorPosix.h
lldb/source/Host/common/Socket.cpp
lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp
|