118a9135dSAdrian McCarthy //===-- ProcessWindowsLog.cpp -----------------------------------*- C++ -*-===// 218a9135dSAdrian McCarthy // 3*2946cd70SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*2946cd70SChandler Carruth // See https://llvm.org/LICENSE.txt for license information. 5*2946cd70SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 618a9135dSAdrian McCarthy // 718a9135dSAdrian McCarthy //===----------------------------------------------------------------------===// 818a9135dSAdrian McCarthy 918a9135dSAdrian McCarthy #include "ProcessWindowsLog.h" 1018a9135dSAdrian McCarthy 1118a9135dSAdrian McCarthy using namespace lldb_private; 1218a9135dSAdrian McCarthy 133cc0e33eSPavel Labath static constexpr Log::Category g_categories[] = { 143cc0e33eSPavel Labath {{"break"}, {"log breakpoints"}, WINDOWS_LOG_BREAKPOINTS}, 153cc0e33eSPavel Labath {{"event"}, {"log low level debugger events"}, WINDOWS_LOG_EVENT}, 163cc0e33eSPavel Labath {{"exception"}, {"log exception information"}, WINDOWS_LOG_EXCEPTION}, 173cc0e33eSPavel Labath {{"memory"}, {"log memory reads and writes"}, WINDOWS_LOG_MEMORY}, 183cc0e33eSPavel Labath {{"process"}, {"log process events and activities"}, WINDOWS_LOG_PROCESS}, 193cc0e33eSPavel Labath {{"registers"}, {"log register read/writes"}, WINDOWS_LOG_REGISTERS}, 203cc0e33eSPavel Labath {{"step"}, {"log step related activities"}, WINDOWS_LOG_STEP}, 213cc0e33eSPavel Labath {{"thread"}, {"log thread events and activities"}, WINDOWS_LOG_THREAD}, 223cc0e33eSPavel Labath }; 2318a9135dSAdrian McCarthy 243cc0e33eSPavel Labath Log::Channel ProcessWindowsLog::g_channel(g_categories, WINDOWS_LOG_PROCESS); 2518a9135dSAdrian McCarthy 26b9c1b51eSKate Stone void ProcessWindowsLog::Initialize() { 273cc0e33eSPavel Labath static llvm::once_flag g_once_flag; 283cc0e33eSPavel Labath llvm::call_once(g_once_flag, []() { Log::Register("windows", g_channel); }); 2918a9135dSAdrian McCarthy } 3018a9135dSAdrian McCarthy 31b9c1b51eSKate Stone void ProcessWindowsLog::Terminate() {} 3218a9135dSAdrian McCarthy 3318a9135dSAdrian McCarthy 3418a9135dSAdrian McCarthy 3518a9135dSAdrian McCarthy 3618a9135dSAdrian McCarthy 3718a9135dSAdrian McCarthy 3818a9135dSAdrian McCarthy 3918a9135dSAdrian McCarthy 4018a9135dSAdrian McCarthy 41