[Lldb-commits] [PATCH] D128323: [lldb] Add support for specifying a log handler

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 21 22:59:14 PDT 2022


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

This patch adds a new flag to `log enable` allowing the user to specify a log handler. This makes it possible to enable logging to a circular buffer (D127937 <https://reviews.llvm.org/D127937>) or with OSLog (D128321 <https://reviews.llvm.org/D128321>) as well as the default stream handler. As is the patch is more of an RFC/POC. It needs some cleaning up as well as a test case, which I'll add if everyone is happy with the direction.


https://reviews.llvm.org/D128323

Files:
  lldb/include/lldb/Core/Debugger.h
  lldb/include/lldb/lldb-private-enumerations.h
  lldb/source/API/SBDebugger.cpp
  lldb/source/Commands/CommandObjectLog.cpp
  lldb/source/Commands/Options.td
  lldb/source/Core/Debugger.cpp
  lldb/tools/lldb-test/lldb-test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128323.438920.patch
Type: text/x-patch
Size: 7899 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220622/b8c032c1/attachment-0001.bin>


More information about the lldb-commits mailing list