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 
18 class DWARFDIE;
19 namespace lldb_private {
20 class CompileUnit;
21 class ExecutionContext;
22 }
23 class SymbolFileDWARF;
24 
26 public:
27  virtual ~DWARFASTParser() {}
28 
29  virtual lldb::TypeSP ParseTypeFromDWARF(const lldb_private::SymbolContext &sc,
30  const DWARFDIE &die,
31  bool *type_is_new_ptr) = 0;
32 
33  virtual lldb_private::Function *
34  ParseFunctionFromDWARF(lldb_private::CompileUnit &comp_unit,
35  const DWARFDIE &die) = 0;
36 
37  virtual bool
38  CompleteTypeFromDWARF(const DWARFDIE &die, lldb_private::Type *type,
39  lldb_private::CompilerType &compiler_type) = 0;
40 
42  GetDeclForUIDFromDWARF(const DWARFDIE &die) = 0;
43 
45  GetDeclContextForUIDFromDWARF(const DWARFDIE &die) = 0;
46 
48  GetDeclContextContainingUIDFromDWARF(const DWARFDIE &die) = 0;
49 
50  virtual void EnsureAllDIEsInDeclContextHaveBeenParsed(
51  lldb_private::CompilerDeclContext decl_context) = 0;
52 
53  static llvm::Optional<lldb_private::SymbolFile::ArrayInfo>
54  ParseChildArrayInfo(const DWARFDIE &parent_die,
55  const lldb_private::ExecutionContext *exe_ctx = nullptr);
56 };
57 
58 #endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFASTPARSER_H
A class that represents a running process on the host machine.
Represents a generic declaration context in a program.
Defines a symbol context baton that can be handed other debug core functions.
Definition: SymbolContext.h:33
A class that describes a function.
Definition: Function.h:409
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
A class that describes a compilation unit.
Definition: CompileUnit.h:37
virtual ~DWARFASTParser()
Represents a generic type in a programming language.
Definition: CompilerType.h:33
Represents a generic declaration such as a function declaration.
Definition: CompilerDecl.h:28