LLDB  mainline
LLDBLog.h
Go to the documentation of this file.
1 //===-- LLDBLog.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 LLDB_UTILITY_LLDBLOG_H
10 #define LLDB_UTILITY_LLDBLOG_H
11 
12 #include "lldb/Utility/Log.h"
13 #include "llvm/ADT/BitmaskEnum.h"
14 #include <cstdint>
15 
16 namespace lldb_private {
17 
18 enum class LLDBLog : Log::MaskType {
19  API = Log::ChannelFlag<0>,
20  AST = Log::ChannelFlag<1>,
21  Breakpoints = Log::ChannelFlag<2>,
22  Commands = Log::ChannelFlag<3>,
23  Communication = Log::ChannelFlag<4>,
24  Connection = Log::ChannelFlag<5>,
25  DataFormatters = Log::ChannelFlag<6>,
26  Demangle = Log::ChannelFlag<7>,
27  DynamicLoader = Log::ChannelFlag<8>,
28  Events = Log::ChannelFlag<9>,
29  Expressions = Log::ChannelFlag<10>,
30  Host = Log::ChannelFlag<11>,
31  JITLoader = Log::ChannelFlag<12>,
32  Language = Log::ChannelFlag<13>,
33  MMap = Log::ChannelFlag<14>,
34  Modules = Log::ChannelFlag<15>,
35  Object = Log::ChannelFlag<16>,
36  OS = Log::ChannelFlag<17>,
37  Platform = Log::ChannelFlag<18>,
38  Process = Log::ChannelFlag<19>,
39  Script = Log::ChannelFlag<20>,
40  State = Log::ChannelFlag<21>,
41  Step = Log::ChannelFlag<22>,
42  Symbols = Log::ChannelFlag<23>,
43  SystemRuntime = Log::ChannelFlag<24>,
44  Target = Log::ChannelFlag<25>,
45  Temporary = Log::ChannelFlag<26>,
46  Thread = Log::ChannelFlag<27>,
47  Types = Log::ChannelFlag<28>,
48  Unwind = Log::ChannelFlag<29>,
49  Watchpoints = Log::ChannelFlag<30>,
50  OnDemand = Log::ChannelFlag<31>,
52 };
53 
55 
57 
58 template <> Log::Channel &LogChannelFor<LLDBLog>();
59 } // namespace lldb_private
60 
61 #endif // LLDB_UTILITY_LLDBLOG_H
lldb_private::LLDBLog::Types
@ Types
lldb_private::Connection
Definition: Connection.h:41
lldb_private::Host
Definition: Host.h:63
lldb_private::LLDBLog::AST
@ AST
lldb_private::Process
Definition: Process.h:338
lldb_private::LLDBLog::Temporary
@ Temporary
lldb_private::LLDBLog::OnDemand
@ OnDemand
lldb_private::LLDBLog::Commands
@ Commands
lldb_private::SystemRuntime
Definition: SystemRuntime.h:43
lldb_private::LLDBLog::Events
@ Events
lldb_private::InitializeLldbChannel
void InitializeLldbChannel()
Definition: LLDBLog.cpp:80
lldb_private::Target
Definition: Target.h:473
lldb_private::LLDBLog::Modules
@ Modules
lldb_private::LLDBLog::MMap
@ MMap
lldb_private::LLDBLog::API
@ API
lldb_private::Communication
Definition: Communication.h:84
lldb_private::LLDBLog
LLDBLog
Definition: LLDBLog.h:18
Log.h
lldb_private::Thread
Definition: Thread.h:61
lldb_private::LLDBLog::Watchpoints
@ Watchpoints
lldb_private::LLDBLog::State
@ State
lldb_private::DynamicLoader
Definition: DynamicLoader.h:52
lldb_private::LLDBLog::Breakpoints
@ Breakpoints
lldb_private::LLDBLog::LLVM_MARK_AS_BITMASK_ENUM
@ LLVM_MARK_AS_BITMASK_ENUM
lldb_private::LLDBLog::Step
@ Step
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::JITLoader
Definition: JITLoader.h:27
lldb_private::Language
Definition: Language.h:29
lldb_private::LLDBLog::Object
@ Object
lldb_private::LogChannelFor< LLDBLog >
Log::Channel & LogChannelFor< LLDBLog >()
Definition: LLDBLog.cpp:76
lldb_private::Platform
Definition: Platform.h:71
lldb_private::LLDBLog::DataFormatters
@ DataFormatters
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::Symbols
Definition: LocateSymbolFile.h:24
lldb_private::LLDBLog::Script
@ Script
lldb_private::Unwind
Definition: Unwind.h:18
lldb_private::LLDBLog::Expressions
@ Expressions
lldb_private::LLDBLog::Demangle
@ Demangle
lldb_private::LLDBLog::OS
@ OS