[lldb] Add a log dump command
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 27 Jun 2022 17:00:05 +0000 (10:00 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 27 Jun 2022 17:02:34 +0000 (10:02 -0700)
commit9bdb7e573427ac3785cb10829da57ee18ef65ce3
treee7d0c4cd3f5ffa0cb8a6c9cb530ac330f63f8c7b
parentbecbbb7e3c8141b3346211faf9359f629cbf4e4d
[lldb] Add a log dump command

Add a log dump command to dump logs to a file. This only works for
channels that have a log handler associated that supports dumping. For
now that's limited to the circular log handler, but more could be added
in the future.

Differential revision: https://reviews.llvm.org/D128557
lldb/include/lldb/Host/Host.h
lldb/include/lldb/Utility/Log.h
lldb/source/Commands/CommandObjectLog.cpp
lldb/source/Commands/Options.td
lldb/source/Host/common/Host.cpp
lldb/source/Utility/Log.cpp
lldb/test/API/commands/log/basic/TestLogHandlers.py [new file with mode: 0644]