[Lldb-commits] [lldb] Extend information for failed connection for gdb server (PR #139916)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed May 14 09:29:06 PDT 2025


================
@@ -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 {0}:{1}", host_port->hostname, host_port->port);
----------------
JDevlieghere wrote:

```suggestion
  error = Status::FromErrorStringWithFormatv(
      "Failed to connect to {0}:{1}", host_port->hostname, host_port->port);
```

https://github.com/llvm/llvm-project/pull/139916


More information about the lldb-commits mailing list