This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Replace llvm::writeFileAtomically with llvm::writeToOutput API.
ClosedPublic

Authored by hokein on Jul 3 2023, 2:29 AM.

Diff Detail

Event Timeline

hokein created this revision.Jul 3 2023, 2:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 3 2023, 2:29 AM
hokein requested review of this revision.Jul 3 2023, 2:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 3 2023, 2:29 AM
avl added inline comments.Jul 3 2023, 5:41 AM
lldb/tools/lldb-server/lldb-platform.cpp
105–113

probably, it would be better to add error text here?

return Status("Failed to atomically write file %s: %s",
              file_spec.GetPath().c_str(), toString(std::move(Err)).c_str());
hokein updated this revision to Diff 536735.Jul 3 2023, 6:04 AM
hokein marked an inline comment as done.

address a comment.

lldb/tools/lldb-server/lldb-platform.cpp
105–113

good idea.

avl added a comment.Jul 3 2023, 9:24 AM

this LGTM. thanks! Please, wait for approve from Jonas. I think someone from lldb needs to check whether new error reporting is OK.

This revision is now accepted and ready to land.Jul 3 2023, 2:22 PM

thanks for the review!