From ef20b08ff3d63f1fdca1a30b9e273f63adfddbfb Mon Sep 17 00:00:00 2001 From: Colin Riley Date: Tue, 14 Apr 2015 07:39:24 +0000 Subject: 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 --- .../RenderScriptRuntime/RenderScriptRuntime.h | 24 +++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h') 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(0); } + virtual void ModulesDidLoad(const ModuleList &module_list ); + + void Update(); + + void Initiate(); + protected: std::vector m_rsmodules; - + bool m_initiated; private: RenderScriptRuntime(Process *process); // Call CreateInstance instead. }; -- cgit v1.2.3