[Lldb-commits] [lldb] Minor fix to connect-url to support unix-connect sockets on localhost (PR #142875)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 5 16:40:43 PDT 2025
================
@@ -800,7 +800,11 @@ std::string PlatformRemoteGDBServer::MakeUrl(const char *scheme,
const char *hostname,
uint16_t port, const char *path) {
StreamString result;
- result.Printf("%s://[%s]", scheme, hostname);
+ if (strlen(hostname) > 0)
+ result.Printf("%s://[%s]", scheme, hostname);
+ else
+ result.Printf("%s://", scheme);
+
----------------
satyajanga wrote:
updated this.
https://github.com/llvm/llvm-project/pull/142875
More information about the lldb-commits
mailing list