Author: ita-sc Date: 2025-05-20T09:32:40+01:00 New Revision: b3e15baf7c649a12e71ff281b83e9213abae2977
URL: https://github.com/llvm/llvm-project/commit/b3e15baf7c649a12e71ff281b83e9213abae2977 DIFF: https://github.com/llvm/llvm-project/commit/b3e15baf7c649a12e71ff281b83e9213abae2977.diff LOG: [lldb] Extend information for failed connection for gdb server (#139916) Before: ``` (lldb) r error: connect remote failed (Failed to connect port) error: Failed to connect port ``` After the patch: ``` (lldb) r error: connect remote failed (Failed to connect localhost:47140) error: Failed to connect localhost:47140 ``` Added: Modified: lldb/source/Host/common/TCPSocket.cpp Removed: ################################################################################ diff --git a/lldb/source/Host/common/TCPSocket.cpp b/lldb/source/Host/common/TCPSocket.cpp index d3282ab58b818..3d0dea1c61dd6 100644 --- a/lldb/source/Host/common/TCPSocket.cpp +++ b/lldb/source/Host/common/TCPSocket.cpp @@ -169,7 +169,8 @@ Status TCPSocket::Connect(llvm::StringRef name) { return error; } - error = Status::FromErrorString("Failed to connect port"); + error = Status::FromErrorStringWithFormatv( + "Failed to connect to {0}:{1}", host_port->hostname, host_port->port); return error; } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits