LLDB  mainline
ProcessPOSIXLog.h
Go to the documentation of this file.
1 //===-- ProcessPOSIXLog.h -----------------------------------------*- C++
2 //-*-===//
3 //
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef liblldb_ProcessPOSIXLog_h_
11 #define liblldb_ProcessPOSIXLog_h_
12 
13 #include "lldb/Utility/Log.h"
14 #include "llvm/ADT/BitmaskEnum.h"
15 
16 namespace lldb_private {
17 
18 enum class POSIXLog : Log::MaskType {
19  Breakpoints = Log::ChannelFlag<0>,
20  Memory = Log::ChannelFlag<1>,
21  Process = Log::ChannelFlag<2>,
22  Ptrace = Log::ChannelFlag<3>,
23  Registers = Log::ChannelFlag<4>,
24  Thread = Log::ChannelFlag<5>,
25  Watchpoints = Log::ChannelFlag<6>,
26  Trace = Log::ChannelFlag<7>,
28 };
30 
32 public:
33  static void Initialize();
34 };
35 
37 } // namespace lldb_private
38 
39 #endif // liblldb_ProcessPOSIXLog_h_
lldb_private::ProcessPOSIXLog::Initialize
static void Initialize()
Definition: ProcessPOSIXLog.cpp:31
lldb_private::Process
Definition: Process.h:338
lldb_private::POSIXLog::Ptrace
@ Ptrace
lldb_private::Trace
Definition: Trace.h:46
lldb_private::LogChannelFor< POSIXLog >
Log::Channel & LogChannelFor< POSIXLog >()
Definition: ProcessPOSIXLog.cpp:27
Log.h
lldb_private::Thread
Definition: Thread.h:61
lldb_private::POSIXLog::Memory
@ Memory
lldb_private::LLDBLog::LLVM_MARK_AS_BITMASK_ENUM
@ LLVM_MARK_AS_BITMASK_ENUM
lldb_private::POSIXLog::Watchpoints
@ Watchpoints
lldb_private::LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE
LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE()
lldb_private::Log::MaskType
uint64_t MaskType
The underlying type of all log channel enums.
Definition: Log.h:124
lldb_private::Log::Channel
Definition: Log.h:146
lldb_private::POSIXLog::Registers
@ Registers
lldb_private::ProcessPOSIXLog
Definition: ProcessPOSIXLog.h:31
lldb_private::POSIXLog::Breakpoints
@ Breakpoints
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::POSIXLog
POSIXLog
Definition: ProcessPOSIXLog.h:18