Correctly identify iOS simulator processes in debugserver.
authorAdrian Prantl <aprantl@apple.com>
Thu, 5 Mar 2020 17:51:40 +0000 (09:51 -0800)
committerAdrian Prantl <aprantl@apple.com>
Fri, 6 Mar 2020 17:42:05 +0000 (09:42 -0800)
commit59d816d88464e93a89e0d9c80c8855ab1f453541
treeaab3ee79030c33fe4ae572f24e683b387c372058
parent865456d589e093582acaafd17d58ad1c0cce66af
Correctly identify iOS simulator processes in debugserver.

Starting with iOS 13 simulator binaries are identified with an
explicit platform in the new LC_BUILD_VERSION load command.

On older deployment targets using the LC_VERSION_MIN load commands,
this patch detects when an ios process runs on a macOS host and
updates the target triple with the "simulator" environment
accordingly.

This is part of https://bugs.swift.org/browse/SR-11971

rdar://problem/58438125

Differential Revision: https://reviews.llvm.org/D75696
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
lldb/test/API/functionalities/gdb_remote_client/TestIOSSimulator.py [new file with mode: 0644]
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