1 //===-- ProcessWindowsLog.h -------------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef liblldb_ProcessWindowsLog_h_ 10 #define liblldb_ProcessWindowsLog_h_ 11 12 #include "lldb/Utility/Log.h" 13 #include "llvm/ADT/BitmaskEnum.h" 14 15 namespace lldb_private { 16 17 enum class WindowsLog : Log::MaskType { 18 Breakpoints = Log::ChannelFlag<0>, // Log breakpoint operations 19 Event = Log::ChannelFlag<1>, // Low level debug events 20 Exception = Log::ChannelFlag<2>, // Log exceptions 21 Memory = Log::ChannelFlag<3>, // Log memory reads/writes calls 22 Process = Log::ChannelFlag<4>, // Log process operations 23 Registers = Log::ChannelFlag<5>, // Log register operations 24 Step = Log::ChannelFlag<6>, // Log step operations 25 Thread = Log::ChannelFlag<7>, // Log thread operations 26 LLVM_MARK_AS_BITMASK_ENUM(Thread) 27 }; 28 LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE(); 29 30 class ProcessWindowsLog { 31 public: 32 static void Initialize(); 33 static void Terminate(); 34 }; 35 36 template <> Log::Channel &LogChannelFor<WindowsLog>(); 37 } 38 39 #endif // liblldb_ProcessWindowsLog_h_ 40