[Lldb-commits] [PATCH] D104856: [lldb] replace gethostbyname call by getaddrinfo

Jan Kratochvil via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 24 07:01:39 PDT 2021


jankratochvil added a comment.

In D104856#2838515 <https://reviews.llvm.org/D104856#2838515>, @teemperor wrote:

> (Nit: this is from the Linux manpage but this code is only compiled on Darwin).

Why do you think so? I haven't tried to build it on OSX but according to GIT the last use of this function was removed by  Re-landing IPv6 support for LLDB Host <https://github.com/llvm/llvm-project/commit/1182779917b3c1681274e6feaa4d36e51b7e142e>.



================
Comment at: lldb/tools/debugserver/source/RNBSocket.cpp:37
 
 bool ResolveIPV4HostName(const char *hostname, in_addr_t &addr) {
   if (hostname == NULL || hostname[0] == '\0' ||
----------------
`in


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104856



More information about the lldb-commits mailing list