1 //===-- LogChannelDWARF.cpp -----------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 #include "LogChannelDWARF.h"
11 using namespace lldb_private
;
13 static constexpr Log::Category g_categories
[] = {
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
},
20 {"log any lookups that happen by name, regex, or address"},
23 {"log insertions of object files into DWARF debug maps"},
25 {{"split"}, {"log split DWARF related activities"}, DWARFLog::SplitDwarf
},
28 static Log::Channel
g_channel(g_categories
, DWARFLog::DebugInfo
);
30 template <> Log::Channel
&lldb_private::LogChannelFor
<DWARFLog
>() {
34 void LogChannelDWARF::Initialize() {
35 Log::Register("dwarf", g_channel
);
38 void LogChannelDWARF::Terminate() { Log::Unregister("dwarf"); }