[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:46:32 PDT 2025
================
@@ -57,3 +57,50 @@ def test_platform_process_connect(self):
self.assertEqual(frame.GetFunction().GetName(), "main")
self.assertEqual(frame.FindVariable("argc").GetValueAsSigned(), 2)
process.Continue()
+
+ @skipIfRemote
+ @expectedFailureAll(hostoslist=["windows"], triple=".*-android")
+ @skipIfDarwin # lldb-server not found correctly
+ @expectedFailureAll(oslist=["windows"]) # process modules not loaded
+ # lldb-server platform times out waiting for the gdbserver port number to be
+ # written to the pipe, yet it seems the gdbserver already has written it.
+ @expectedFailureAll(
+ archs=["aarch64"],
+ oslist=["freebsd"],
+ bugnumber="https://github.com/llvm/llvm-project/issues/84327",
+ )
+ @add_test_categories(["lldb-server"])
+ def test_platform_process_connect_with_unix_connect(self):
+ self.build()
+ import time
+
+ timestamp = int(time.time())
+ listen_url = "/tmp/listen_url_%s" % timestamp
+ port_file = "/tmp/port_file_%s" % timestamp
----------------
satyajanga wrote:
named pipes max length is 108 chars, so i selected to use /tmp dir. thank for the pointer to do it correctly.
```
struct sockaddr_un
{
__SOCKADDR_COMMON (sun_);
char sun_path[108]; /* Path name. */
};
```
https://github.com/llvm/llvm-project/pull/142875
More information about the lldb-commits
mailing list