Improve the detection of iOS/tvOS/watchOS simulator binaries in
authorAdrian Prantl <aprantl@apple.com>
Tue, 30 Jun 2020 17:26:25 +0000 (10:26 -0700)
committerAdrian Prantl <aprantl@apple.com>
Tue, 30 Jun 2020 18:22:03 +0000 (11:22 -0700)
commit0da0437b2afbd8ebef6b11f114cca33b118e7639
tree0df016d762cf5d9a3c96564011ce0f89f7dc61a3
parentab35ba5742216b3aea8421a66b480405377bf8f1
Improve the detection of iOS/tvOS/watchOS simulator binaries in
debugserver and lldb

This patch improves the heuristics for correctly identifying simulator binaries on Darwin and adds support for simulators running on Apple Silicon.

rdar://problem/64046344

Differential Revision: https://reviews.llvm.org/D82616
lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp
lldb/test/API/macosx/simulator/TestSimulatorPlatform.py
lldb/tools/debugserver/source/DNB.cpp
lldb/tools/debugserver/source/MacOSX/MachProcess.h
lldb/tools/debugserver/source/MacOSX/MachProcess.mm