[Lldb-commits] [lldb] [lldb] For a host socket, add a method to print the listening address. (PR #118330)

John Harrison via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 3 10:23:13 PST 2024


================
@@ -115,6 +115,18 @@ std::string TCPSocket::GetRemoteConnectionURI() const {
   return "";
 }
 
+std::vector<std::string> TCPSocket::GetListeningConnectionURI() const {
+  if (m_listen_sockets.empty())
+    return {};
+
+  std::vector<std::string> URIs;
+  for (auto &s : m_listen_sockets)
----------------
ashgti wrote:

Applied suggestion

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


More information about the lldb-commits mailing list