aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@fb.com>2024-12-03 10:09:40 -0800
committerGitHub <noreply@github.com>2024-12-03 10:09:40 -0800
commitf44bee78c471df8f0a258c656a921a082d7e836a (patch)
tree3cacb0a786d87f2fa897d6a6e0800bb44c4ba059 /lldb/test/API/python_api
parentce416a073be6da06be7fd2d427b896b380fb3877 (diff)
downloadllvm-f44bee78c471df8f0a258c656a921a082d7e836a.zip
llvm-f44bee78c471df8f0a258c656a921a082d7e836a.tar.gz
llvm-f44bee78c471df8f0a258c656a921a082d7e836a.tar.bz2
[lldb] Fix the DWARF index cache when index is partial. (#118390)
The ManualDWARFIndex class can create a index cache if the LLDB index cache is enabled. This used to save the index to the same file, regardless of wether the cache was a full index (no .debug_names) or a partial index (have .debug_names, but not all .o files were had .debug_names). So we could end up saving an index cache that was partial, and then later load that partial index as if it were a full index if the user set the 'settings set plugin.symbol-file.dwarf.ignore-file-indexes true'. This would cause us to ignore the .debug_names section, and if the index cache was enabled, we could end up loading the partial index as if it were a full DWARF index. This patch detects when the ManualDWARFIndex is being used with .debug_names, and saves out a cache file with a suffix of "-full" or "-partial" to avoid this issue.
Diffstat (limited to 'lldb/test/API/python_api')
0 files changed, 0 insertions, 0 deletions