LLDB
mainline
llvm-project
lldb
source
Plugins
Process
Windows
Common
ProcessWindowsLog.cpp
Go to the documentation of this file.
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"
},
WindowsLog::Breakpoints
},
15
{{
"event"
}, {
"log low level debugger events"
},
WindowsLog::Event
},
16
{{
"exception"
}, {
"log exception information"
},
WindowsLog::Exception
},
17
{{
"memory"
}, {
"log memory reads and writes"
},
WindowsLog::Memory
},
18
{{
"process"
}, {
"log process events and activities"
},
WindowsLog::Process
},
19
{{
"registers"
}, {
"log register read/writes"
},
WindowsLog::Registers
},
20
{{
"step"
}, {
"log step related activities"
},
WindowsLog::Step
},
21
{{
"thread"
}, {
"log thread events and activities"
},
WindowsLog::Thread
},
22
};
23
24
static
Log::Channel
g_channel
(
g_categories
,
WindowsLog::Process
);
25
26
template
<>
Log::Channel
&
lldb_private::LogChannelFor<WindowsLog>
() {
27
return
g_channel
;
28
}
29
30
void
ProcessWindowsLog::Initialize
() {
31
static
llvm::once_flag g_once_flag;
32
llvm::call_once(g_once_flag, []() {
Log::Register
(
"windows"
,
g_channel
); });
33
}
34
35
void
ProcessWindowsLog::Terminate
() {}
36
37
38
39
40
41
42
43
44
g_channel
static Log::Channel g_channel(g_categories, GDBRLog::Packets)
g_channel
static Log::Channel g_channel(g_categories, WindowsLog::Process)
ProcessWindowsLog.h
lldb_private::Log::Channel
Definition
Log.h:163
lldb_private::Log::Register
static void Register(llvm::StringRef name, Channel &channel)
Definition
Log.cpp:221
lldb_private::ProcessWindowsLog::Initialize
static void Initialize()
Definition
ProcessWindowsLog.cpp:30
lldb_private::ProcessWindowsLog::Terminate
static void Terminate()
Definition
ProcessWindowsLog.cpp:35
g_categories
static constexpr Log::Category g_categories[]
Definition
common/Host.cpp:94
lldb_private
A class that represents a running process on the host machine.
Definition
SBAddressRange.h:14
lldb_private::WindowsLog::Memory
@ Memory
Definition
ProcessWindowsLog.h:21
lldb_private::WindowsLog::Step
@ Step
Definition
ProcessWindowsLog.h:24
lldb_private::WindowsLog::Event
@ Event
Definition
ProcessWindowsLog.h:19
lldb_private::WindowsLog::Registers
@ Registers
Definition
ProcessWindowsLog.h:23
lldb_private::WindowsLog::Exception
@ Exception
Definition
ProcessWindowsLog.h:20
lldb_private::WindowsLog::Process
@ Process
Definition
ProcessWindowsLog.h:22
lldb_private::WindowsLog::Breakpoints
@ Breakpoints
Definition
ProcessWindowsLog.h:18
lldb_private::WindowsLog::Thread
@ Thread
Definition
ProcessWindowsLog.h:25
lldb_private::LogChannelFor< WindowsLog >
Log::Channel & LogChannelFor< WindowsLog >()
Definition
ProcessWindowsLog.cpp:26
lldb_private::Log::Category
Definition
Log.h:147
Generated on
for LLDB by
1.14.0