1*0b57cec5SDimitry Andric //===-- LogChannelDWARF.cpp -----------------------------------------------===//
2*0b57cec5SDimitry Andric //
3*0b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*0b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5*0b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*0b57cec5SDimitry Andric //
7*0b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
8*0b57cec5SDimitry Andric
9*0b57cec5SDimitry Andric #include "LogChannelDWARF.h"
10*0b57cec5SDimitry Andric
11*0b57cec5SDimitry Andric using namespace lldb_private;
12*0b57cec5SDimitry Andric
13*0b57cec5SDimitry Andric static constexpr Log::Category g_categories[] = {
14*0b57cec5SDimitry Andric {{"comp"},
15*0b57cec5SDimitry Andric {"log insertions of object files into DWARF debug maps"},
16*0b57cec5SDimitry Andric DWARF_LOG_TYPE_COMPLETION},
17*0b57cec5SDimitry Andric {{"info"}, {"log the parsing of .debug_info"}, DWARF_LOG_DEBUG_INFO},
18*0b57cec5SDimitry Andric {{"line"}, {"log the parsing of .debug_line"}, DWARF_LOG_DEBUG_LINE},
19*0b57cec5SDimitry Andric {{"lookups"},
20*0b57cec5SDimitry Andric {"log any lookups that happen by name, regex, or address"},
21*0b57cec5SDimitry Andric DWARF_LOG_LOOKUPS},
22*0b57cec5SDimitry Andric {{"map"},
23*0b57cec5SDimitry Andric {"log struct/unions/class type completions"},
24*0b57cec5SDimitry Andric DWARF_LOG_DEBUG_MAP},
25*0b57cec5SDimitry Andric };
26*0b57cec5SDimitry Andric
27*0b57cec5SDimitry Andric Log::Channel LogChannelDWARF::g_channel(g_categories, DWARF_LOG_DEFAULT);
28*0b57cec5SDimitry Andric
Initialize()29*0b57cec5SDimitry Andric void LogChannelDWARF::Initialize() {
30*0b57cec5SDimitry Andric Log::Register("dwarf", g_channel);
31*0b57cec5SDimitry Andric }
32*0b57cec5SDimitry Andric
Terminate()33*0b57cec5SDimitry Andric void LogChannelDWARF::Terminate() { Log::Unregister("dwarf"); }
34