llvm-project/lldb
Michał Górny d8bc7e40ce [lldb] [lldb-server] Refactor ConnectToRemote()
Refactor ConnectToRemote() to improve readability and make future
changes easier:

1. Replace static buffers with std::string.
2. When handling errors, prefer reporting the actual error over dumb
   'connection status is not success'.
3. Move host/port parsing directly into reverse_connection condition
   that is its only user, and simplify it to make its purpose (verifying
   that a valid port is provided) clear.
4. Use llvm::errs() and llvm::outs() instead of fprintf().

Differential Revision: https://reviews.llvm.org/D11196
2021-10-18 12:17:43 +02:00
..
bindings [NFC] fix a typo 2021-10-15 14:51:49 +08:00
cmake [lldb/lua] Force Lua version to be 5.3 2021-10-12 21:34:15 +08:00
docs [LLDB][Docs] Indicate `PS1` variable by $ 2021-09-04 20:57:59 +05:30
examples [lldb/Plugins] Add memory region support in ScriptedProcess 2021-10-08 14:54:07 +02:00
include/lldb [lldb] [Utility] Remove Status::WasInterrupted() along with its only use 2021-10-18 10:50:25 +02:00
packages/Python [lldb] Remove support for replaying the test suite from a reproducer 2021-09-30 10:47:19 -07:00
resources [lldb] Remove stale LLDB-Info.plist 2021-01-08 10:12:16 -08:00
scripts Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
source [lldb][NFC] clang format change 2021-10-18 12:00:32 +02:00
test [lldb] Return StringRef from PluginInterface::GetPluginName 2021-10-18 10:14:42 +02:00
third_party/Python/module [LLDB] Change pexpect timeout to 30 to 60 2021-08-02 06:34:11 +05:00
tools [lldb] [lldb-server] Refactor ConnectToRemote() 2021-10-18 12:17:43 +02:00
unittests [lldb] Fix SymbolFilePDBTests for a3939e1 2021-10-18 11:59:01 +02:00
utils [lldb] Match test dependencies name to other LLVM projects. 2021-05-21 00:10:27 -07:00
.clang-format
.clang-tidy [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
.gitignore
CMakeLists.txt [lldb/lua] Supplement Lua bindings for lldb module 2021-10-12 22:10:21 +08:00
CODE_OWNERS.txt
LICENSE.TXT
use_lldb_suite_root.py