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 insertions of object files into DWARF debug maps"},
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"}, {"log struct/unions/class type completions"}, DWARFLog::DebugMap},
23 };
24 
26 
28  return g_channel;
29 }
30 
32  Log::Register("dwarf", g_channel);
33 }
34 
lldb_private::DWARFLog::DebugMap
@ DebugMap
lldb_private::LogChannelFor< DWARFLog >
Log::Channel & LogChannelFor< DWARFLog >()
Definition: LogChannelDWARF.cpp:27
lldb_private::DWARFLog::TypeCompletion
@ TypeCompletion
lldb_private::Log::Register
static void Register(llvm::StringRef name, Channel &channel)
Definition: Log.cpp:197
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:35
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:203
LogChannelDWARF.h
lldb_private::Log::Channel
Definition: Log.h:146
lldb_private::LogChannelDWARF::Initialize
static void Initialize()
Definition: LogChannelDWARF.cpp:31
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