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