diff options
author | Pavel Labath <labath@google.com> | 2017-02-17 16:09:06 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-02-17 16:09:06 +0000 |
commit | 39addef292db642567d33723e8a54ef39f055b4d (patch) | |
tree | 09a33574f5bebfee506e4d70f578f0b469511b62 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.h | |
parent | 4cd7352c4faca05fdd0b5c8572d28711c69aace2 (diff) | |
download | bcm5719-llvm-39addef292db642567d33723e8a54ef39f055b4d.tar.gz bcm5719-llvm-39addef292db642567d33723e8a54ef39f055b4d.zip |
Switch GDBRemoteLog to the new registration mechanism
llvm-svn: 295455
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.h')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.h b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.h index d22a6c6b516..c02040c5a59 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.h +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.h @@ -36,22 +36,13 @@ namespace lldb_private { namespace process_gdb_remote { class ProcessGDBRemoteLog { + static Log::Channel g_channel; + public: static void Initialize(); - static Log *GetLogIfAllCategoriesSet(uint32_t mask = 0); - - static Log *GetLogIfAnyCategoryIsSet(uint32_t mask); - - static void DisableLog(const char **categories, Stream *feedback_strm); - - static Log *EnableLog(const std::shared_ptr<llvm::raw_ostream> &log_stream_sp, - uint32_t log_options, const char **categories, - Stream *feedback_strm); - - static void ListLogCategories(Stream *strm); - - static void LogIf(uint32_t mask, const char *format, ...); + static Log *GetLogIfAllCategoriesSet(uint32_t mask) { return g_channel.GetLogIfAll(mask); } + static Log *GetLogIfAnyCategoryIsSet(uint32_t mask) { return g_channel.GetLogIfAny(mask); } }; } // namespace process_gdb_remote |