1 //===-- ProcessWindowsLog.h -------------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 #ifndef liblldb_ProcessWindowsLog_h_ 11 #define liblldb_ProcessWindowsLog_h_ 12 13 #include "lldb/Utility/Log.h" 14 15 #define WINDOWS_LOG_PROCESS (1u << 1) // Log process operations 16 #define WINDOWS_LOG_EXCEPTION (1u << 1) // Log exceptions 17 #define WINDOWS_LOG_THREAD (1u << 2) // Log thread operations 18 #define WINDOWS_LOG_MEMORY (1u << 3) // Log memory reads/writes calls 19 #define WINDOWS_LOG_BREAKPOINTS (1u << 4) // Log breakpoint operations 20 #define WINDOWS_LOG_STEP (1u << 5) // Log step operations 21 #define WINDOWS_LOG_REGISTERS (1u << 6) // Log register operations 22 #define WINDOWS_LOG_EVENT (1u << 7) // Low level debug events 23 24 namespace lldb_private { 25 class ProcessWindowsLog { 26 static Log::Channel g_channel; 27 28 public: 29 static void Initialize(); 30 static void Terminate(); 31 32 static Log *GetLogIfAny(uint32_t mask) { return g_channel.GetLogIfAny(mask); } 33 }; 34 } 35 36 #endif // liblldb_ProcessWindowsLog_h_ 37