HomePhabricator

[DWARF] Return Error from DWARFDebugArangeSet::extract().

Authored by ikudrin on Dec 24 2019, 11:05 PM.

Description

[DWARF] Return Error from DWARFDebugArangeSet::extract().

This helps to detect and report parsing errors better.
The patch follows the ideas of LLDB's patches D59370 and D59381.

It adds tests for valid and some invalid cases. More checks and
tests to come. Note that the patch fixes validation of the Length
field because the value does not include the field itself.

The existing users are updated to show the error messages.

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

Details

Committed
ikudrinJan 22 2020, 9:41 PM
Differential Revision
D71875: [DWARF] Return Error from DWARFDebugArangeSet::extract().
Parents
rG5e017c12d22a: [DWARF] Allow empty address range tables.
Branches
Unknown
Tags
Unknown