llvm-project/lldb/source
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
..
API [lldb/API] Add CommandInterpreter::{Get,Set}PrintErrors to SBAPI (NFC) 2021-03-05 19:33:33 +01:00
Breakpoint Revert "Make the stop-on-sharedlibrary-events setting work." 2021-03-19 12:38:41 -07:00
Commands [lldb] Correct unsigned decimal argument check in memory write 2021-03-17 16:08:54 +00:00
Core [lldb][gui] Fix uninitialized variable in SourceFileWindowDelegate. 2021-03-09 10:57:00 -08:00
DataFormatters [lldb][NFC] Give CompilerType's IsArrayType/IsVectorType/IsBlockPointerType out-parameters default values 2021-02-23 11:15:31 +01:00
Expression [lldb] Fix error message in IRInterpreter 2021-03-08 16:46:38 +01:00
Host Migrate to llvm::unique_function instead of static member functions for callbacks 2021-03-02 16:13:54 -08:00
Initialization [lldb] Fix shared library directory computation on windows 2021-02-18 15:37:52 +01:00
Interpreter [lldb/Interpreter] Add `interpreter.repeat-previous-command` setting 2021-03-05 19:33:32 +01:00
Plugins [lldb] Use CompileUnit::ResolveSymbolContext in SymbolFileDWARF 2021-03-22 08:44:16 +01:00
Symbol [lldb] Use CompileUnit::ResolveSymbolContext in SymbolFileDWARF 2021-03-22 08:44:16 +01:00
Target Revert "Make the stop-on-sharedlibrary-events setting work." 2021-03-19 12:38:41 -07:00
Utility [lldb] Call os_log_fault on lldb_assert 2021-03-19 14:23:50 -07:00
CMakeLists.txt Remove HAVE_VCS_VERSION_INC, not needed 2020-10-29 13:09:05 -07:00
lldb.cpp [lldb] Reinstate support for LLDB_VERSION_STRING 2021-02-22 16:56:00 -08:00