1 //===-- ProcessKDPLog.cpp -------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 #include "ProcessKDPLog.h"
11 using namespace lldb_private
;
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
},
18 {"log memory bytes for memory reads and writes for all transactions"},
19 KDPLog::MemoryDataLong
},
21 {"log memory bytes for memory reads and writes for short transactions "
23 KDPLog::MemoryDataShort
},
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
},
32 static Log::Channel
g_channel(g_categories
, KDPLog::Packets
);
34 template <> Log::Channel
&lldb_private::LogChannelFor
<KDPLog
>() {
38 void ProcessKDPLog::Initialize() { Log::Register("kdp-remote", g_channel
); }