[Lldb-commits] [PATCH] D127922: [lldb] Introduce the concept of a log handler (NFC)

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 15 17:12:46 PDT 2022


JDevlieghere created this revision.
JDevlieghere added reviewers: labath, clayborg, mib, kastiglione.
Herald added a subscriber: mgorny.
Herald added a project: All.
JDevlieghere requested review of this revision.

This patch introduces the concept of a log handlers. Log handlers allow customizing the way log output is emitted. The `StreamCallback` class tried to do something conceptually similar. The benefit of the log handler interface is that you don't need to conform to llvm's raw_ostream interface.

This patch is in preparation for a new kind of a new type of log handler.


https://reviews.llvm.org/D127922

Files:
  lldb/include/lldb/Core/Debugger.h
  lldb/include/lldb/Utility/Log.h
  lldb/include/lldb/Utility/StreamCallback.h
  lldb/source/Core/Debugger.cpp
  lldb/source/Utility/CMakeLists.txt
  lldb/source/Utility/Log.cpp
  lldb/source/Utility/StreamCallback.cpp
  lldb/unittests/Core/CMakeLists.txt
  lldb/unittests/Core/StreamCallbackTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127922.437405.patch
Type: text/x-patch
Size: 14855 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220616/481037bf/attachment-0001.bin>


More information about the lldb-commits mailing list