[lldb/DWARF] Add support for location lists in package files
authorPavel Labath <pavel@labath.sk>
Tue, 18 Feb 2020 12:33:59 +0000 (13:33 +0100)
committerPavel Labath <pavel@labath.sk>
Wed, 19 Feb 2020 13:33:58 +0000 (14:33 +0100)
commit8131cb6e18931e4cb642a1dfaa7c219c38656442
treec1cc9a7a3245d2f025aba25dbe41fbe82cdfca30
parent9746b3ae07d7320d0cbea83bb9aa2fd73c542c25
[lldb/DWARF] Add support for location lists in package files

The only thing needed was to account for the offset from the
debug_cu_index section when searching for the location list.

This patch also fixes a bug in the Module::ParseAllDebugSymbols
function, which meant that we would only parse the variables of the
first compile unit in the module. This function is only used from
lldb-test, so this does not fix any real issue, besides preventing me
from writing a test for this patch.
lldb/source/Core/Module.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
lldb/test/Shell/SymbolFile/DWARF/dwp.s