1 //===-- ProcessKDPLog.cpp ---------------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 #include "ProcessKDPLog.h" 11 12 using namespace lldb_private; 13 14 static constexpr Log::Category g_categories[] = { 15 {{"async"}, {"log asynchronous activity"}, KDP_LOG_ASYNC}, 16 {{"break"}, {"log breakpoints"}, KDP_LOG_BREAKPOINTS}, 17 {{"comm"}, {"log communication activity"}, KDP_LOG_COMM}, 18 {{"data-long"}, 19 {"log memory bytes for memory reads and writes for all transactions"}, 20 KDP_LOG_MEMORY_DATA_LONG}, 21 {{"data-short"}, 22 {"log memory bytes for memory reads and writes for short transactions " 23 "only"}, 24 KDP_LOG_MEMORY_DATA_SHORT}, 25 {{"memory"}, {"log memory reads and writes"}, KDP_LOG_MEMORY}, 26 {{"packets"}, {"log gdb remote packets"}, KDP_LOG_PACKETS}, 27 {{"process"}, {"log process events and activities"}, KDP_LOG_PROCESS}, 28 {{"step"}, {"log step related activities"}, KDP_LOG_STEP}, 29 {{"thread"}, {"log thread events and activities"}, KDP_LOG_THREAD}, 30 {{"watch"}, {"log watchpoint related activities"}, KDP_LOG_WATCHPOINTS}, 31 }; 32 33 Log::Channel ProcessKDPLog::g_channel(g_categories, KDP_LOG_DEFAULT); 34 35 void ProcessKDPLog::Initialize() { Log::Register("kdp-remote", g_channel); } 36