40 lines · c
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-exception6//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 15namespace lldb_private {16 17enum class WindowsLog : Log::MaskType {18 Breakpoints = Log::ChannelFlag<0>, // Log breakpoint operations19 Event = Log::ChannelFlag<1>, // Low level debug events20 Exception = Log::ChannelFlag<2>, // Log exceptions21 Memory = Log::ChannelFlag<3>, // Log memory reads/writes calls22 Process = Log::ChannelFlag<4>, // Log process operations23 Registers = Log::ChannelFlag<5>, // Log register operations24 Step = Log::ChannelFlag<6>, // Log step operations25 Thread = Log::ChannelFlag<7>, // Log thread operations26 LLVM_MARK_AS_BITMASK_ENUM(Thread)27};28LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE();29 30class ProcessWindowsLog {31public:32 static void Initialize();33 static void Terminate();34};35 36template <> Log::Channel &LogChannelFor<WindowsLog>();37}38 39#endif // liblldb_ProcessWindowsLog_h_40