LLDB  mainline
LogChannelDWARF.cpp
Go to the documentation of this file.
1 //===-- LogChannelDWARF.cpp -----------------------------------------------===//
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  {{"comp"},
15  {"log struct/union/class type completions"},
17  {{"info"}, {"log the parsing of .debug_info"}, DWARFLog::DebugInfo},
18  {{"line"}, {"log the parsing of .debug_line"}, DWARFLog::DebugLine},
19  {{"lookups"},
20  {"log any lookups that happen by name, regex, or address"},
22  {{"map"},
23  {"log insertions of object files into DWARF debug maps"},
25 };
26 
28 
30  return g_channel;
31 }
32 
34  Log::Register("dwarf", g_channel);
35 }
36 
lldb_private::DWARFLog::DebugMap
@ DebugMap
lldb_private::LogChannelFor< DWARFLog >
Log::Channel & LogChannelFor< DWARFLog >()
Definition: LogChannelDWARF.cpp:29
lldb_private::DWARFLog::TypeCompletion
@ TypeCompletion
lldb_private::Log::Register
static void Register(llvm::StringRef name, Channel &channel)
Definition: Log.cpp:198
g_channel
static Log::Channel g_channel(g_categories, DWARFLog::DebugInfo)
g_categories
static constexpr Log::Category g_categories[]
Definition: LogChannelDWARF.cpp:13
lldb_private::LogChannelDWARF::Terminate
static void Terminate()
Definition: LogChannelDWARF.cpp:37
lldb_private::Log::Category
Definition: Log.h:130
lldb_private::DWARFLog::DebugLine
@ DebugLine
lldb_private::Log::Unregister
static void Unregister(llvm::StringRef name)
Definition: Log.cpp:204
LogChannelDWARF.h
lldb_private::Log::Channel
Definition: Log.h:146
lldb_private::LogChannelDWARF::Initialize
static void Initialize()
Definition: LogChannelDWARF.cpp:33
lldb_private::DWARFLog::Lookups
@ Lookups
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::DWARFLog::DebugInfo
@ DebugInfo