[Lldb-commits] [PATCH] D87333: [lldb/ipv6] Support running lldb tests in an ipv6-only environment.

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 15 02:30:00 PDT 2020


labath added a comment.
Herald added a reviewer: JDevlieghere.

(Sorry about the delay.) Given the current requirements, I think this patch is fine (excellent even).

That said, I'm not sure whether the original motivation for this requirement (avoiding dns lookups) is still relevant. These days, we communicate with the local debug server via `socketpair(2)` sockets (which wasn't the case back then), which does not require any dns lookups and is immune to a misconfigured hosts file.

Given that none of the things touched by this patch is extremely critical (`GDBRemoteCommunication::ConnectLocally` is used for reproducers and the rest is test code), maybe we could use this to test the water and see whether we can start using the network stack the way it's supposed to be used ?



================
Comment at: lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp:1243
+          std::error_code ec = e->convertToErrorCode();
+          if (ec == std::make_error_code(
+                        std::errc::address_family_not_supported) ||
----------------
Nit: I believe the std::make_error_code call is redundant (direct comparison to the enum should work fine).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87333/new/

https://reviews.llvm.org/D87333



More information about the lldb-commits mailing list