Skip to content

Commit

Permalink
[lldb] Fixed IPv6 host formatting in llvm#104238 (llvm#111033)
Browse files Browse the repository at this point in the history
This patch fixes the following problems
https://lab.llvm.org/buildbot/#/builders/162/builds/7720
  • Loading branch information
slydiman authored Oct 3, 2024
1 parent 9abb97f commit 000e790
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lldb/tools/lldb-server/lldb-platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 000e790

Please sign in to comment.