LLDB mainline
ProcessGDBRemoteLog.h
Go to the documentation of this file.
1//===-- ProcessGDBRemoteLog.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_GDB_REMOTE_PROCESSGDBREMOTELOG_H
10#define LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_PROCESSGDBREMOTELOG_H
11
12#include "lldb/Utility/Log.h"
13#include "llvm/ADT/BitmaskEnum.h"
14
15namespace lldb_private {
16namespace process_gdb_remote {
17
18enum class GDBRLog : Log::MaskType {
19 Async = Log::ChannelFlag<0>,
20 Breakpoints = Log::ChannelFlag<1>,
21 Comm = Log::ChannelFlag<2>,
22 Memory = Log::ChannelFlag<3>, // Log memory reads/writes calls
23 MemoryDataLong = Log::ChannelFlag<4>, // Log all memory reads/writes bytes
24 MemoryDataShort = Log::ChannelFlag<5>, // Log short memory reads/writes bytes
25 Packets = Log::ChannelFlag<6>,
26 Process = Log::ChannelFlag<7>,
27 Step = Log::ChannelFlag<8>,
28 Thread = Log::ChannelFlag<9>,
29 Watchpoints = Log::ChannelFlag<10>,
31};
33
35public:
36 static void Initialize();
37};
38
39} // namespace process_gdb_remote
40
42
43} // namespace lldb_private
44
45#endif // LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_PROCESSGDBREMOTELOG_H
uint64_t MaskType
The underlying type of all log channel enums.
Definition: Log.h:124
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.
Definition: SBAttachInfo.h:14
Log::Channel & LogChannelFor< process_gdb_remote::GDBRLog >()