Skip to content

Commit 000e790

Browse files
authored
[lldb] Fixed IPv6 host formatting in #104238 (#111033)
This patch fixes the following problems https://lab.llvm.org/buildbot/#/builders/162/builds/7720
1 parent 9abb97f commit 000e790

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/tools/lldb-server/lldb-platform.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ static Status parse_listen_host_port(Socket::SocketProtocol &protocol,
142142
return Status::FromErrorStringWithFormat(
143143
"The same platform and gdb ports %u.", platform_port);
144144
}
145-
address = llvm::formatv("{0}:{1}", hostname, platform_port).str();
146-
gdb_address = llvm::formatv("{0}:{1}", hostname, gdbserver_port).str();
145+
address = llvm::formatv("[{0}]:{1}", hostname, platform_port).str();
146+
gdb_address = llvm::formatv("[{0}]:{1}", hostname, gdbserver_port).str();
147147
} else {
148148
if (gdbserver_port) {
149149
return Status::FromErrorStringWithFormat(

0 commit comments

Comments
 (0)