[lldb] Test parsing the symtab with indirect symbols from the shared cacheThis patch adds a test for b0dc2fae6025. That commit fixed a bug wherewe could increment the indirect symbol offset every
[lldb] Test parsing the symtab with indirect symbols from the shared cacheThis patch adds a test for b0dc2fae6025. That commit fixed a bug wherewe could increment the indirect symbol offset every time we parsed thesymbol table.
show more ...
[lldb/ObjectFileMachO] Fetch shared cache images from our own shared cacheSummary:On macOS 11, the libraries that have been integrated in the systemshared cache are not present on the filesystem
[lldb/ObjectFileMachO] Fetch shared cache images from our own shared cacheSummary:On macOS 11, the libraries that have been integrated in the systemshared cache are not present on the filesystem anymore. LLDB wasusing those files to get access to the symbols of those libraries.LLDB can get the images from the target process memory though.This has 2 consequences: - LLDB cannot load the images before the process starts, reporting an error if someone tries to break on a system symbol. - Loading the symbols by downloading the data from the inferior is super slow. It takes tens of seconds at the start of the debug session to populate the Module list.To fix this, we can use the library images LLDB has in its ownmapping of the shared cache. Shared cache images are somewhatspecial as their LINKEDIT segment is moved to the end of the cacheand thus the images are not contiguous in memory. All of this canhidden in ObjectFileMachO.This patch fixes a number of test failures on macOS 11 due to thefirst problem described above and adds some specific unittestingfor the new SharedCache Host utilities.Reviewers: jasonmolenda, labathSubscribers: llvm-commits, lldb-commitsTags: #lldb, #llvmDifferential Revision: https://reviews.llvm.org/D83023