[nfc] [lldb] Assertions for D106270 - [DWARF5] Fix offset check when using .debug_names
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 10 Aug 2021 18:39:40 +0000 (20:39 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 10 Aug 2021 18:43:24 +0000 (20:43 +0200)
commitf3932b9a0b0b7787ccd3572bad134acc4146acaa
treefc9683c0561d71dbde126fd6efbb7a3a1660f2a1
parentb267d3ce8defa092600bda717ff18440d002f316
[nfc] [lldb] Assertions for D106270 - [DWARF5] Fix offset check when using .debug_names

Skeleton vs. DWO units mismatch has been fixed in D106270. As they both
have type DWARFUnit it is a bit difficult to debug. So it is better to
make it safe against future changes.

Reviewed By: kimanh, clayborg

Differential Revision: https://reviews.llvm.org/D107659
lldb/source/Plugins/SymbolFile/DWARF/AppleDWARFIndex.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFIndex.h
lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp
lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp
lldb/source/Plugins/SymbolFile/DWARF/NameToDIE.cpp
lldb/source/Plugins/SymbolFile/DWARF/NameToDIE.h
lldb/test/Shell/SymbolFile/DWARF/x86/Inputs/find-variable-file-3.cpp [new file with mode: 0644]
lldb/test/Shell/SymbolFile/DWARF/x86/find-variable-file.cpp