llvm-symbolizer: Fix bug related to TUs interfering with symbolizing
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 11 Sep 2018 02:04:45 +0000 (02:04 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 11 Sep 2018 02:04:45 +0000 (02:04 +0000)
commit4ec5a9159bc9e4b98010b3688a0c79a4a8d75402
treeb6ba0f929181a1e199a45128a1c57b40012ed9fd
parentc7d281905b75686f09c22b466d05a715d825d8c1
llvm-symbolizer: Fix bug related to TUs interfering with symbolizing

With the merge of TUs and CUs into a single container, some code that
relied on the CU range having an ordered range of contiguous addresses
(for locating a CU at a given offset) broke. But the units from
debug_info (currently only CUs, but CUs and TUs in DWARFv5) are in a
contiguous sub-range of that container - searching only through that
subrange is still valid & so do that.

llvm-svn: 341889
llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
llvm/test/DebugInfo/Inputs/llvm-symbolizer-tu.elf-x86-64 [new file with mode: 0644]
llvm/test/DebugInfo/llvm-symbolizer-tu.test [new file with mode: 0644]