diff options
author | Michał Górny <mgorny@moritz.systems> | 2021-10-22 17:42:23 +0200 |
---|---|---|
committer | Michał Górny <mgorny@moritz.systems> | 2021-10-26 13:06:19 +0200 |
commit | 58d28b931f92f5ea2a6a01e088b794ee6ebd05e7 (patch) | |
tree | 6be42ab06638c62e0469fa604100b0c150ec0e5d /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | |
parent | 93c7ed8c3f8e2b2966e565758d0992ec1b07a11f (diff) | |
download | llvm-58d28b931f92f5ea2a6a01e088b794ee6ebd05e7.zip llvm-58d28b931f92f5ea2a6a01e088b794ee6ebd05e7.tar.gz llvm-58d28b931f92f5ea2a6a01e088b794ee6ebd05e7.tar.bz2 |
[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
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp')
0 files changed, 0 insertions, 0 deletions