llvm-project/lldb/source/Plugins/SymbolFile
Kim-Anh Tran 68dafe40a6 [lldb] Use CompileUnit::ResolveSymbolContext in SymbolFileDWARF
SymbolFileDWARF::ResolveSymbolContext is currently unaware that in DWARF5 the primary file is specified at file index 0. As a result it misses to correctly resolve the symbol context for the primary file when DWARF5 debug data is used and the primary file is only specified at index 0.

This change makes use of CompileUnit::ResolveSymbolContext to resolve the symbol context. The ResolveSymbolContext in CompileUnit has been previously already updated to reflect changes in DWARF5
and contains a more readable version. It can resolve more, but will also do a bit more work than
SymbolFileDWARF::ResolveSymbolContext (getting the Module, and going through SymbolFileDWARF::ResolveSymbolContextForAddress), however, it's mostly directed by $resolve_scope
what will be resolved, and ensures that code is easier to maintain if there's only one path.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D98619
2021-03-22 08:44:16 +01:00
..
Breakpad [lldb] Make symbol list output from `image dump symtab` not depend on internal ordering of DenseMap 2020-09-03 10:27:19 +02:00
DWARF [lldb] Use CompileUnit::ResolveSymbolContext in SymbolFileDWARF 2021-03-22 08:44:16 +01:00
NativePDB [lldb] Unify the two CreateTypedef implementations in TypeSystemClang 2020-12-17 10:49:26 +01:00
PDB Make iteration over the DeclContext::lookup_result safe. 2021-03-17 08:59:04 +00:00
Symtab [lldb] Delete copy operations on PluginInterface class 2020-10-09 10:37:09 +02:00
CMakeLists.txt Introduce SymbolFileBreakpad and use it to fill symtab 2019-01-11 11:17:51 +00:00