[Lldb-commits] [lldb] [lldb] Fixed IPv6 host formatting in #104238 (PR #111033)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 3 10:57:20 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Dmitry Vasilyev (slydiman)
<details>
<summary>Changes</summary>
This patch fixes the following problems https://lab.llvm.org/buildbot/#/builders/162/builds/7720
---
Full diff: https://github.com/llvm/llvm-project/pull/111033.diff
1 Files Affected:
- (modified) lldb/tools/lldb-server/lldb-platform.cpp (+2-2)
``````````diff
diff --git a/lldb/tools/lldb-server/lldb-platform.cpp b/lldb/tools/lldb-server/lldb-platform.cpp
index d1f925685dff91..2ef780578d0a28 100644
--- a/lldb/tools/lldb-server/lldb-platform.cpp
+++ b/lldb/tools/lldb-server/lldb-platform.cpp
@@ -142,8 +142,8 @@ static Status parse_listen_host_port(Socket::SocketProtocol &protocol,
return Status::FromErrorStringWithFormat(
"The same platform and gdb ports %u.", platform_port);
}
- address = llvm::formatv("{0}:{1}", hostname, platform_port).str();
- gdb_address = llvm::formatv("{0}:{1}", hostname, gdbserver_port).str();
+ address = llvm::formatv("[{0}]:{1}", hostname, platform_port).str();
+ gdb_address = llvm::formatv("[{0}]:{1}", hostname, gdbserver_port).str();
} else {
if (gdbserver_port) {
return Status::FromErrorStringWithFormat(
``````````
</details>
https://github.com/llvm/llvm-project/pull/111033
More information about the lldb-commits
mailing list