[Lldb-commits] [PATCH] D127937: [lldb] Add RotatingLogHandler

2022-06-16 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. JDevlieghere marked an inline comment as done. Closed by commit rG6ac608b3d897: [lldb] Add RotatingLogHandler (authored by JDevlieghere). Herald added a project: LLDB.

[Lldb-commits] [PATCH] D127937: [lldb] Add RotatingLogHandler

2022-06-16 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere marked an inline comment as done. JDevlieghere added inline comments. Comment at: lldb/unittests/Utility/LogTest.cpp:112 + handler.Dump(stream); + return stream.str(); +} kastiglione wrote: > minor: `return buffer;` I did that on purpose to avoid t

[Lldb-commits] [PATCH] D127937: [lldb] Add RotatingLogHandler

2022-06-16 Thread Dave Lee via Phabricator via lldb-commits
kastiglione accepted this revision. kastiglione added a comment. This revision is now accepted and ready to land. lgtm Comment at: lldb/unittests/Utility/LogTest.cpp:112 + handler.Dump(stream); + return stream.str(); +} minor: `return buffer;` CHANGES SINCE

[Lldb-commits] [PATCH] D127937: [lldb] Add RotatingLogHandler

2022-06-16 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 437695. JDevlieghere added a comment. - Use dynamic array instead of vector. - Rebase CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127937/new/ https://reviews.llvm.org/D127937 Files: lldb/include/lldb/Utility/Log.h lldb/source/Utility/Log

[Lldb-commits] [PATCH] D127937: [lldb] Add RotatingLogHandler

2022-06-16 Thread Dave Lee via Phabricator via lldb-commits
kastiglione added inline comments. Comment at: lldb/include/lldb/Utility/Log.h:98 + + std::vector m_messages; + size_t m_next_index = 0; this could be an array, since it's not being dynamically resized. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D12

[Lldb-commits] [PATCH] D127937: [lldb] Add RotatingLogHandler

2022-06-15 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: labath, kastiglione, mib. Herald added a project: All. JDevlieghere requested review of this revision. Add a log handler that maintains a circular buffer. https://reviews.llvm.org/D127937 Files: lldb/include/lldb/Utility/Log.h