mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-27 21:50:29 +00:00
91fd77e058
Summary: While examining this class for possible use in lldb, I noticed two things: - it spits out parsing errors directly to stderr - the loclists parser can incorrectly return valid location lists when parsing malformed (truncated) data I improve the stderr situation by making the parseOneLocationList functions return Expected<T>s. The errors are still dumped to stderr by their callers, so this is only a partial fix, but it is enough for my use case, as I intend to parse the locations lists one by one. I fix the behavior in the truncated scenario by using the newly introduced DataExtractor Cursor API. I also add tests for handling the error cases, as they currently have no coverage. Reviewers: dblaikie, JDevlieghere, probinson Subscribers: lldb-commits, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D63591 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370363 91177308-0d34-0410-b5e6-96231b3b80d8 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
DWARFAbbreviationDeclaration.cpp | ||
DWARFAcceleratorTable.cpp | ||
DWARFAddressRange.cpp | ||
DWARFCompileUnit.cpp | ||
DWARFContext.cpp | ||
DWARFDataExtractor.cpp | ||
DWARFDebugAbbrev.cpp | ||
DWARFDebugAddr.cpp | ||
DWARFDebugAranges.cpp | ||
DWARFDebugArangeSet.cpp | ||
DWARFDebugFrame.cpp | ||
DWARFDebugInfoEntry.cpp | ||
DWARFDebugLine.cpp | ||
DWARFDebugLoc.cpp | ||
DWARFDebugMacro.cpp | ||
DWARFDebugPubTable.cpp | ||
DWARFDebugRangeList.cpp | ||
DWARFDebugRnglists.cpp | ||
DWARFDie.cpp | ||
DWARFExpression.cpp | ||
DWARFFormValue.cpp | ||
DWARFGdbIndex.cpp | ||
DWARFListTable.cpp | ||
DWARFTypeUnit.cpp | ||
DWARFUnit.cpp | ||
DWARFUnitIndex.cpp | ||
DWARFVerifier.cpp | ||
LLVMBuild.txt |