llvm/lib/DebugInfo/DWARF
Keno Fischer 23125c500f [DWARF] Fix a bug in line info handling
This fixes a bug in the line info handling in the dwarf code, based on a
problem I when implementing RelocVisitor support for MachO.
Since addr+size will give the first address past the end of the function,
we need to back up one line table entry. Fix this by looking up the
end_addr-1, which is the last address in the range. Note that this also
removes a duplicate output from the llvm-rtdyld line table dump. The
relevant line is the end_sequence one in the line table and has an offset
of the first address part the end of the range and hence should not be
included.
Also factor out the common functionality into a separate function.
This comes up on MachO much more than on ELF, since MachO
doesn't store the symbol size separately, hence making
said situation always occur.

Differential Revision: http://reviews.llvm.org/D9925

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238699 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-31 23:37:04 +00:00
..
CMakeLists.txt Move DIContext.h to common DebugInfo location. 2015-04-23 17:37:47 +00:00
DWARFAbbreviationDeclaration.cpp
DWARFAcceleratorTable.cpp
DWARFCompileUnit.cpp [DWARF parser] Make DWARF parser more robust against missing compile/type units. 2015-05-19 21:54:32 +00:00
DWARFContext.cpp Replace push_back(Constructor(foo)) with emplace_back(foo) for non-trivial types 2015-05-29 19:43:39 +00:00
DWARFDebugAbbrev.cpp
DWARFDebugAranges.cpp
DWARFDebugArangeSet.cpp
DWARFDebugFrame.cpp [DWARF] Add CIE header fields address_size and segment_size when generating dwarf-4 2015-05-12 15:25:08 +00:00
DWARFDebugInfoEntry.cpp [DWARF parser] Add basic support for DWZ DWARF multifile extensions. 2015-05-19 20:29:28 +00:00
DWARFDebugLine.cpp [DWARF] Fix a bug in line info handling 2015-05-31 23:37:04 +00:00
DWARFDebugLoc.cpp Replace std::copy with a back inserter with vector append where feasible 2015-02-28 10:11:12 +00:00
DWARFDebugRangeList.cpp
DWARFFormValue.cpp Refactor: Simplify boolean conditional return statements in llvm/lib/DebugInfo/DWARF 2015-05-25 13:28:03 +00:00
DWARFTypeUnit.cpp [DWARF parser] Make DWARF parser more robust against missing compile/type units. 2015-05-19 21:54:32 +00:00
DWARFUnit.cpp Refactor: Simplify boolean conditional return statements in llvm/lib/DebugInfo/DWARF 2015-05-25 13:28:03 +00:00
LLVMBuild.txt
Makefile
module.modulemap
SyntaxHighlighting.cpp
SyntaxHighlighting.h