llvm-project/llvm/lib/DebugInfo/DWARF
George Rimar a25d329b33 Recommit "[DWARF] - Make collectAddressRanges() return section index in addition to Low/High PC"
With fix of uninitialized variable.

Original commit message:

This change is intended to use for LLD in D33183. 
Problem we have in LLD when building .gdb_index is that we need to know section which address range belongs to.

Previously it was solved on LLD side by providing fake section addresses with use of llvm::LoadedObjectInfo
interface. We assigned file offsets as addressed. Then after obtaining ranges lists, for each range we had to find section ID's.
That not only was slow, but also complicated implementation and was the reason of incorrect behavior when
sections share the same offsets, like D33176 shows.

This patch makes DWARF parsers to return section index as well. That solves problem mentioned above.

Differential revision: https://reviews.llvm.org/D33184

llvm-svn: 304078
2017-05-27 18:10:23 +00:00
..
CMakeLists.txt Create DWARFVerifier.cpp and .h and move all DWARF verification code over into it. 2017-05-03 16:02:29 +00:00
DWARFAbbreviationDeclaration.cpp [DWARFv5] Update definitions to match published spec. 2017-03-06 22:20:03 +00:00
DWARFAcceleratorTable.cpp [DWARF] - Refactoring: localize handling of relocations in a single place. 2017-04-21 09:12:18 +00:00
DWARFCompileUnit.cpp [DWARFv5] Emit new unit header format. 2017-02-28 20:24:55 +00:00
DWARFContext.cpp Recommit "[DWARF] - Make collectAddressRanges() return section index in addition to Low/High PC" 2017-05-27 18:10:23 +00:00
DWARFDebugAbbrev.cpp [DebugInfo] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-02-27 23:43:14 +00:00
DWARFDebugArangeSet.cpp [DebugInfo] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-02-27 23:43:14 +00:00
DWARFDebugAranges.cpp [DWARF] - Use DWARFAddressRange struct instead of uint64_t pair for DWARFAddressRangesVector. 2017-05-16 12:30:59 +00:00
DWARFDebugFrame.cpp [DebugInfo] Fix some Include What You Use warnings; other minor fixes (NFC). 2017-03-01 01:14:23 +00:00
DWARFDebugInfoEntry.cpp [DebugInfo] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-02-27 23:43:14 +00:00
DWARFDebugLine.cpp Add line table verification to lldb-dwarfdump --verify 2017-05-02 22:48:52 +00:00
DWARFDebugLoc.cpp [DWARF] - Refactoring: localize handling of relocations in a single place. 2017-04-21 09:12:18 +00:00
DWARFDebugMacro.cpp [DebugInfo] Fix some Include What You Use warnings; other minor fixes (NFC). 2017-03-01 01:14:23 +00:00
DWARFDebugPubTable.cpp [DWARF] - Fix mistype in dump output of pub* tables. NFC. 2017-04-28 08:54:10 +00:00
DWARFDebugRangeList.cpp Recommit "[DWARF] - Make collectAddressRanges() return section index in addition to Low/High PC" 2017-05-27 18:10:23 +00:00
DWARFDie.cpp Recommit "[DWARF] - Make collectAddressRanges() return section index in addition to Low/High PC" 2017-05-27 18:10:23 +00:00
DWARFFormValue.cpp Recommit "[DWARF] - Make collectAddressRanges() return section index in addition to Low/High PC" 2017-05-27 18:10:23 +00:00
DWARFGdbIndex.cpp [llvm-dwarfdump] - Change format for .gdb_index dump. 2017-04-27 10:00:13 +00:00
DWARFTypeUnit.cpp [DWARF] Fix a parsing issue with type unit headers. 2017-05-09 19:38:38 +00:00
DWARFUnit.cpp libDebugInfo: Support symbolizing using DWP files 2017-05-23 06:48:53 +00:00
DWARFUnitIndex.cpp [DebugInfo] Fix some Include What You Use warnings; other minor fixes (NFC). 2017-03-01 01:14:23 +00:00
DWARFVerifier.cpp Revert "[Dwarf] Disable reference verification for now (PR32972)" 2017-05-09 13:05:43 +00:00
LLVMBuild.txt
SyntaxHighlighting.cpp [DebugInfo] Fix some Include What You Use warnings; other minor fixes (NFC). 2017-03-01 01:14:23 +00:00
SyntaxHighlighting.h [DebugInfo] Fix some Include What You Use warnings; other minor fixes (NFC). 2017-03-01 01:14:23 +00:00