llvm-project/lldb/tools
Michał Górny 58d28b931f [lldb] [lldb-gdbserver] Unify listen/connect code to use ConnectionFileDescriptor
Unify the listen and connect code inside lldb-server to use
ConnectionFileDescriptor uniformly rather than a mix of it and Acceptor.
This involves:

- adding a function to map legacy values of host:port parameter
  (including legacy server URLs) into CFD-style URLs

- adding a callback to return "local socket id" (i.e. UNIX socket path
  or TCP port number) between listen() and accept() calls in CFD

- adding a "unix-abstract-accept" scheme to CFD

As an additional advantage, this permits lldb-server to accept any URL
known to CFD including the new serial:// scheme.  Effectively,
lldb-server can now listen on the serial port.  Tests for connecting
over a pty are added to test that.

Differential Revision: https://reviews.llvm.org/D111964
2021-10-26 13:06:19 +02:00
..
argdumper [lldb] Remove a few unused .exports files 2021-08-05 22:17:00 +02:00
compact-unwind Don't re-define constants that are now in compact_unwind_encoding.h. 2021-09-09 17:01:43 -07:00
darwin-debug [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
darwin-threads
debugserver Fix locals naming in DNBArchMachARM64::GetGPRState for 32-bit builds 2021-10-22 13:24:25 -07:00
driver [lldb] Get rid of HAVE_SYS_TYPES_H 2021-08-03 22:14:56 +02:00
intel-features [LLDB] Silence warnings in cli-wrapper-mpxtable.cpp 2021-06-28 02:36:14 +00:00
lldb-instr Adapt lldb-instr to d47ee525f9 APi change 2021-01-29 10:58:40 +01:00
lldb-server [lldb] [lldb-gdbserver] Unify listen/connect code to use ConnectionFileDescriptor 2021-10-26 13:06:19 +02:00
lldb-test [lldb] Stop referencing "host_lib" in cmake files 2021-08-05 22:18:37 +02:00
lldb-vscode Use StringRef::contains (NFC) 2021-10-23 20:41:46 -07:00
CMakeLists.txt [CMake] Copy over the system debugserver when using LLDB_USE_SYSTEM_DEBUGSERVER 2019-09-24 22:39:04 +00:00