LLDB mainline
LogChannelDWARF.cpp
Go to the documentation of this file.
1//===-- LogChannelDWARF.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 "LogChannelDWARF.h"
10
11using namespace lldb_private;
12
13static constexpr Log::Category g_categories[] = {
14 {{"comp"},
15 {"log struct/union/class type completions"},
16 DWARFLog::TypeCompletion},
17 {{"info"}, {"log the parsing of .debug_info"}, DWARFLog::DebugInfo},
18 {{"line"}, {"log the parsing of .debug_line"}, DWARFLog::DebugLine},
19 {{"lookups"},
20 {"log any lookups that happen by name, regex, or address"},
21 DWARFLog::Lookups},
22 {{"map"},
23 {"log insertions of object files into DWARF debug maps"},
24 DWARFLog::DebugMap},
25 {{"split"}, {"log split DWARF related activities"}, DWARFLog::SplitDwarf},
26};
27
28static Log::Channel g_channel(g_categories, DWARFLog::DebugInfo);
29
31 return g_channel;
32}
33
35 Log::Register("dwarf", g_channel);
36}
37
static Log::Channel g_channel(g_categories, DWARFLog::DebugInfo)
static constexpr Log::Category g_categories[]
static Log::Channel g_channel(g_categories, GDBRLog::Packets)
static void Register(llvm::StringRef name, Channel &channel)
Definition: Log.cpp:211
static void Unregister(llvm::StringRef name)
Definition: Log.cpp:217
A class that represents a running process on the host machine.
Log::Channel & LogChannelFor< DWARFLog >()