This is an archive of the discontinued LLVM Phabricator instance.

[DWARF] Fix handling of extended line-number opcodes
ClosedPublic

Authored by probinson on Nov 17 2017, 2:42 PM.

Details

Summary

Tripped over this while writing a different test (and doing the line-number program incorrectly).
There are UI aspects here that I thought people might want to express an opinion about.

This one doesn't depend on others of my in-flight patches, although it's obviously in the same area.

Diff Detail

Event Timeline

probinson created this revision.Nov 17 2017, 2:42 PM
JDevlieghere added inline comments.Nov 19 2017, 11:22 AM
llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
528

Would it be useful to print the expected and actual length? Can you add a test for this?

probinson updated this revision to Diff 123697.Nov 20 2017, 5:23 PM

Print the expected and actual lengths for bad opcodes.
Add a second line-table with a test for this case.

probinson marked an inline comment as done.Nov 20 2017, 5:23 PM
This revision is now accepted and ready to land.Nov 21 2017, 7:39 AM
This revision was automatically updated to reflect the committed changes.