LLDB  mainline
DWARFDebugMacro.h
Go to the documentation of this file.
1 //===-- DWARFDebugMacro.h ----------------------------------------*- C++
2 //-*-===//
3 //
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFDEBUGMACRO_H
11 #define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFDEBUGMACRO_H
12 
13 #include <map>
14 
15 #include "lldb/Core/dwarf.h"
17 #include "lldb/lldb-types.h"
18 
19 namespace lldb_private {
20 
21 class DWARFDataExtractor;
22 
23 } // namespace lldb_private
24 
25 class SymbolFileDWARF;
26 
28 public:
33  };
34 
36  ParseHeader(const lldb_private::DWARFDataExtractor &debug_macro_data,
37  lldb::offset_t *offset);
38 
39  bool OffsetIs64Bit() const { return m_offset_is_64_bit; }
40 
41 private:
42  static void
43  SkipOperandTable(const lldb_private::DWARFDataExtractor &debug_macro_data,
44  lldb::offset_t *offset);
45 
49 };
50 
52 public:
53  static void
54  ReadMacroEntries(const lldb_private::DWARFDataExtractor &debug_macro_data,
55  const lldb_private::DWARFDataExtractor &debug_str_data,
56  const bool offset_is_64_bit, lldb::offset_t *sect_offset,
57  SymbolFileDWARF *sym_file_dwarf,
58  lldb_private::DebugMacrosSP &debug_macros_sp);
59 };
60 
61 #endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFDEBUGMACRO_H
DWARFDebugMacroHeader::OFFSET_SIZE_MASK
@ OFFSET_SIZE_MASK
Definition: DWARFDebugMacro.h:30
SymbolFileDWARF
Definition: SymbolFileDWARF.h:58
lldb::offset_t
uint64_t offset_t
Definition: lldb-types.h:87
lldb_private::DWARFDataExtractor
Definition: DWARFDataExtractor.h:18
DWARFDebugMacroHeader::OPCODE_OPERANDS_TABLE_MASK
@ OPCODE_OPERANDS_TABLE_MASK
Definition: DWARFDebugMacro.h:32
DWARFDebugMacroHeader::m_debug_line_offset
uint64_t m_debug_line_offset
Definition: DWARFDebugMacro.h:48
DWARFDebugMacroHeader::OffsetIs64Bit
bool OffsetIs64Bit() const
Definition: DWARFDebugMacro.h:39
DWARFDebugMacroHeader::m_offset_is_64_bit
bool m_offset_is_64_bit
Definition: DWARFDebugMacro.h:47
lldb_private::DebugMacrosSP
std::shared_ptr< DebugMacros > DebugMacrosSP
Definition: DebugMacros.h:21
DWARFDebugMacroEntry
Definition: DWARFDebugMacro.h:51
DWARFDebugMacroHeader::m_version
uint16_t m_version
Definition: DWARFDebugMacro.h:46
DWARFDebugMacroEntry::ReadMacroEntries
static void ReadMacroEntries(const lldb_private::DWARFDataExtractor &debug_macro_data, const lldb_private::DWARFDataExtractor &debug_str_data, const bool offset_is_64_bit, lldb::offset_t *sect_offset, SymbolFileDWARF *sym_file_dwarf, lldb_private::DebugMacrosSP &debug_macros_sp)
Definition: DWARFDebugMacro.cpp:59
DWARFDebugMacroHeader
Definition: DWARFDebugMacro.h:27
lldb-types.h
DWARFDebugMacroHeader::SkipOperandTable
static void SkipOperandTable(const lldb_private::DWARFDataExtractor &debug_macro_data, lldb::offset_t *offset)
Definition: DWARFDebugMacro.cpp:43
dwarf.h
uint16_t
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
DWARFDebugMacroHeader::ParseHeader
static DWARFDebugMacroHeader ParseHeader(const lldb_private::DWARFDataExtractor &debug_macro_data, lldb::offset_t *offset)
Definition: DWARFDebugMacro.cpp:19
DebugMacros.h
DWARFDebugMacroHeader::DEBUG_LINE_OFFSET_MASK
@ DEBUG_LINE_OFFSET_MASK
Definition: DWARFDebugMacro.h:31
DWARFDebugMacroHeader::HeaderFlagMask
HeaderFlagMask
Definition: DWARFDebugMacro.h:29