From 39addef292db642567d33723e8a54ef39f055b4d Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Fri, 17 Feb 2017 16:09:06 +0000 Subject: Switch GDBRemoteLog to the new registration mechanism llvm-svn: 295455 --- .../Plugins/Process/gdb-remote/ProcessGDBRemoteLog.h | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.h') 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 &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 -- cgit v1.2.3