summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorJean Perier <jperier@nvidia.com>2021-09-10 13:07:13 +0200
committerJean Perier <jperier@nvidia.com>2021-09-10 13:08:02 +0200
commit05b4e49a17f5e997c0ccf4086dc0d2b8cec7e263 (patch)
tree8c4f99de9924cf5540800b205c8f4c7727e8cbe6 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parentcaf508d7124353522e7604dbfea36b429469bd39 (diff)
[flang] Signal EOR in non advancing IO and move to next record
When an end of record is met in non advancing IO: - Set IOSTAT if present according to 12.11.4 (5). - Position the file to the next record (12.11.4 (4)). The previous code was only signaling EOR for fixed record length IO. Reading at 12.11.4, I do not find the rational for this condition, so I removed it. It also does not seem the presence of padding should prevent the EOR signaling. The positionning to the next record was block when EOR is signaling in FinishReadingRecord because ErrorHandler.isError() is true in this case. EOR in input is not an error, but I am not confident to modify ErrorHandler.isError() to cover that. However, In FinishReadingRecord, the code should not bail if the error is simply an end of record. I did not check the SIZE requirements here because GetSize runtime is not yet implemented. Differential Revision: https://reviews.llvm.org/D109505
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions