Path: blob/main/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/LogChannelDWARF.cpp
39645 views
//===-- LogChannelDWARF.cpp -----------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "LogChannelDWARF.h"910using namespace lldb_private;1112static constexpr Log::Category g_categories[] = {13{{"comp"},14{"log struct/union/class type completions"},15DWARFLog::TypeCompletion},16{{"info"}, {"log the parsing of .debug_info"}, DWARFLog::DebugInfo},17{{"line"}, {"log the parsing of .debug_line"}, DWARFLog::DebugLine},18{{"lookups"},19{"log any lookups that happen by name, regex, or address"},20DWARFLog::Lookups},21{{"map"},22{"log insertions of object files into DWARF debug maps"},23DWARFLog::DebugMap},24{{"split"}, {"log split DWARF related activities"}, DWARFLog::SplitDwarf},25};2627static Log::Channel g_channel(g_categories, DWARFLog::DebugInfo);2829template <> Log::Channel &lldb_private::LogChannelFor<DWARFLog>() {30return g_channel;31}3233void LogChannelDWARF::Initialize() {34Log::Register("dwarf", g_channel);35}3637void LogChannelDWARF::Terminate() { Log::Unregister("dwarf"); }383940