1 //===-- ProcessWindowsLog.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 "ProcessWindowsLog.h" 10 11 using namespace lldb_private; 12 13 static constexpr Log::Category g_categories[] = { 14 {{"break"}, {"log breakpoints"}, WINDOWS_LOG_BREAKPOINTS}, 15 {{"event"}, {"log low level debugger events"}, WINDOWS_LOG_EVENT}, 16 {{"exception"}, {"log exception information"}, WINDOWS_LOG_EXCEPTION}, 17 {{"memory"}, {"log memory reads and writes"}, WINDOWS_LOG_MEMORY}, 18 {{"process"}, {"log process events and activities"}, WINDOWS_LOG_PROCESS}, 19 {{"registers"}, {"log register read/writes"}, WINDOWS_LOG_REGISTERS}, 20 {{"step"}, {"log step related activities"}, WINDOWS_LOG_STEP}, 21 {{"thread"}, {"log thread events and activities"}, WINDOWS_LOG_THREAD}, 22 }; 23 24 Log::Channel ProcessWindowsLog::g_channel(g_categories, WINDOWS_LOG_PROCESS); 25 26 void ProcessWindowsLog::Initialize() { 27 static llvm::once_flag g_once_flag; 28 llvm::call_once(g_once_flag, []() { Log::Register("windows", g_channel); }); 29 } 30 31 void ProcessWindowsLog::Terminate() {} 32 33 34 35 36 37 38 39 40 41