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"
14 #include "lldb/Symbol/SymbolFile.h"
17 #include "lldb/lldb-enumerations.h"
18 
19 class DWARFDIE;
20 namespace lldb_private {
21 class CompileUnit;
22 class ExecutionContext;
23 }
24 class SymbolFileDWARF;
25 
27 public:
28  virtual ~DWARFASTParser() = default;
29 
30  virtual lldb::TypeSP ParseTypeFromDWARF(const lldb_private::SymbolContext &sc,
31  const DWARFDIE &die,
32  bool *type_is_new_ptr) = 0;
33 
36 
37  virtual lldb_private::Function *
39  const DWARFDIE &die,
40  const lldb_private::AddressRange &range) = 0;
41 
42  virtual bool
44  lldb_private::CompilerType &compiler_type) = 0;
45 
47  GetDeclForUIDFromDWARF(const DWARFDIE &die) = 0;
48 
51 
54 
56  lldb_private::CompilerDeclContext decl_context) = 0;
57 
58  static llvm::Optional<lldb_private::SymbolFile::ArrayInfo>
59  ParseChildArrayInfo(const DWARFDIE &parent_die,
60  const lldb_private::ExecutionContext *exe_ctx = nullptr);
61 
62  static lldb::AccessType GetAccessTypeFromDWARF(uint32_t dwarf_accessibility);
63 };
64 
65 #endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFASTPARSER_H
lldb_private::ExecutionContext
Definition: ExecutionContext.h:292
CompilerDecl.h
DWARFASTParser::ParseChildArrayInfo
static llvm::Optional< lldb_private::SymbolFile::ArrayInfo > ParseChildArrayInfo(const DWARFDIE &parent_die, const lldb_private::ExecutionContext *exe_ctx=nullptr)
Definition: DWARFASTParser.cpp:22
SymbolFileDWARF
Definition: SymbolFileDWARF.h:60
lldb_private::CompilerDecl
Represents a generic declaration such as a function declaration.
Definition: CompilerDecl.h:28
lldb_private::SymbolContext
Definition: SymbolContext.h:33
DWARFDefines.h
lldb_private::CompileUnit
Definition: CompileUnit.h:38
DWARFDIE
Definition: DWARFDIE.h:16
lldb_private::Function
Definition: Function.h:409
DWARFASTParser::ParseFunctionFromDWARF
virtual lldb_private::Function * ParseFunctionFromDWARF(lldb_private::CompileUnit &comp_unit, const DWARFDIE &die, const lldb_private::AddressRange &range)=0
DWARFASTParser::EnsureAllDIEsInDeclContextHaveBeenParsed
virtual void EnsureAllDIEsInDeclContextHaveBeenParsed(lldb_private::CompilerDeclContext decl_context)=0
lldb_private::ConstString
Definition: ConstString.h:39
lldb-enumerations.h
lldb_private::AddressRange
Definition: AddressRange.h:25
DWARFASTParser::GetDeclContextForUIDFromDWARF
virtual lldb_private::CompilerDeclContext GetDeclContextForUIDFromDWARF(const DWARFDIE &die)=0
PluginInterface.h
DWARFASTParser::GetDeclContextContainingUIDFromDWARF
virtual lldb_private::CompilerDeclContext GetDeclContextContainingUIDFromDWARF(const DWARFDIE &die)=0
lldb_private::CompilerDeclContext
Represents a generic declaration context in a program.
Definition: CompilerDeclContext.h:30
DWARFASTParser::~DWARFASTParser
virtual ~DWARFASTParser()=default
uint32_t
DWARFASTParser
Definition: DWARFASTParser.h:26
DWARFASTParser::ParseTypeFromDWARF
virtual lldb::TypeSP ParseTypeFromDWARF(const lldb_private::SymbolContext &sc, const DWARFDIE &die, bool *type_is_new_ptr)=0
lldb_private::Type
Definition: Type.h:66
DWARFASTParser::ConstructDemangledNameFromDWARF
virtual lldb_private::ConstString ConstructDemangledNameFromDWARF(const DWARFDIE &die)=0
lldb_private::CompilerType
Generic representation of a type in a programming language.
Definition: CompilerType.h:35
CompilerDeclContext.h
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
DWARFASTParser::GetAccessTypeFromDWARF
static lldb::AccessType GetAccessTypeFromDWARF(uint32_t dwarf_accessibility)
Definition: DWARFASTParser.cpp:103
DWARFASTParser::CompleteTypeFromDWARF
virtual bool CompleteTypeFromDWARF(const DWARFDIE &die, lldb_private::Type *type, lldb_private::CompilerType &compiler_type)=0
lldb::AccessType
AccessType
Definition: lldb-enumerations.h:508
SymbolFile.h
DWARFASTParser::GetDeclForUIDFromDWARF
virtual lldb_private::CompilerDecl GetDeclForUIDFromDWARF(const DWARFDIE &die)=0