LLDB mainline
ProcessKDPLog.h
Go to the documentation of this file.
1//===-- ProcessKDPLog.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_SOURCE_PLUGINS_PROCESS_MACOSX_KERNEL_PROCESSKDPLOG_H
10#define LLDB_SOURCE_PLUGINS_PROCESS_MACOSX_KERNEL_PROCESSKDPLOG_H
11
12#include "lldb/Utility/Log.h"
13#include "llvm/ADT/BitmaskEnum.h"
14
15namespace lldb_private {
16
17enum class KDPLog : Log::MaskType {
18 Async = Log::ChannelFlag<0>,
19 Breakpoints = Log::ChannelFlag<1>,
20 Comm = Log::ChannelFlag<2>,
21 MemoryDataLong = Log::ChannelFlag<3>, // Log all memory reads/writes bytes
22 MemoryDataShort = Log::ChannelFlag<4>, // Log short memory reads/writes bytes
23 Memory = Log::ChannelFlag<5>, // Log memory reads/writes calls
24 Packets = Log::ChannelFlag<6>,
25 Process = Log::ChannelFlag<7>,
26 Step = Log::ChannelFlag<8>,
27 Thread = Log::ChannelFlag<9>,
28 Watchpoints = Log::ChannelFlag<10>,
30};
32
34public:
35 static void Initialize();
36};
37
39}
40
41#endif // LLDB_SOURCE_PLUGINS_PROCESS_MACOSX_KERNEL_PROCESSKDPLOG_H
uint64_t MaskType
The underlying type of all log channel enums.
Definition: Log.h:141
A plug-in interface definition class for debugging a process.
Definition: Process.h:341
A class that represents a running process on the host machine.
LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE()
Log::Channel & LogChannelFor< KDPLog >()