[Lldb-commits] [PATCH] Support for truncate/append on log files

Pavel Labath labath at google.com
Thu Mar 19 10:31:35 PDT 2015


Hi clayborg,

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.

http://reviews.llvm.org/D8450

Files:
  include/lldb/Core/Log.h
  include/lldb/Core/StreamFile.h
  source/Commands/CommandObjectLog.cpp
  source/Core/Debugger.cpp
  source/Core/StreamFile.cpp
  test/logging/TestLogging.py

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8450.22277.patch
Type: text/x-patch
Size: 6276 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150319/904022fa/attachment.bin>


More information about the lldb-commits mailing list