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; 13 using namespace lldb_private; 14 15 static constexpr Log::Category g_categories[] = { 16 {{"async"}, {"log asynchronous activity"}, KDP_LOG_ASYNC}, 17 {{"break"}, {"log breakpoints"}, KDP_LOG_BREAKPOINTS}, 18 {{"comm"}, {"log communication activity"}, KDP_LOG_COMM}, 19 {{"data-long"}, 20 {"log memory bytes for memory reads and writes for all transactions"}, 21 KDP_LOG_MEMORY_DATA_LONG}, 22 {{"data-short"}, 23 {"log memory bytes for memory reads and writes for short transactions " 24 "only"}, 25 KDP_LOG_MEMORY_DATA_SHORT}, 26 {{"memory"}, {"log memory reads and writes"}, KDP_LOG_MEMORY}, 27 {{"packets"}, {"log gdb remote packets"}, KDP_LOG_PACKETS}, 28 {{"process"}, {"log process events and activities"}, KDP_LOG_PROCESS}, 29 {{"step"}, {"log step related activities"}, KDP_LOG_STEP}, 30 {{"thread"}, {"log thread events and activities"}, KDP_LOG_THREAD}, 31 {{"watch"}, {"log watchpoint related activities"}, KDP_LOG_WATCHPOINTS}, 32 }; 33 34 Log::Channel ProcessKDPLog::g_channel(g_categories, KDP_LOG_DEFAULT); 35 36 void ProcessKDPLog::Initialize() { Log::Register("kdp-remote", g_channel); } 37