llvm-capstone/lldb/test
Alex Langford 28fb39f16a [lldb] Adjust for changes in objc runtime
The Objective-C runtime and the shared cache has changed slightly.
Given a class_ro_t, the baseMethods ivar is now a pointer union and may
either be a method_list_t pointer or a pointer to a relative list of
lists. The entries of this relative list of lists are indexes that refer
to a specific image in the shared cache in addition to a pointer offset
to find the accompanying method_list_t. We have to go over each of these
entries, parse it, and then if the relevant image is loaded in the
process, we add those methods to the relevant clang Decl.

In order to determine if an image is loaded, the Objective-C runtime
exposes a symbol that lets us determine if a particular image is loaded.
We maintain a data structure SharedCacheImageHeaders to keep track of
that information.

There is a known issue where if an image is loaded after we create a
Decl for a class, the Decl will not have the relevant methods from that
image (i.e. for Categories).

rdar://107957209

Differential Revision: https://reviews.llvm.org/D153597
2023-06-22 16:42:22 -07:00
..
API [lldb] Adjust for changes in objc runtime 2023-06-22 16:42:22 -07:00
Shell [lldb] Make the test for D153043 linux-only 2023-06-20 07:57:47 +02:00
Unit [NFC][Py Reformat] Reformat python files in lldb 2023-05-25 12:54:09 -07:00
CMakeLists.txt [lldb] Remove reproducer test suite (NFC) 2023-05-26 09:33:40 -07:00
lit.cfg.py [NFC][Py Reformat] Reformat python files in lldb 2023-05-25 12:54:09 -07:00
lit.site.cfg.py.in Use lit_config.substitute instead of foo % lit_config.params everywhere 2022-03-16 09:57:41 +01:00