LLDB  mainline
ProcessKDPLog.cpp
Go to the documentation of this file.
1 //===-- ProcessKDPLog.cpp -------------------------------------------------===//
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 #include "ProcessKDPLog.h"
10 
11 using namespace lldb_private;
12 
13 static constexpr Log::Category g_categories[] = {
14  {{"async"}, {"log asynchronous activity"}, KDP_LOG_ASYNC},
15  {{"break"}, {"log breakpoints"}, KDP_LOG_BREAKPOINTS},
16  {{"comm"}, {"log communication activity"}, KDP_LOG_COMM},
17  {{"data-long"},
18  {"log memory bytes for memory reads and writes for all transactions"},
20  {{"data-short"},
21  {"log memory bytes for memory reads and writes for short transactions "
22  "only"},
24  {{"memory"}, {"log memory reads and writes"}, KDP_LOG_MEMORY},
25  {{"packets"}, {"log gdb remote packets"}, KDP_LOG_PACKETS},
26  {{"process"}, {"log process events and activities"}, KDP_LOG_PROCESS},
27  {{"step"}, {"log step related activities"}, KDP_LOG_STEP},
28  {{"thread"}, {"log thread events and activities"}, KDP_LOG_THREAD},
29  {{"watch"}, {"log watchpoint related activities"}, KDP_LOG_WATCHPOINTS},
30 };
31 
33 
KDP_LOG_PROCESS
#define KDP_LOG_PROCESS
Definition: ProcessKDPLog.h:14
g_categories
static constexpr Log::Category g_categories[]
Definition: ProcessKDPLog.cpp:13
lldb_private::Log::Register
static void Register(llvm::StringRef name, Channel &channel)
Definition: Log.cpp:189
KDP_LOG_PACKETS
#define KDP_LOG_PACKETS
Definition: ProcessKDPLog.h:16
KDP_LOG_MEMORY_DATA_LONG
#define KDP_LOG_MEMORY_DATA_LONG
Definition: ProcessKDPLog.h:20
KDP_LOG_ASYNC
#define KDP_LOG_ASYNC
Definition: ProcessKDPLog.h:25
KDP_LOG_MEMORY_DATA_SHORT
#define KDP_LOG_MEMORY_DATA_SHORT
Definition: ProcessKDPLog.h:18
lldb_private::Log::Category
Definition: Log.h:52
KDP_LOG_BREAKPOINTS
#define KDP_LOG_BREAKPOINTS
Definition: ProcessKDPLog.h:21
KDP_LOG_WATCHPOINTS
#define KDP_LOG_WATCHPOINTS
Definition: ProcessKDPLog.h:22
lldb_private::ProcessKDPLog::g_channel
static Log::Channel g_channel
Definition: ProcessKDPLog.h:31
KDP_LOG_DEFAULT
#define KDP_LOG_DEFAULT
Definition: ProcessKDPLog.h:27
ProcessKDPLog.h
KDP_LOG_STEP
#define KDP_LOG_STEP
Definition: ProcessKDPLog.h:23
lldb_private::Log::Channel
Definition: Log.h:60
KDP_LOG_COMM
#define KDP_LOG_COMM
Definition: ProcessKDPLog.h:24
lldb_private::ProcessKDPLog::Initialize
static void Initialize()
Definition: ProcessKDPLog.cpp:34
KDP_LOG_THREAD
#define KDP_LOG_THREAD
Definition: ProcessKDPLog.h:15
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
KDP_LOG_MEMORY
#define KDP_LOG_MEMORY
Definition: ProcessKDPLog.h:17