1 //===-- LogChannelDWARF.cpp ------------------------------------*- C++ -*-===// 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 11 using namespace lldb_private; 12 13 static constexpr Log::Category g_categories[] = { 14 {{"aranges"}, 15 {"log the parsing of .debug_aranges"}, 16 DWARF_LOG_DEBUG_ARANGES}, 17 {{"comp"}, 18 {"log insertions of object files into DWARF debug maps"}, 19 DWARF_LOG_TYPE_COMPLETION}, 20 {{"info"}, {"log the parsing of .debug_info"}, DWARF_LOG_DEBUG_INFO}, 21 {{"line"}, {"log the parsing of .debug_line"}, DWARF_LOG_DEBUG_LINE}, 22 {{"lookups"}, 23 {"log any lookups that happen by name, regex, or address"}, 24 DWARF_LOG_LOOKUPS}, 25 {{"map"}, 26 {"log struct/unions/class type completions"}, 27 DWARF_LOG_DEBUG_MAP}, 28 {{"pubnames"}, 29 {"log the parsing of .debug_pubnames"}, 30 DWARF_LOG_DEBUG_PUBNAMES}, 31 {{"pubtypes"}, 32 {"log the parsing of .debug_pubtypes"}, 33 DWARF_LOG_DEBUG_PUBTYPES}, 34 }; 35 36 Log::Channel LogChannelDWARF::g_channel(g_categories, DWARF_LOG_DEFAULT); 37 38 void LogChannelDWARF::Initialize() { 39 Log::Register("dwarf", g_channel); 40 } 41 42 void LogChannelDWARF::Terminate() { Log::Unregister("dwarf"); } 43