OSDN Git Service

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)
commit2da88b084cfd10926949ed706b6fca244853ac07
treecaf87996368514c90725839fab01dfa6d614c680
parentb59662095b7392220d3c5088656fff190b2c70cc
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341889 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DWARF/DWARFUnit.h
lib/DebugInfo/DWARF/DWARFUnit.cpp
test/DebugInfo/Inputs/llvm-symbolizer-tu.elf-x86-64 [new file with mode: 0644]
test/DebugInfo/llvm-symbolizer-tu.test [new file with mode: 0644]