diff options
author | Tamas Berghammer <tberghammer@google.com> | 2016-02-26 14:21:23 +0000 |
---|---|---|
committer | Tamas Berghammer <tberghammer@google.com> | 2016-02-26 14:21:23 +0000 |
commit | 87a9769e9b2106a2b5c94b70ed9fa3671a0f8b73 (patch) | |
tree | 7efe5a19551ee8f19eee4caab98fea3218e38285 /lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.h | |
parent | 5b42c7aa25b826747318824340ff229a60670b42 (diff) | |
download | bcm5719-llvm-87a9769e9b2106a2b5c94b70ed9fa3671a0f8b73.tar.gz bcm5719-llvm-87a9769e9b2106a2b5c94b70ed9fa3671a0f8b73.zip |
Add a set of new plugins to handle Java debugging
The purpose of these plugins is to make LLDB capable of debugging java
code JIT-ed by the android runtime.
Differential revision: http://reviews.llvm.org/D17616
llvm-svn: 262015
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.h')
-rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.h | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.h new file mode 100644 index 00000000000..6a7eee75e6f --- /dev/null +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.h @@ -0,0 +1,90 @@ +//===-- DWARFASTParserJava.h ------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef SymbolFileDWARF_DWARFASTParserJava_h_ +#define SymbolFileDWARF_DWARFASTParserJava_h_ + +// C Includes +// C++ Includes +// Other libraries and framework includes +#include "llvm/ADT/DenseMap.h" +#include "llvm/ADT/SmallPtrSet.h" +#include "llvm/ADT/SmallVector.h" + +// Project includes +#include "DWARFASTParser.h" +#include "DWARFDIE.h" +#include "DWARFDefines.h" +#include "lldb/Core/PluginInterface.h" +#include "lldb/Symbol/JavaASTContext.h" + +class DWARFDebugInfoEntry; +class DWARFDIECollection; + +class DWARFASTParserJava : public DWARFASTParser +{ +public: + DWARFASTParserJava(lldb_private::JavaASTContext &ast); + ~DWARFASTParserJava() override; + + lldb::TypeSP + ParseTypeFromDWARF(const lldb_private::SymbolContext &sc, const DWARFDIE &die, lldb_private::Log *log, + bool *type_is_new_ptr) override; + + lldb_private::Function * + ParseFunctionFromDWARF(const lldb_private::SymbolContext &sc, const DWARFDIE &die) override; + + bool + CompleteTypeFromDWARF(const DWARFDIE &die, lldb_private::Type *type, + lldb_private::CompilerType &java_type) override; + + lldb_private::CompilerDeclContext + GetDeclContextForUIDFromDWARF(const DWARFDIE &die) override + { + return lldb_private::CompilerDeclContext(); + } + + lldb_private::CompilerDeclContext + GetDeclContextContainingUIDFromDWARF(const DWARFDIE &die) override + { + return lldb_private::CompilerDeclContext(); + } + + lldb_private::CompilerDecl + GetDeclForUIDFromDWARF(const DWARFDIE &die) override + { + return lldb_private::CompilerDecl(); + } + + std::vector<DWARFDIE> + GetDIEForDeclContext(lldb_private::CompilerDeclContext decl_context) override + { + return std::vector<DWARFDIE>(); + } + + void + ParseChildMembers(const DWARFDIE &parent_die, lldb_private::CompilerType &class_compiler_type); + +private: + lldb_private::JavaASTContext &m_ast; + + lldb::TypeSP + ParseBaseTypeFromDIE(const DWARFDIE &die); + + lldb::TypeSP + ParseArrayTypeFromDIE(const DWARFDIE &die); + + lldb::TypeSP + ParseReferenceTypeFromDIE(const DWARFDIE &die); + + lldb::TypeSP + ParseClassTypeFromDIE(const DWARFDIE &die, bool &is_new_type); +}; + +#endif // SymbolFileDWARF_DWARFASTParserJava_h_ |