[Lldb-commits] [PATCH] D135621: [lldb] Add an always-on log channel

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 10 15:03:51 PDT 2022


JDevlieghere created this revision.
JDevlieghere added reviewers: labath, DavidSpickett, jingham, mib, clayborg.
Herald added a project: All.
JDevlieghere requested review of this revision.

Add an "always on" log channel. The channel is meant to be used sparsely and deliberately for logging high-value information. Unlike other log channels, it's not exposed to the user. Log messages are logged to a ring buffer with a fixed number of entries. The ring buffer is dumped to disk as part of the diagnostics, i.e. when the debugger crashes or when the user explicitly requests a dump.


https://reviews.llvm.org/D135621

Files:
  lldb/include/lldb/Utility/Diagnostics.h
  lldb/include/lldb/Utility/LLDBLog.h
  lldb/include/lldb/Utility/Log.h
  lldb/source/Utility/Diagnostics.cpp
  lldb/source/Utility/LLDBLog.cpp
  lldb/source/Utility/Log.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135621.466637.patch
Type: text/x-patch
Size: 5007 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20221010/39378b2b/attachment.bin>


More information about the lldb-commits mailing list