llvm-capstone/lldb/lit
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
..
Breakpoint Fix flakiness in lldb lit test 2019-05-13 09:48:26 +00:00
BuildScript [lldb] [lit] Pass --mode=compile to fix compiler-full-path.test 2019-05-15 10:48:55 +00:00
Commands [lldb] [lit] Skip more tests when Python is unavailable 2019-05-19 09:27:52 +00:00
Driver Reapply "Fix a crash in option parsing." 2019-06-25 00:55:27 +00:00
ExecControl/StopHook Fix file names in file headers. NFC 2019-05-13 04:42:32 +00:00
Expr
Heap
helper [lit] Deduplicate logic in toolchain.py 2019-06-21 23:12:25 +00:00
Minidump
Modules Recognise debug_types.dwo as a debug info section 2019-06-12 11:42:42 +00:00
Process Disable TestEnvironment on Windows 2019-05-13 22:02:09 +00:00
Python
Quit
Register [lldb] [lit] Fix whitespace in matches for remaining AVX512 tests 2019-05-15 03:32:47 +00:00
Reproducer [Reproducers] Make reproducer relocatable 2019-06-18 16:20:17 +00:00
Settings [FormatEntity] Ignore ASCII escape sequences when colors are disabled. 2019-05-31 16:27:44 +00:00
Suite
SymbolFile DWARF: Add support for type units+split dwarf combo 2019-06-25 06:59:48 +00:00
tools [lldb] [test] Extend D55859 symbols.enable-external-lookup=false for more testcases 2019-06-17 14:46:17 +00:00
Unit
Unwind XFAIL prefer-debug-over-eh-frame.test on darwin 2019-05-27 13:43:01 +00:00
Watchpoint
CMakeLists.txt [lit] Make lit-lldb-init configurable by CMake 2019-06-21 23:12:22 +00:00
lit-lldb-init.in [lit] Make lit-lldb-init configurable by CMake 2019-06-21 23:12:22 +00:00
lit.cfg.py [lldb] [lit] Driver/TestConvenienceVariables.test requires Python 2019-05-19 06:05:31 +00:00
lit.site.cfg.py.in Make lldb-mi optional and change how we deal with missing tools in lit 2019-05-03 20:33:58 +00:00