This patch detects when an ios process runs on a macOS host and
updates the target triple with the "simulator" environment.
This is part of https://bugs.swift.org/browse/SR-11971
rdar://problem/58438125
Paths
| Differential D75696
Correctly detect iOS simulator processes. ClosedPublic Authored by aprantl on Mar 5 2020, 9:55 AM.
Details
Summary This patch detects when an ios process runs on a macOS host and This is part of https://bugs.swift.org/browse/SR-11971 rdar://problem/58438125
Diff Detail
Event TimelineComment Actions Here is a more principled variant of the patch. I pushed the logic down to debugserver, so we don't need to guess or fixup anything in LLDB.
Comment Actions Overall looks fine, Fred's comment is correct, nb you want to test it with #if TARGET_OS_OSX == 1, it's always defined either to 0 or 1.
This revision is now accepted and ready to land.Mar 5 2020, 6:27 PM Closed by commit rG59d816d88464: Correctly identify iOS simulator processes in debugserver. (authored by aprantl). · Explain WhyMar 6 2020, 9:56 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 248776 lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
lldb/test/API/functionalities/gdb_remote_client/TestIOSSimulator.py
lldb/test/API/functionalities/gdb_remote_client/TestWasm.py
lldb/test/API/functionalities/gdb_remote_client/gdbclientutils.py
lldb/tools/debugserver/source/MacOSX/MachProcess.mm
|
TestWasm.pys response to qProcessInfo is different than the default response you added to gdbclientutils.py; it should override the qProcessInfo method to call its own version.