LLDB  mainline
LogChannelDWARF.cpp
Go to the documentation of this file.
1 //===-- LogChannelDWARF.cpp ------------------------------------*- C++ -*-===//
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 
27 Log::Channel LogChannelDWARF::g_channel(g_categories, DWARF_LOG_DEFAULT);
28 
30  Log::Register("dwarf", g_channel);
31 }
32 
static constexpr Log::Category g_categories[]
Enumerations for broadcasting.
Definition: SBLaunchInfo.h:14
static void Unregister(llvm::StringRef name)
Definition: Log.cpp:186
static void Register(llvm::StringRef name, Channel &channel)
Definition: Log.cpp:180
#define DWARF_LOG_LOOKUPS
#define DWARF_LOG_DEBUG_INFO
#define DWARF_LOG_DEFAULT
#define DWARF_LOG_TYPE_COMPLETION
#define DWARF_LOG_DEBUG_MAP
#define DWARF_LOG_DEBUG_LINE