1 //===-- LogChannelDWARF.cpp ------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "LogChannelDWARF.h"
12 using namespace lldb_private;
14 static constexpr Log::Category g_categories[] = {
16 {"log the parsing of .debug_aranges"},
17 DWARF_LOG_DEBUG_ARANGES},
19 {"log insertions of object files into DWARF debug maps"},
20 DWARF_LOG_TYPE_COMPLETION},
21 {{"info"}, {"log the parsing of .debug_info"}, DWARF_LOG_DEBUG_INFO},
22 {{"line"}, {"log the parsing of .debug_line"}, DWARF_LOG_DEBUG_LINE},
24 {"log any lookups that happen by name, regex, or address"},
27 {"log struct/unions/class type completions"},
30 {"log the parsing of .debug_pubnames"},
31 DWARF_LOG_DEBUG_PUBNAMES},
33 {"log the parsing of .debug_pubtypes"},
34 DWARF_LOG_DEBUG_PUBTYPES},
37 Log::Channel LogChannelDWARF::g_channel(g_categories, DWARF_LOG_DEFAULT);
39 void LogChannelDWARF::Initialize() {
40 Log::Register("dwarf", g_channel);
43 void LogChannelDWARF::Terminate() { Log::Unregister("dwarf"); }