llvm-project/lldb/unittests/SymbolFile/DWARF
Greg Clayton a2154b1951 Cache the manual DWARF index out to the LLDB cache directory when the LLDB index cache is enabled.
This patch add the ability to cache the manual DWARF indexing results to disk for faster subsequent debug sessions. Manual DWARF indexing is time consuming and causes all DWARF to be fully parsed and indexed each time you debug a binary that doesn't have an acceptable accelerator table. Acceptable accelerator tables include .debug_names in DWARF5 or Apple accelerator tables.

This patch breaks up testing by testing all of the encoding and decoding of required C++ objects in a gtest unit test, and then has a test to verify the debug info cache is generated correctly.

This patch also adds the ability to track when a symbol table or DWARF index is loaded or saved to the cache in the "statistics dump" command. This is essential to know in statistics as it can help explain why a debug session was slower or faster than expected.

Reviewed By: labath, wallace

Differential Revision: https://reviews.llvm.org/D115951
2021-12-28 11:00:28 -08:00
..
Inputs
CMakeLists.txt Cache the manual DWARF index out to the LLDB cache directory when the LLDB index cache is enabled. 2021-12-28 11:00:28 -08:00
DWARFASTParserClangTests.cpp [lldb] Add support for DW_AT_calling_convention to the DWARF parser 2021-10-11 13:44:10 +02:00
DWARFDIETest.cpp [lldb][NFC] Allow range-based for loops over DWARFDIE's children 2021-07-22 15:03:30 +02:00
DWARFIndexCachingTest.cpp Cache the manual DWARF index out to the LLDB cache directory when the LLDB index cache is enabled. 2021-12-28 11:00:28 -08:00
DWARFUnitTest.cpp Recognize the Swift compiler in DW_AT_producer 2021-10-07 13:54:28 -07:00
SymbolFileDWARFTests.cpp Remove ConstString from Language, LanguageRuntime, SystemRuntime and SymbolFile plugin names 2021-10-27 08:25:44 +02:00
XcodeSDKModuleTests.cpp [lldb][NFC] Use SubsystemRAII in XcodeSDKModuleTests 2021-06-22 13:41:01 +02:00