Changeset View
Changeset View
Standalone View
Standalone View
lldb/source/Plugins/Process/Windows/Common/ProcessWindowsLog.cpp
Show All 13 Lines | static constexpr Log::Category g_categories[] = { | ||||
{{"break"}, {"log breakpoints"}, WindowsLog::Breakpoints}, | {{"break"}, {"log breakpoints"}, WindowsLog::Breakpoints}, | ||||
{{"event"}, {"log low level debugger events"}, WindowsLog::Event}, | {{"event"}, {"log low level debugger events"}, WindowsLog::Event}, | ||||
{{"exception"}, {"log exception information"}, WindowsLog::Exception}, | {{"exception"}, {"log exception information"}, WindowsLog::Exception}, | ||||
{{"memory"}, {"log memory reads and writes"}, WindowsLog::Memory}, | {{"memory"}, {"log memory reads and writes"}, WindowsLog::Memory}, | ||||
{{"process"}, {"log process events and activities"}, WindowsLog::Process}, | {{"process"}, {"log process events and activities"}, WindowsLog::Process}, | ||||
{{"registers"}, {"log register read/writes"}, WindowsLog::Registers}, | {{"registers"}, {"log register read/writes"}, WindowsLog::Registers}, | ||||
{{"step"}, {"log step related activities"}, WindowsLog::Step}, | {{"step"}, {"log step related activities"}, WindowsLog::Step}, | ||||
{{"thread"}, {"log thread events and activities"}, WindowsLog::Thread}, | {{"thread"}, {"log thread events and activities"}, WindowsLog::Thread}, | ||||
{{"dbgprint"}, {"log OutputDebugString messages"}, WindowsLog::DbgPrint}, | |||||
}; | }; | ||||
static Log::Channel g_channel(g_categories, WindowsLog::Process); | static Log::Channel g_channel(g_categories, | ||||
WindowsLog::Process | WindowsLog::DbgPrint); | |||||
template <> Log::Channel &lldb_private::LogChannelFor<WindowsLog>() { | template <> Log::Channel &lldb_private::LogChannelFor<WindowsLog>() { | ||||
return g_channel; | return g_channel; | ||||
} | } | ||||
void ProcessWindowsLog::Initialize() { | void ProcessWindowsLog::Initialize() { | ||||
static llvm::once_flag g_once_flag; | static llvm::once_flag g_once_flag; | ||||
llvm::call_once(g_once_flag, []() { Log::Register("windows", g_channel); }); | llvm::call_once(g_once_flag, []() { Log::Register("windows", g_channel); }); | ||||
Show All 12 Lines |