[DataExtractor] Improve error message when we run off the end of the buffer
authorPavel Labath <pavel@labath.sk>
Thu, 27 Feb 2020 15:22:12 +0000 (16:22 +0100)
committerPavel Labath <pavel@labath.sk>
Fri, 28 Feb 2020 08:02:33 +0000 (09:02 +0100)
commit5754a61e57efaa9bec8ad8ea8589a73b27edb0a8
tree7bd6e8d5d7af09a48a2a0c84653905c70342f008
parentc3595d1069277b4ab0df49d7139b6f1bbc94f21c
[DataExtractor] Improve error message when we run off the end of the buffer

Summary: Include the offset at which this happened.

Reviewers: dblaikie, jhenderson

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D75265
llvm/lib/Support/DataExtractor.cpp
llvm/test/DebugInfo/X86/dwarfdump-debug-loc-error-cases2.s
llvm/test/DebugInfo/X86/dwarfdump-debug-loclists-error-cases2.s
llvm/unittests/DebugInfo/DWARF/DWARFDataExtractorTest.cpp
llvm/unittests/DebugInfo/DWARF/DWARFDieTest.cpp