Author: jdevlieghere Date: Wed May 8 14:07:19 2019 New Revision: 360286 URL: http://llvm.org/viewvc/llvm-project?rev=360286&view=rev Log: [Reproducers] Flush files to disk periodically
Periodically flush some of the data to disk. Although not perfect, this helps when the debugger crashes. Modified: lldb/trunk/include/lldb/Utility/Reproducer.h lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h Modified: lldb/trunk/include/lldb/Utility/Reproducer.h URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Utility/Reproducer.h?rev=360286&r1=360285&r2=360286&view=diff ============================================================================== --- lldb/trunk/include/lldb/Utility/Reproducer.h (original) +++ lldb/trunk/include/lldb/Utility/Reproducer.h Wed May 8 14:07:19 2019 @@ -126,6 +126,7 @@ public: m_os << t; if (newline) m_os << '\n'; + m_os.flush(); } const FileSpec &GetFilename() { return m_filename; } Modified: lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h?rev=360286&r1=360285&r2=360286&view=diff ============================================================================== --- lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h (original) +++ lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h Wed May 8 14:07:19 2019 @@ -542,7 +542,9 @@ public: SerializeAll(tail...); } - void SerializeAll() {} + void SerializeAll() { + m_stream.flush(); + } private: /// Serialize pointers. We need to differentiate between pointers to _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits