[Lldb-commits] [PATCH] D110878: [lldb] Add a gdb_remote_client test for connecting to pty [WIP]
Michał Górny via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 1 01:41:23 PDT 2021
mgorny added inline comments.
================
Comment at: lldb/test/API/functionalities/gdb_remote_client/gdbclientutils.py:560-564
+ def get_connect_address(self):
+ libc = ctypes.CDLL(None)
+ libc.ptsname.argtypes = (ctypes.c_int,)
+ libc.ptsname.restype = ctypes.c_char_p
+ return libc.ptsname(self._master).decode()
----------------
labath wrote:
> I'm wondering if we should have an overload of SBTarget::ConnectRemote that accepts a file descriptor (or SBFile, SBCommunication, ...).
>
> This would make the socket case easier as well, and it seems like it could be generally useful.
I'm not saying 'no' but I think we'd still want to explicitly test `process connect` command somewhere.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110878/new/
https://reviews.llvm.org/D110878
More information about the lldb-commits
mailing list