summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2020-03-24 15:49:54 +0100
committerPavel Labath <pavel@labath.sk>2020-04-21 16:55:36 +0200
commitc475856d0532995a74206e5f4bd5ebf80ce85750 (patch)
tree8cdf59998d526ed484ec6b0041f6e0a157248878 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
parent585a0af3790a171cd93d94beeefba4660d370391 (diff)
[DWARFDebugLine] Check for errors when parsing v2 file/dir lists
Summary: Without this we could silently accept an invalid prologue because the default DataExtractor behavior is to return an empty string when reaching the end of file. And empty string is also used to terminate these lists. This makes the parsing code slightly more complicated, but this complexity will go away once the parser starts working with truncating data extractors. The reason I am doing it this way is because without this, the truncation would regress the quality of error messages (right now, we produce bad error messages only near EOF, but truncation would make everything behave as if it was near EOF). Reviewers: dblaikie, probinson, jhenderson Subscribers: hiraditya, MaskRay, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77555
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions