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"}, KDPLog::Async},
15  {{"break"}, {"log breakpoints"}, KDPLog::Breakpoints},
16  {{"comm"}, {"log communication activity"}, KDPLog::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"}, KDPLog::Memory},
25  {{"packets"}, {"log gdb remote packets"}, KDPLog::Packets},
26  {{"process"}, {"log process events and activities"}, KDPLog::Process},
27  {{"step"}, {"log step related activities"}, KDPLog::Step},
28  {{"thread"}, {"log thread events and activities"}, KDPLog::Thread},
29  {{"watch"}, {"log watchpoint related activities"}, KDPLog::Watchpoints},
30 };
31 
33 
35  return g_channel;
36 }
37 
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:198
lldb_private::KDPLog::Breakpoints
@ Breakpoints
lldb_private::Log::Category
Definition: Log.h:130
ProcessKDPLog.h
lldb_private::KDPLog::Comm
@ Comm
lldb_private::KDPLog::Process
@ Process
lldb_private::Log::Channel
Definition: Log.h:146
lldb_private::ProcessKDPLog::Initialize
static void Initialize()
Definition: ProcessKDPLog.cpp:38
lldb_private::KDPLog::Async
@ Async
g_channel
static Log::Channel g_channel(g_categories, KDPLog::Packets)
lldb_private::KDPLog::Packets
@ Packets
lldb_private::LogChannelFor< KDPLog >
Log::Channel & LogChannelFor< KDPLog >()
Definition: ProcessKDPLog.cpp:34
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::KDPLog::Thread
@ Thread
lldb_private::KDPLog::Step
@ Step
lldb_private::KDPLog::MemoryDataShort
@ MemoryDataShort
lldb_private::KDPLog::Watchpoints
@ Watchpoints
lldb_private::KDPLog::Memory
@ Memory
lldb_private::KDPLog::MemoryDataLong
@ MemoryDataLong