LLDB
mainline
llvm-project
lldb
source
Plugins
Process
gdb-remote
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
15
namespace
lldb_private
{
16
namespace
process_gdb_remote
{
17
18
enum 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>
,
30
LLVM_MARK_AS_BITMASK_ENUM
(
Watchpoints
)
31
};
32
LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE
();
33
34
class
ProcessGDBRemoteLog
{
35
public
:
36
static
void
Initialize
();
37
};
38
39
}
// namespace process_gdb_remote
40
41
template
<>
Log::Channel
&
LogChannelFor<process_gdb_remote::GDBRLog>
();
42
43
}
// namespace lldb_private
44
45
#endif
// LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_PROCESSGDBREMOTELOG_H
Log.h
lldb_private::Log::Channel
Definition
Log.h:163
lldb_private::Log::ChannelFlag
static constexpr MaskType ChannelFlag
Definition
Log.h:144
lldb_private::Log::MaskType
uint64_t MaskType
The underlying type of all log channel enums.
Definition
Log.h:141
lldb_private::process_gdb_remote::ProcessGDBRemoteLog
Definition
ProcessGDBRemoteLog.h:34
lldb_private::process_gdb_remote::ProcessGDBRemoteLog::Initialize
static void Initialize()
Definition
ProcessGDBRemoteLog.cpp:42
lldb_private::process_gdb_remote
Definition
GDBRemoteClientBase.h:22
lldb_private::process_gdb_remote::GDBRLog
GDBRLog
Definition
ProcessGDBRemoteLog.h:18
lldb_private::process_gdb_remote::GDBRLog::Async
@ Async
Definition
ProcessGDBRemoteLog.h:19
lldb_private::process_gdb_remote::GDBRLog::Memory
@ Memory
Definition
ProcessGDBRemoteLog.h:22
lldb_private::process_gdb_remote::GDBRLog::Step
@ Step
Definition
ProcessGDBRemoteLog.h:27
lldb_private::process_gdb_remote::GDBRLog::MemoryDataLong
@ MemoryDataLong
Definition
ProcessGDBRemoteLog.h:23
lldb_private::process_gdb_remote::GDBRLog::Packets
@ Packets
Definition
ProcessGDBRemoteLog.h:25
lldb_private::process_gdb_remote::GDBRLog::Process
@ Process
Definition
ProcessGDBRemoteLog.h:26
lldb_private::process_gdb_remote::GDBRLog::Comm
@ Comm
Definition
ProcessGDBRemoteLog.h:21
lldb_private::process_gdb_remote::GDBRLog::MemoryDataShort
@ MemoryDataShort
Definition
ProcessGDBRemoteLog.h:24
lldb_private::process_gdb_remote::GDBRLog::Breakpoints
@ Breakpoints
Definition
ProcessGDBRemoteLog.h:20
lldb_private::process_gdb_remote::GDBRLog::Thread
@ Thread
Definition
ProcessGDBRemoteLog.h:28
lldb_private::process_gdb_remote::GDBRLog::Watchpoints
@ Watchpoints
Definition
ProcessGDBRemoteLog.h:29
lldb_private::process_gdb_remote::LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE
LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE()
lldb_private
A class that represents a running process on the host machine.
Definition
SBAddressRange.h:14
lldb_private::CompilerContextKind::LLVM_MARK_AS_BITMASK_ENUM
@ LLVM_MARK_AS_BITMASK_ENUM
Definition
lldb-private-enumerations.h:215
lldb_private::LogChannelFor< process_gdb_remote::GDBRLog >
Log::Channel & LogChannelFor< process_gdb_remote::GDBRLog >()
Generated on
for LLDB by
1.14.0