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