[all-commits] [llvm/llvm-project] 62293e: Revert "[lldb] [lldb-server] Refactor ConnectToRem...
Michał Górny via All-commits
all-commits at lists.llvm.org
Mon Oct 18 13:05:52 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 62293e7d33ff0344b767ac66188981774c8b5197
https://github.com/llvm/llvm-project/commit/62293e7d33ff0344b767ac66188981774c8b5197
Author: Michał Górny <mgorny at moritz.systems>
Date: 2021-10-18 (Mon, 18 Oct 2021)
Changed paths:
M lldb/tools/lldb-server/lldb-gdbserver.cpp
Log Message:
-----------
Revert "[lldb] [lldb-server] Refactor ConnectToRemote()"
This reverts commit d8bc7e40ce1cdd8c1a3fac7937ce1ea85c262728. I've
linked the wrong Differential Revision.
Commit: a229a4aa6418bf34678a32f368324ae2c47051b7
https://github.com/llvm/llvm-project/commit/a229a4aa6418bf34678a32f368324ae2c47051b7
Author: Michał Górny <mgorny at moritz.systems>
Date: 2021-10-18 (Mon, 18 Oct 2021)
Changed paths:
M lldb/tools/lldb-server/lldb-gdbserver.cpp
Log Message:
-----------
[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/D111963
Compare: https://github.com/llvm/llvm-project/compare/54d868991ab7...a229a4aa6418
More information about the All-commits
mailing list