summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h
diff options
context:
space:
mode:
authorColin Riley <colin@codeplay.com>2015-04-14 07:39:24 +0000
committerColin Riley <colin@codeplay.com>2015-04-14 07:39:24 +0000
commitef20b08ff3d63f1fdca1a30b9e273f63adfddbfb (patch)
tree790ecc0b99a6712ccb4786b7ceee20bb2ea05ce5 /lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h
parent3f57216ca45258e4dbae7f0490530dcaa52a6b52 (diff)
downloadbcm5719-llvm-ef20b08ff3d63f1fdca1a30b9e273f63adfddbfb.tar.gz
bcm5719-llvm-ef20b08ff3d63f1fdca1a30b9e273f63adfddbfb.zip
Additions to RenderScriptRuntime in prep for detection of RenderScript modules and moving of the command interpreter manipulation to after construction.
Differential Revision: http://reviews.llvm.org/D9001 llvm-svn: 234871
Diffstat (limited to 'lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h')
-rw-r--r--lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h
index a6da125a740..bca0edcad9a 100644
--- a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h
+++ b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h
@@ -80,6 +80,16 @@ class RSModuleDescriptor
class RenderScriptRuntime : public lldb_private::CPPLanguageRuntime
{
public:
+
+ enum ModuleKind
+ {
+ eModuleKindIgnored,
+ eModuleKindLibRS,
+ eModuleKindDriver,
+ eModuleKindImpl,
+ eModuleKindKernelObj
+ };
+
~RenderScriptRuntime() {}
//------------------------------------------------------------------
@@ -93,6 +103,12 @@ class RenderScriptRuntime : public lldb_private::CPPLanguageRuntime
static lldb_private::ConstString GetPluginNameStatic();
+ static bool IsRenderScriptModule(const lldb::ModuleSP &module_sp);
+
+ static ModuleKind GetModuleKind(const lldb::ModuleSP &module_sp);
+
+ static void ModulesDidLoad(const lldb::ProcessSP& process_sp, const ModuleList &module_list );
+
//------------------------------------------------------------------
// PluginInterface protocol
//------------------------------------------------------------------
@@ -119,9 +135,15 @@ class RenderScriptRuntime : public lldb_private::CPPLanguageRuntime
return static_cast<size_t>(0);
}
+ virtual void ModulesDidLoad(const ModuleList &module_list );
+
+ void Update();
+
+ void Initiate();
+
protected:
std::vector<RSModuleDescriptor> m_rsmodules;
-
+ bool m_initiated;
private:
RenderScriptRuntime(Process *process); // Call CreateInstance instead.
};
OpenPOWER on IntegriCloud