llvm-project/lldb/lit/SymbolFile
Pavel Labath fcad3bc415 DWARF: Add support for type units+split dwarf combo
Summary:
With the last round of refactors, supporting type units in dwo files
becomes almost trivial. This patch contains a couple of small fixes,
which taken as a whole make type units work in the split dwarf scenario
(both DWARF4 and DWARF5):
- DWARFContext: make sure we actually read the debug_types.dwo section
- DWARFUnit: set string offsets base on all units in the dwo file, not
  just the main CU
- ManualDWARFIndex: index all units in the file
- SymbolFileDWARFDwo: Search for the single compile unit in the file, as
  we can no longer assume it will be the first one

The last part makes it obvious that there is still some work to be done
here, namely that we do not support dwo files with multiple compile
units. That is something that should be easier after the DIERef
refactors, but it still requires more work.

Tests are added for the type units+split dwarf + dwarf4/5 scenarios, as
well as a test that checks we behave reasonably in the presence of dwo
files with multiple CUs.

Reviewers: clayborg, JDevlieghere, aprantl

Subscribers: arphaman, lldb-commits

Differential Revision: https://reviews.llvm.org/D63643

llvm-svn: 364274
2019-06-25 06:59:48 +00:00
..
Breakpad [FuncUnwinders] Use "symbol file" unwind plans for unwinding 2019-05-24 09:54:39 +00:00
DWARF DWARF: Add support for type units+split dwarf combo 2019-06-25 06:59:48 +00:00
Inputs [lldb] [lit/SymbolFile] Avoid -nostdlib in target-symbols-add-unwind.test 2019-04-13 09:49:39 +00:00
NativePDB [NativePDB] Fix tests after r360569 2019-05-13 15:06:13 +00:00
PDB [NativePDB] Add anonymous namespaces support 2019-04-22 07:14:40 +00:00
target-symbols-add-unwind.test [lldb] [lit/SymbolFile] Avoid -nostdlib in target-symbols-add-unwind.test 2019-04-13 09:49:39 +00:00