llvm-project/lldb/lit/SymbolFile
Pavel Labath a3bdcdf714 Fix line table resolution near the end of a section
Summary:
lld r367537 changed the way the linker organizes sections and segments.
This exposed an lldb bug and caused some tests to fail.

In all of the failing tests the root cause was the same -- when we were
trying to resolve the last address in the line_table section, we failed
because it pointed past the end of the section.

This patch changes the line table address resolution code to back up the
address by one for end-of-sequence entries. This ensures the address
still points inside a section/module even if the line table sequence
ends at the very end of a section.

It also reverts the linker flags which were added to the failing tests
to restore previous behavior.

Reviewers: clayborg, jingham

Subscribers: mgorny, MaskRay, lldb-commits

Differential Revision: https://reviews.llvm.org/D65647

llvm-svn: 367983
2019-08-06 06:52:05 +00:00
..
Breakpad [FuncUnwinders] Use "symbol file" unwind plans for unwinding 2019-05-24 09:54:39 +00:00
DWARF Fix line table resolution near the end of a section 2019-08-06 06:52:05 +00:00
Inputs Fix lookup of symbols at the same address with no size vs. size 2019-07-01 14:31:26 +00:00
NativePDB Changing representation of .cv_def_range directives in Codeview debug info assembly format for better readability 2019-08-05 14:16:58 +00:00
PDB Fix PDB tests after r367820 2019-08-05 11:29:01 +00:00
sizeless-symbol.test Fix lookup of symbols at the same address with no size vs. size 2019-07-01 14:31:26 +00:00
target-symbols-add-unwind.test [lldb] [lit/SymbolFile] Avoid -nostdlib in target-symbols-add-unwind.test 2019-04-13 09:49:39 +00:00