This is an archive of the discontinued LLVM Phabricator instance.

Support for truncate/append on log files
ClosedPublic

Authored by labath on Mar 19 2015, 10:31 AM.

Details

Summary

Presently, if a log file already exists, lldb simply starts overwriting bits of it, without
truncating or anything. This patch makes it use eFileOptionFileTruncate by default. It also adds
an --append option, which will append to the file without truncating. A test is included.

Diff Detail

Repository
rL LLVM

Event Timeline

labath updated this revision to Diff 22277.Mar 19 2015, 10:31 AM
labath retitled this revision from to Support for truncate/append on log files.
labath updated this object.
labath edited the test plan for this revision. (Show Details)
labath added a reviewer: clayborg.
labath added a subscriber: Unknown Object (MLST).
clayborg accepted this revision.Mar 19 2015, 11:33 AM
clayborg edited edge metadata.

lgtm

This revision is now accepted and ready to land.Mar 19 2015, 11:33 AM
This revision was automatically updated to reflect the committed changes.