llvm-project/lldb
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
..
bindings [lldb] Ignore linkage diagnostic for LLDBSwigPythonBreakpointCallbackFunction (NFC) 2021-03-10 14:15:54 -08:00
cmake [lldb] Remove XPCServices symlinking 2021-03-01 11:23:46 -08:00
docs [lldb/Docs] Update docs with new buildbot URLs 2021-03-17 20:09:03 +01:00
examples [lldb] Update crashlog script for JSON changes 2021-03-09 10:44:34 -08:00
include/lldb [lldb] Call os_log_fault on lldb_assert 2021-03-19 14:23:50 -07:00
packages/Python [lldb-vscode] Handle request_evaluate's context attribute 2021-03-15 15:09:23 -07:00
resources [lldb] Remove stale LLDB-Info.plist 2021-01-08 10:12:16 -08:00
scripts Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
source [lldb] Use CompileUnit::ResolveSymbolContext in SymbolFileDWARF 2021-03-22 08:44:16 +01:00
test [lldb] Use CompileUnit::ResolveSymbolContext in SymbolFileDWARF 2021-03-22 08:44:16 +01:00
third_party/Python/module Revert "[lldb] temporary commit to see why a test is failing only on lldb-aarch64-ubuntu" 2020-08-05 11:55:02 +02:00
tools [lldb] Call os_log_fault on lldb_assert 2021-03-19 14:23:50 -07:00
unittests Revert "[lldb] Make the API, Shell and Unit tests independent lit test suites" 2021-03-19 17:57:26 -07:00
utils Reapply "[lldb/test] Automatically find debug servers to test" 2021-02-21 20:47:47 +01:00
.clang-format
.clang-tidy [lldb] Add .clang-tidy with customization to disable readability-identifier-naming 2020-03-09 12:50:28 -07:00
.gitignore
CMakeLists.txt [CMake] Remove dead code setting policies to NEW 2021-01-19 17:19:36 +02:00
CODE_OWNERS.txt
LICENSE.TXT
use_lldb_suite_root.py