LLDB mainline
DWARFASTParser.h
Go to the documentation of this file.
1//===-- DWARFASTParser.h ----------------------------------------*- 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#ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFASTPARSER_H
10#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFASTPARSER_H
11
12#include "DWARFDefines.h"
18#include <optional>
19
20class DWARFDIE;
21namespace lldb_private {
22class CompileUnit;
23class ExecutionContext;
24}
25class SymbolFileDWARF;
26
28public:
29 virtual ~DWARFASTParser() = default;
30
32 const DWARFDIE &die,
33 bool *type_is_new_ptr) = 0;
34
37
40 const DWARFDIE &die,
41 const lldb_private::AddressRange &range) = 0;
42
43 virtual bool
45 lldb_private::CompilerType &compiler_type) = 0;
46
49
52
55
57 lldb_private::CompilerDeclContext decl_context) = 0;
58
61
62 static std::optional<lldb_private::SymbolFile::ArrayInfo>
63 ParseChildArrayInfo(const DWARFDIE &parent_die,
64 const lldb_private::ExecutionContext *exe_ctx = nullptr);
65
66 static lldb::AccessType GetAccessTypeFromDWARF(uint32_t dwarf_accessibility);
67};
68
69#endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFASTPARSER_H
virtual lldb_private::CompilerDeclContext GetDeclContextContainingUIDFromDWARF(const DWARFDIE &die)=0
virtual lldb_private::Function * ParseFunctionFromDWARF(lldb_private::CompileUnit &comp_unit, const DWARFDIE &die, const lldb_private::AddressRange &range)=0
virtual lldb_private::ConstString GetDIEClassTemplateParams(const DWARFDIE &die)=0
virtual void EnsureAllDIEsInDeclContextHaveBeenParsed(lldb_private::CompilerDeclContext decl_context)=0
virtual lldb_private::ConstString ConstructDemangledNameFromDWARF(const DWARFDIE &die)=0
static lldb::AccessType GetAccessTypeFromDWARF(uint32_t dwarf_accessibility)
virtual ~DWARFASTParser()=default
virtual bool CompleteTypeFromDWARF(const DWARFDIE &die, lldb_private::Type *type, lldb_private::CompilerType &compiler_type)=0
virtual lldb_private::CompilerDecl GetDeclForUIDFromDWARF(const DWARFDIE &die)=0
virtual lldb::TypeSP ParseTypeFromDWARF(const lldb_private::SymbolContext &sc, const DWARFDIE &die, bool *type_is_new_ptr)=0
virtual lldb_private::CompilerDeclContext GetDeclContextForUIDFromDWARF(const DWARFDIE &die)=0
static std::optional< lldb_private::SymbolFile::ArrayInfo > ParseChildArrayInfo(const DWARFDIE &parent_die, const lldb_private::ExecutionContext *exe_ctx=nullptr)
A section + offset based address range class.
Definition: AddressRange.h:25
A class that describes a compilation unit.
Definition: CompileUnit.h:41
Represents a generic declaration context in a program.
Represents a generic declaration such as a function declaration.
Definition: CompilerDecl.h:28
Generic representation of a type in a programming language.
Definition: CompilerType.h:36
A uniqued constant string class.
Definition: ConstString.h:40
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
A class that describes a function.
Definition: Function.h:399
Defines a symbol context baton that can be handed other debug core functions.
Definition: SymbolContext.h:33
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14
std::shared_ptr< lldb_private::Type > TypeSP
Definition: lldb-forward.h:436