llvm-project/lldb
Jonas Devlieghere ecda408178
[lldb] Read from the Rosetta shared cache with Xcode 14
Xcode 14 no longer puts the Rosetta expanded shared cache in a directory
named "16.0". Instead, it includes the real version number (e.g. 13.0),
the build string and the architecture, similar to the device support
directory names for iOS, tvOS and watchOS.

Currently, when there are multiple directories, we might end up picking
the wrong one in GetSDKDirectoryForCurrentOSVersion. The problem is that
without the build string we have no way to differentiate between
multiple directories with the same version number. This patch fixes the
problem by using GetOSBuildString which, as the name implies, returns
the build string if known.

This also adds a test for Rosetta debugging on Apple Silicon. Depending
on whether the Rosetta expanded shared cache is present, the test
ensures that there is or isn't a diagnostic about reading out of memory.

rdar://97576121

Differential revision: https://reviews.llvm.org/D130540
2022-07-27 15:26:46 -07:00
..
bindings
cmake
docs
examples
include/lldb [LLDB][NFC][Reliability] Fix uninitialized variables from Coverity scan. Part 3 2022-07-27 10:39:49 -07:00
packages/Python/lldbsuite [lldb] Read from the Rosetta shared cache with Xcode 14 2022-07-27 15:26:46 -07:00
resources
scripts
source [lldb] Read from the Rosetta shared cache with Xcode 14 2022-07-27 15:26:46 -07:00
test [lldb] Read from the Rosetta shared cache with Xcode 14 2022-07-27 15:26:46 -07:00
third_party/Python/module
tools
unittests [lldb] Always use APFloat for FP dumping 2022-07-27 14:30:35 +02:00
utils
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt
CODE_OWNERS.txt
LICENSE.TXT
use_lldb_suite_root.py