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"}, DWARF_LOG_DEBUG_INFO},
18  {{"line"}, {"log the parsing of .debug_line"}, DWARF_LOG_DEBUG_LINE},
19  {{"lookups"},
20  {"log any lookups that happen by name, regex, or address"},
22  {{"map"},
23  {"log struct/unions/class type completions"},
25 };
26 
28 
30  Log::Register("dwarf", g_channel);
31 }
32 
DWARF_LOG_LOOKUPS
#define DWARF_LOG_LOOKUPS
Definition: LogChannelDWARF.h:16
lldb_private::Log::Register
static void Register(llvm::StringRef name, Channel &channel)
Definition: Log.cpp:189
lldb_private::LogChannelDWARF::g_channel
static Log::Channel g_channel
Definition: LogChannelDWARF.h:24
g_categories
static constexpr Log::Category g_categories[]
Definition: LogChannelDWARF.cpp:13
lldb_private::LogChannelDWARF::Terminate
static void Terminate()
Definition: LogChannelDWARF.cpp:33
DWARF_LOG_DEBUG_MAP
#define DWARF_LOG_DEBUG_MAP
Definition: LogChannelDWARF.h:18
lldb_private::Log::Category
Definition: Log.h:52
DWARF_LOG_DEBUG_INFO
#define DWARF_LOG_DEBUG_INFO
Definition: LogChannelDWARF.h:14
DWARF_LOG_DEFAULT
#define DWARF_LOG_DEFAULT
Definition: LogChannelDWARF.h:20
lldb_private::Log::Unregister
static void Unregister(llvm::StringRef name)
Definition: Log.cpp:195
LogChannelDWARF.h
lldb_private::Log::Channel
Definition: Log.h:60
lldb_private::LogChannelDWARF::Initialize
static void Initialize()
Definition: LogChannelDWARF.cpp:29
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
DWARF_LOG_TYPE_COMPLETION
#define DWARF_LOG_TYPE_COMPLETION
Definition: LogChannelDWARF.h:17
DWARF_LOG_DEBUG_LINE
#define DWARF_LOG_DEBUG_LINE
Definition: LogChannelDWARF.h:15