diff options
author | James Henderson <jh7370@my.bristol.ac.uk> | 2020-01-09 12:20:18 +0000 |
---|---|---|
committer | James Henderson <jh7370@my.bristol.ac.uk> | 2020-01-10 14:59:58 +0000 |
commit | 6e3ca962fafb3d2a31279c49f0cde60eb626a002 (patch) | |
tree | 5eff6c71df6deb9d41c20efcf02c94c47c4476b8 /llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp | |
parent | b19c0810e56b552d31247dcff081643799fd97fb (diff) | |
download | bcm5719-llvm-6e3ca962fafb3d2a31279c49f0cde60eb626a002.tar.gz bcm5719-llvm-6e3ca962fafb3d2a31279c49f0cde60eb626a002.zip |
[DebugInfo] Improve error message text
Unlike most of our errors in the debug line parser, the "no end of
sequence" message was missing any reference to which line table it
refererred to. This change adds the offset to this message.
Reviewed by: dblaikie
Differential Revision: https://reviews.llvm.org/D72443
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp index 8e7ce58957d..73480cecb98 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp @@ -883,9 +883,11 @@ Error DWARFDebugLine::LineTable::parse( } if (!State.Sequence.Empty) - RecoverableErrorCallback( - createStringError(errc::illegal_byte_sequence, - "last sequence in debug line table is not terminated!")); + RecoverableErrorCallback(createStringError( + errc::illegal_byte_sequence, + "last sequence in debug line table at offset 0x%8.8" PRIx64 + " is not terminated", + DebugLineOffset)); // Sort all sequences so that address lookup will work faster. if (!Sequences.empty()) { |