LLDB
mainline
|
#include <RenderScriptRuntime.h>
Classes | |
struct | AllocationDetails |
struct | Element |
struct | HookDefn |
struct | RuntimeHook |
struct | ScriptDetails |
Public Member Functions | |
~RenderScriptRuntime () override | |
bool | isA (const void *ClassID) const override |
bool | GetDynamicTypeAndAddress (ValueObject &in_value, lldb::DynamicValueType use_dynamic, TypeAndOrName &class_type_or_name, Address &address, Value::ValueType &value_type) override |
TypeAndOrName | FixUpDynamicType (const TypeAndOrName &type_and_or_name, ValueObject &static_value) override |
bool | CouldHaveDynamicValue (ValueObject &in_value) override |
lldb::BreakpointResolverSP | CreateExceptionResolver (const lldb::BreakpointSP &bp, bool catch_bp, bool throw_bp) override |
bool | LoadModule (const lldb::ModuleSP &module_sp) |
void | DumpModules (Stream &strm) const |
void | DumpContexts (Stream &strm) const |
void | DumpKernels (Stream &strm) const |
bool | DumpAllocation (Stream &strm, StackFrame *frame_ptr, const uint32_t id) |
void | ListAllocations (Stream &strm, StackFrame *frame_ptr, const uint32_t index) |
bool | RecomputeAllAllocations (Stream &strm, StackFrame *frame_ptr) |
bool | PlaceBreakpointOnKernel (lldb::TargetSP target, Stream &messages, const char *name, const lldb_renderscript::RSCoordinate *coords=nullptr) |
bool | PlaceBreakpointOnReduction (lldb::TargetSP target, Stream &messages, const char *reduce_name, const lldb_renderscript::RSCoordinate *coords=nullptr, int kernel_types=~(0)) |
bool | PlaceBreakpointOnScriptGroup (lldb::TargetSP target, Stream &strm, ConstString name, bool stop_on_all) |
void | SetBreakAllKernels (bool do_break, lldb::TargetSP target) |
void | DumpStatus (Stream &strm) const |
void | ModulesDidLoad (const ModuleList &module_list) override |
Called when modules have been loaded in the process. More... | |
bool | LoadAllocation (Stream &strm, const uint32_t alloc_id, const char *filename, StackFrame *frame_ptr) |
bool | SaveAllocation (Stream &strm, const uint32_t alloc_id, const char *filename, StackFrame *frame_ptr) |
void | Update () |
void | Initiate () |
const lldb_renderscript::RSScriptGroupList & | GetScriptGroups () const |
bool | IsKnownKernel (ConstString name) |
bool | GetOverrideExprOptions (clang::TargetOptions &prototype) |
llvm::StringRef | GetPluginName () override |
bool | ResolveKernelName (lldb::addr_t kernel_address, ConstString &name) |
![]() | |
LibCppStdFunctionCallableInfo | FindLibCppStdFunctionCallableInfo (lldb::ValueObjectSP &valobj_sp) |
lldb::LanguageType | GetLanguageType () const override |
bool | GetObjectDescription (Stream &str, ValueObject &object) override |
bool | GetObjectDescription (Stream &str, Value &value, ExecutionContextScope *exe_scope) override |
lldb::ThreadPlanSP | GetStepThroughTrampolinePlan (Thread &thread, bool stop_others) override |
Obtain a ThreadPlan to get us into C++ constructs such as std::function. More... | |
bool | IsAllowedRuntimeValue (ConstString name) override |
Identify whether a name is a runtime value that should not be hidden by from the user interface. More... | |
![]() | |
virtual CompilerType | GetConcreteType (ExecutionContextScope *exe_scope, ConstString abstract_type_name) |
virtual void | SetExceptionBreakpoints () |
virtual void | ClearExceptionBreakpoints () |
virtual bool | ExceptionBreakpointsAreSet () |
virtual bool | ExceptionBreakpointsExplainStop (lldb::StopInfoSP stop_reason) |
virtual lldb::ValueObjectSP | GetExceptionObjectForThread (lldb::ThreadSP thread_sp) |
virtual lldb::ThreadSP | GetBacktraceThreadFromException (lldb::ValueObjectSP thread_sp) |
virtual DeclVendor * | GetDeclVendor () |
virtual lldb::SearchFilterSP | CreateExceptionSearchFilter () |
virtual bool | GetTypeBitSize (const CompilerType &compiler_type, uint64_t &size) |
virtual void | SymbolsDidLoad (const ModuleList &module_list) |
virtual llvm::Optional< CompilerType > | GetRuntimeType (CompilerType base_type) |
virtual lldb::addr_t | LookupRuntimeSymbol (ConstString name) |
![]() | |
Runtime (Process *process) | |
virtual | ~Runtime ()=default |
Runtime (const Runtime &)=delete | |
const Runtime & | operator= (const Runtime &)=delete |
Process * | GetProcess () |
Target & | GetTargetRef () |
![]() | |
PluginInterface ()=default | |
virtual | ~PluginInterface ()=default |
PluginInterface (const PluginInterface &)=delete | |
PluginInterface & | operator= (const PluginInterface &)=delete |
Static Public Member Functions | |
static void | Initialize () |
static void | Terminate () |
static lldb_private::LanguageRuntime * | CreateInstance (Process *process, lldb::LanguageType language) |
static lldb::CommandObjectSP | GetCommandObject (CommandInterpreter &interpreter) |
static llvm::StringRef | GetPluginNameStatic () |
static bool | classof (const LanguageRuntime *runtime) |
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) |
static bool | GetKernelCoordinate (lldb_renderscript::RSCoordinate &coord, Thread *thread_ptr) |
![]() | |
static bool | classof (const LanguageRuntime *runtime) |
static CPPLanguageRuntime * | Get (Process &process) |
![]() | |
static LanguageRuntime * | FindPlugin (Process *process, lldb::LanguageType language) |
static void | InitializeCommands (CommandObject *parent) |
static lldb::BreakpointSP | CreateExceptionBreakpoint (Target &target, lldb::LanguageType language, bool catch_bp, bool throw_bp, bool is_internal=false) |
static lldb::BreakpointPreconditionSP | GetExceptionPrecondition (lldb::LanguageType language, bool throw_bp) |
static lldb::UnwindPlanSP | GetRuntimeUnwindPlan (lldb_private::Thread &thread, lldb_private::RegisterContext *regctx, bool &behaves_like_zeroth_frame) |
A language runtime may be able to provide a special UnwindPlan for the frame represented by the register contents regctx when that frame is not following the normal ABI conventions. More... | |
Static Public Attributes | |
static char | ID = 0 |
![]() | |
static char | ID = 0 |
![]() | |
static char | ID = 0 |
Protected Types | |
typedef void(RenderScriptRuntime::* | CaptureStateFn) (RuntimeHook *hook_info, ExecutionContext &context) |
typedef std::shared_ptr< RuntimeHook > | RuntimeHookSP |
Protected Member Functions | |
void | InitSearchFilter (lldb::TargetSP target) |
void | FixupScriptDetails (lldb_renderscript::RSModuleDescriptorSP rsmodule_sp) |
void | LoadRuntimeHooks (lldb::ModuleSP module, ModuleKind kind) |
bool | RefreshAllocation (AllocationDetails *alloc, StackFrame *frame_ptr) |
bool | EvalRSExpression (const char *expression, StackFrame *frame_ptr, uint64_t *result) |
lldb::BreakpointSP | CreateScriptGroupBreakpoint (ConstString name, bool multi) |
lldb::BreakpointSP | CreateKernelBreakpoint (ConstString name) |
lldb::BreakpointSP | CreateReductionBreakpoint (ConstString name, int kernel_types) |
void | BreakOnModuleKernels (const lldb_renderscript::RSModuleDescriptorSP rsmodule_sp) |
![]() | |
CPPLanguageRuntime (Process *process) | |
![]() | |
virtual lldb::UnwindPlanSP | GetRuntimeUnwindPlan (lldb::ProcessSP process_sp, lldb_private::RegisterContext *regctx, bool &behaves_like_zeroth_frame) |
LanguageRuntime (Process *process) | |
Protected Attributes | |
lldb_renderscript::RSScriptGroupList | m_scriptGroups |
lldb::ModuleSP | m_libRS |
lldb::ModuleSP | m_libRSDriver |
lldb::ModuleSP | m_libRSCpuRef |
std::vector< lldb_renderscript::RSModuleDescriptorSP > | m_rsmodules |
std::vector< std::unique_ptr< ScriptDetails > > | m_scripts |
std::vector< std::unique_ptr< AllocationDetails > > | m_allocations |
std::map< lldb::addr_t, lldb_renderscript::RSModuleDescriptorSP > | m_scriptMappings |
std::map< lldb::addr_t, RuntimeHookSP > | m_runtimeHooks |
std::map< lldb::user_id_t, std::unique_ptr< lldb_renderscript::RSCoordinate > > | m_conditional_breaks |
lldb::SearchFilterSP | m_filtersp |
bool | m_initiated |
bool | m_debuggerPresentFlagged |
bool | m_breakAllKernels |
LLVMUserExpression::IRPasses * | m_ir_passes |
![]() | |
Process * | m_process |
Static Protected Attributes | |
static const HookDefn | s_runtimeHookDefns [] |
static const size_t | s_runtimeHookCount |
Static Private Member Functions | |
static bool | HookCallback (void *baton, StoppointCallbackContext *ctx, lldb::user_id_t break_id, lldb::user_id_t break_loc_id) |
static bool | KernelBreakpointHit (void *baton, StoppointCallbackContext *ctx, lldb::user_id_t break_id, lldb::user_id_t break_loc_id) |
static bool | GetFrameVarAsUnsigned (const lldb::StackFrameSP, const char *var_name, uint64_t &val) |
Definition at line 298 of file RenderScriptRuntime.h.
|
protected |
Definition at line 454 of file RenderScriptRuntime.h.
|
protected |
Definition at line 473 of file RenderScriptRuntime.h.
Enumerator | |
---|---|
eModuleKindIgnored | |
eModuleKindLibRS | |
eModuleKindDriver | |
eModuleKindImpl | |
eModuleKindKernelObj |
Definition at line 300 of file RenderScriptRuntime.h.
|
overridedefault |
|
private |
Definition at line 4924 of file RenderScriptRuntime.cpp.
References lldb_private::Target::GetImages(), lldb_private::Process::GetTarget(), and ModulesDidLoad().
|
protected |
Definition at line 3443 of file RenderScriptRuntime.cpp.
|
private |
Definition at line 2602 of file RenderScriptRuntime.cpp.
References lldb_private::RenderScriptRuntime::Element::children.
|
private |
Definition at line 1431 of file RenderScriptRuntime.cpp.
References lldb_private::GetLog(), and LLDB_LOGF.
|
private |
Definition at line 1403 of file RenderScriptRuntime.cpp.
References lldb_private::RenderScriptRuntime::AllocationDetails::context, lldb_private::GetLog(), and LLDB_LOGF.
|
private |
Definition at line 1118 of file RenderScriptRuntime.cpp.
References lldb_private::ConstString::AsCString(), lldb_private::Target::GetBreakpointList(), lldb_private::ConstString::GetCString(), lldb_private::GetLog(), lldb_private::ConstString::GetStringRef(), list(), LLDB_LOGF, lldb_private::lldb_renderscript::RSScriptGroupDescriptor::Kernel::m_addr, lldb_private::lldb_renderscript::RSScriptGroupDescriptor::Kernel::m_name, lldb_private::ConstString::SetCString(), and lldb_private::Status::Success().
|
private |
Definition at line 1468 of file RenderScriptRuntime.cpp.
References lldb_private::Status::AsCString(), lldb_private::RenderScriptRuntime::ScriptDetails::cache_dir, lldb_private::RenderScriptRuntime::ScriptDetails::context, lldb_private::Status::Fail(), lldb_private::StreamString::GetData(), lldb_private::GetLog(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::StreamString::GetString(), LLDB_LOGF, lldb_private::Stream::Printf(), lldb_private::Process::ReadCStringFromMemory(), lldb_private::RenderScriptRuntime::ScriptDetails::res_name, lldb_private::RenderScriptRuntime::ScriptDetails::shared_lib, string(), and lldb_private::RenderScriptRuntime::ScriptDetails::type.
|
private |
Definition at line 1256 of file RenderScriptRuntime.cpp.
References lldb_private::RenderScriptRuntime::AllocationDetails::address, lldb_private::RenderScriptRuntime::AllocationDetails::context, lldb_private::GetLog(), LLDB_LOGF, and lldb_private::Status::Success().
|
private |
Definition at line 1356 of file RenderScriptRuntime.cpp.
References lldb_private::GetLog(), and LLDB_LOGF.
|
inlinestatic |
Definition at line 329 of file RenderScriptRuntime.h.
References ID, and lldb_private::LanguageRuntime::isA().
|
overridevirtual |
Implements lldb_private::LanguageRuntime.
Definition at line 1025 of file RenderScriptRuntime.cpp.
|
private |
Definition at line 3838 of file RenderScriptRuntime.cpp.
References lldb_private::GetLog(), and LLDB_LOGF.
|
overridevirtual |
Implements lldb_private::LanguageRuntime.
Definition at line 1030 of file RenderScriptRuntime.cpp.
|
static |
Definition at line 780 of file RenderScriptRuntime.cpp.
References lldb::eLanguageTypeExtRenderScript.
|
protected |
Definition at line 3485 of file RenderScriptRuntime.cpp.
References lldb_private::Target::AddNameToBreakpoint(), lldb_private::Status::AsCString(), lldb_private::Target::CreateBreakpoint(), lldb_private::Status::Fail(), lldb_private::GetLog(), and LLDB_LOGF.
|
protected |
Definition at line 3511 of file RenderScriptRuntime.cpp.
References lldb_private::Target::AddNameToBreakpoint(), lldb_private::Status::AsCString(), lldb_private::Target::CreateBreakpoint(), lldb_private::Status::Fail(), lldb_private::GetLog(), and LLDB_LOGF.
|
protected |
bool RenderScriptRuntime::DumpAllocation | ( | Stream & | strm, |
StackFrame * | frame_ptr, | ||
const uint32_t | id | ||
) |
Definition at line 3168 of file RenderScriptRuntime.cpp.
References lldb_private::RenderScriptRuntime::AllocationDetails::address, lldb_private::ConstString::AsCString(), lldb_private::RenderScriptRuntime::Element::children, lldb_private::RenderScriptRuntime::AllocationDetails::data_ptr, lldb_private::RenderScriptRuntime::Element::datum_size, lldb_private::RenderScriptRuntime::AllocationDetails::dimension, lldb_private::DumpDataExtractor(), lldb::eFormatHex, eFormatSingle, eFormatVector, lldb_private::RenderScriptRuntime::AllocationDetails::element, lldb_private::Stream::EOL(), lldb_private::GetLog(), LLDB_INVALID_ADDRESS, LLDB_LOGF, lldb_private::RenderScriptRuntime::Element::padding, lldb_private::Stream::Printf(), lldb_private::DumpValueObjectOptions::SetHideName(), lldb_private::RenderScriptRuntime::AllocationDetails::ShouldRefresh(), lldb_private::RenderScriptRuntime::AllocationDetails::size, lldb_private::RenderScriptRuntime::AllocationDetails::stride, lldb_private::RenderScriptRuntime::Element::type, lldb_private::RenderScriptRuntime::Element::type_name, and lldb_private::RenderScriptRuntime::Element::type_vec_size.
Referenced by CommandObjectRenderScriptRuntimeAllocationDump::DoExecute().
void RenderScriptRuntime::DumpContexts | ( | Stream & | strm | ) | const |
Definition at line 3094 of file RenderScriptRuntime.cpp.
References lldb_private::Stream::EOL(), lldb_private::Stream::IndentLess(), lldb_private::Stream::IndentMore(), and lldb_private::Stream::Printf().
Referenced by CommandObjectRenderScriptRuntimeContextDump::DoExecute().
void RenderScriptRuntime::DumpKernels | ( | Stream & | strm | ) | const |
Definition at line 3123 of file RenderScriptRuntime.cpp.
References lldb_private::Stream::EOL(), lldb_private::Stream::Indent(), lldb_private::Stream::IndentLess(), lldb_private::Stream::IndentMore(), and lldb_private::Stream::Printf().
Referenced by CommandObjectRenderScriptRuntimeKernelList::DoExecute().
void RenderScriptRuntime::DumpModules | ( | Stream & | strm | ) | const |
Definition at line 3801 of file RenderScriptRuntime.cpp.
References lldb_private::Stream::EOL(), lldb_private::Stream::IndentLess(), lldb_private::Stream::IndentMore(), and lldb_private::Stream::Printf().
Referenced by CommandObjectRenderScriptRuntimeModuleDump::DoExecute().
void RenderScriptRuntime::DumpStatus | ( | Stream & | strm | ) | const |
Definition at line 3067 of file RenderScriptRuntime.cpp.
References lldb_private::Stream::EOL(), lldb_private::Stream::Indent(), and lldb_private::Stream::Printf().
Referenced by CommandObjectRenderScriptRuntimeStatus::DoExecute().
|
protected |
Definition at line 1676 of file RenderScriptRuntime.cpp.
References lldb_private::Status::AsCString(), lldb::eLanguageTypeC_plus_plus, lldb_private::Status::GetError(), lldb_private::GetLog(), LLDB_LOGF, and lldb_private::EvaluateExpressionOptions::SetLanguage().
|
private |
Definition at line 3139 of file RenderScriptRuntime.cpp.
References lldb_private::Stream::EOL(), and lldb_private::Stream::Printf().
|
private |
Definition at line 2222 of file RenderScriptRuntime.cpp.
References lldb_private::ConstString::AsCString(), lldb_private::RenderScriptRuntime::Element::children, lldb_private::Status::Fail(), lldb_private::GetLog(), lldb_private::ConstString::IsEmpty(), LLDB_LOGF, lldb_private::RenderScriptRuntime::Element::type_name, and UINT32_MAX.
|
overridevirtual |
Implements lldb_private::LanguageRuntime.
Definition at line 1020 of file RenderScriptRuntime.cpp.
|
protected |
Definition at line 1619 of file RenderScriptRuntime.cpp.
References lldb_private::FileSpec::GetFilename(), lldb_private::GetLog(), LLDB_LOGF, and string().
|
private |
Definition at line 2350 of file RenderScriptRuntime.cpp.
References lldb_private::Status::AsCString(), lldb_private::RenderScriptRuntime::AllocationDetails::data_ptr, lldb_private::RenderScriptRuntime::AllocationDetails::element, lldb_private::Status::Fail(), lldb_private::GetLog(), LLDB_LOGF, lldb_private::RenderScriptRuntime::AllocationDetails::ShouldRefresh(), lldb_private::RenderScriptRuntime::AllocationDetails::size, lldb_private::RenderScriptRuntime::Element::type, and lldb_private::RenderScriptRuntime::Element::type_vec_size.
|
static |
Definition at line 4931 of file RenderScriptRuntime.cpp.
|
overridevirtual |
Implements lldb_private::LanguageRuntime.
Definition at line 1012 of file RenderScriptRuntime.cpp.
|
staticprivate |
Definition at line 3541 of file RenderScriptRuntime.cpp.
References lldb::eNoDynamicValues, lldb_private::GetLog(), LLDB_LOGF, and lldb_private::Status::Success().
|
overrideprivatevirtual |
Reimplemented from lldb_private::LanguageRuntime.
Definition at line 164 of file RenderScriptExpressionOpts.cpp.
References lldb_private::LLVMUserExpression::IRPasses::EarlyPasses, and lldb_private::LLVMUserExpression::IRPasses::LatePasses.
|
static |
Definition at line 3576 of file RenderScriptRuntime.cpp.
References lldb_private::ConstString::GetCString(), lldb_private::SymbolContext::GetFunctionName(), lldb_private::GetLog(), lldb_private::Thread::GetSelectedFrame(), lldb_private::Thread::GetStackFrameCount(), lldb_private::ConstString::GetStringRef(), LLDB_LOGF, lldb_private::Thread::SetSelectedFrameByIndex(), UINT32_MAX, lldb_private::lldb_renderscript::RSCoordinate::x, lldb_private::lldb_renderscript::RSCoordinate::y, and lldb_private::lldb_renderscript::RSCoordinate::z.
|
static |
Definition at line 971 of file RenderScriptRuntime.cpp.
bool lldb_private::RenderScriptRuntime::GetOverrideExprOptions | ( | clang::TargetOptions & | prototype | ) |
Definition at line 157 of file RenderScriptExpressionOpts.cpp.
References registerRSDefaultTargetOpts().
|
inlineoverridevirtual |
Implements lldb_private::PluginInterface.
Definition at line 413 of file RenderScriptRuntime.h.
References GetPluginNameStatic().
|
inlinestatic |
Definition at line 321 of file RenderScriptRuntime.h.
Referenced by GetPluginName().
|
inline |
Definition at line 398 of file RenderScriptRuntime.h.
References m_scriptGroups.
Referenced by CommandObjectRenderScriptScriptGroupList::DoExecute().
|
private |
Definition at line 1107 of file RenderScriptRuntime.cpp.
References lldb_private::RenderScriptRuntime::RuntimeHook::defn, lldb_private::GetLog(), lldb_private::RenderScriptRuntime::HookDefn::grabber, LLDB_LOGF, and lldb_private::RenderScriptRuntime::HookDefn::name.
|
staticprivate |
Definition at line 1091 of file RenderScriptRuntime.cpp.
References lldb::eLanguageTypeExtRenderScript, lldb_private::StoppointCallbackContext::exe_ctx_ref, lldb_private::Process::GetLanguageRuntime(), lldb_private::ExecutionContext::GetProcessPtr(), and HookCallback().
Referenced by HookCallback().
|
static |
Definition at line 960 of file RenderScriptRuntime.cpp.
void RenderScriptRuntime::Initiate | ( | ) |
Definition at line 4922 of file RenderScriptRuntime.cpp.
|
inlineprotected |
Definition at line 427 of file RenderScriptRuntime.h.
References m_filtersp.
|
inlineoverridevirtual |
Reimplemented from lldb_private::CPPLanguageRuntime.
Definition at line 325 of file RenderScriptRuntime.h.
References ID, and lldb_private::CPPLanguageRuntime::isA().
|
inline |
Definition at line 402 of file RenderScriptRuntime.h.
References m_rsmodules.
|
static |
Definition at line 995 of file RenderScriptRuntime.cpp.
|
private |
Definition at line 2095 of file RenderScriptRuntime.cpp.
References lldb_private::RenderScriptRuntime::AllocationDetails::address, lldb_private::RenderScriptRuntime::Element::children, lldb_private::RenderScriptRuntime::AllocationDetails::data_ptr, lldb_private::RenderScriptRuntime::Element::datum_size, lldb_private::RenderScriptRuntime::AllocationDetails::dimension, lldb_private::RenderScriptRuntime::AllocationDetails::element, lldb_private::GetLog(), LLDB_LOGF, and lldb_private::RenderScriptRuntime::AllocationDetails::size.
|
private |
|
private |
Definition at line 1823 of file RenderScriptRuntime.cpp.
References lldb_private::RenderScriptRuntime::AllocationDetails::address, lldb_private::RenderScriptRuntime::AllocationDetails::data_ptr, lldb_private::GetLog(), and LLDB_LOGF.
|
private |
Definition at line 1954 of file RenderScriptRuntime.cpp.
References lldb_private::RenderScriptRuntime::Element::element_ptr, lldb_private::RenderScriptRuntime::Element::field_count, lldb_private::GetLog(), LLDB_LOGF, lldb_private::RenderScriptRuntime::Element::type, lldb_private::RenderScriptRuntime::Element::type_kind, and lldb_private::RenderScriptRuntime::Element::type_vec_size.
|
private |
Definition at line 2011 of file RenderScriptRuntime.cpp.
References lldb_private::RenderScriptRuntime::Element::array_size, lldb_private::RenderScriptRuntime::Element::children, lldb_private::RenderScriptRuntime::Element::element_ptr, lldb_private::Status::Fail(), lldb_private::RenderScriptRuntime::Element::field_count, lldb_private::GetLog(), LLDB_LOGF, string(), and lldb_private::RenderScriptRuntime::Element::type_name.
|
private |
Definition at line 1894 of file RenderScriptRuntime.cpp.
References lldb_private::bits(), lldb_private::RenderScriptRuntime::AllocationDetails::context, lldb_private::RenderScriptRuntime::AllocationDetails::Dimension::dim_1, lldb_private::RenderScriptRuntime::AllocationDetails::Dimension::dim_2, lldb_private::RenderScriptRuntime::AllocationDetails::Dimension::dim_3, lldb_private::RenderScriptRuntime::AllocationDetails::dimension, lldb_private::RenderScriptRuntime::AllocationDetails::element, lldb_private::RenderScriptRuntime::Element::element_ptr, lldb_private::GetLog(), LLDB_LOGF, and lldb_private::RenderScriptRuntime::AllocationDetails::type_ptr.
|
private |
|
staticprivate |
Definition at line 3644 of file RenderScriptRuntime.cpp.
References lldb_private::StoppointCallbackContext::exe_ctx_ref, FMT_COORD, lldb_private::Target::GetBreakpointByID(), lldb_private::GetLog(), lldb_private::ExecutionContext::GetTargetPtr(), lldb_private::ExecutionContext::GetThreadPtr(), LLDB_LOGF, lldb_private::lldb_renderscript::RSCoordinate::x, lldb_private::lldb_renderscript::RSCoordinate::y, and lldb_private::lldb_renderscript::RSCoordinate::z.
void RenderScriptRuntime::ListAllocations | ( | Stream & | strm, |
StackFrame * | frame_ptr, | ||
const uint32_t | index | ||
) |
Definition at line 3344 of file RenderScriptRuntime.cpp.
References lldb_private::Stream::EOL(), lldb_private::Stream::Indent(), lldb_private::Stream::IndentLess(), lldb_private::Stream::IndentMore(), and lldb_private::Stream::Printf().
Referenced by CommandObjectRenderScriptRuntimeAllocationList::DoExecute().
bool RenderScriptRuntime::LoadAllocation | ( | Stream & | strm, |
const uint32_t | alloc_id, | ||
const char * | filename, | ||
StackFrame * | frame_ptr | ||
) |
Definition at line 2397 of file RenderScriptRuntime.cpp.
References lldb_private::RenderScriptRuntime::AllocationDetails::address, lldb_private::Status::AsCString(), lldb_private::RenderScriptRuntime::AllocationDetails::data_ptr, lldb_private::RenderScriptRuntime::Element::datum_size, lldb_private::RenderScriptRuntime::AllocationDetails::element, lldb_private::RenderScriptRuntime::AllocationDetails::ElementHeader::element_size, lldb_private::Stream::EOL(), lldb_private::GetLog(), lldb_private::FileSpec::GetPath(), lldb_private::RenderScriptRuntime::AllocationDetails::FileHeader::hdr_size, lldb_private::RenderScriptRuntime::AllocationDetails::id, lldb_private::RenderScriptRuntime::AllocationDetails::FileHeader::ident, LLDB_LOGF, lldb_private::Stream::Printf(), lldb_private::RenderScriptRuntime::AllocationDetails::ShouldRefresh(), lldb_private::RenderScriptRuntime::AllocationDetails::size, lldb_private::Status::Success(), lldb_private::RenderScriptRuntime::Element::type, lldb_private::RenderScriptRuntime::AllocationDetails::ElementHeader::type, and lldb_private::RenderScriptRuntime::Element::type_vec_size.
Referenced by CommandObjectRenderScriptRuntimeAllocationLoad::DoExecute().
bool RenderScriptRuntime::LoadModule | ( | const lldb::ModuleSP & | module_sp | ) |
Definition at line 2739 of file RenderScriptRuntime.cpp.
References lldb_private::Status::AsCString(), lldb::eSymbolTypeData, lldb_private::Symbol::GetLoadAddress(), lldb_private::GetLog(), LLDB_LOGF, and lldb_private::Status::Success().
|
protected |
Definition at line 1529 of file RenderScriptRuntime.cpp.
References lldb_private::Target::CreateBreakpoint(), lldb::eSymbolTypeCode, lldb_private::ArchSpec::GetAddressByteSize(), lldb_private::Target::GetArchitecture(), lldb_private::GetLog(), lldb_private::ArchSpec::GetMachine(), lldb_private::RenderScriptRuntime::HookDefn::kind, LLDB_INVALID_ADDRESS, LLDB_LOGF, lldb_private::RenderScriptRuntime::HookDefn::name, lldb_private::RenderScriptRuntime::HookDefn::symbol_name_m32, lldb_private::RenderScriptRuntime::HookDefn::symbol_name_m64, and lldb_private::RenderScriptRuntime::HookDefn::version.
|
private |
Definition at line 3828 of file RenderScriptRuntime.cpp.
|
private |
Definition at line 3812 of file RenderScriptRuntime.cpp.
|
static |
Referenced by RenderScriptRuntime().
|
overridevirtual |
Called when modules have been loaded in the process.
Reimplemented from lldb_private::LanguageRuntime.
Definition at line 1000 of file RenderScriptRuntime.cpp.
References lldb_private::ModuleList::GetModuleAtIndex(), lldb_private::ModuleList::GetMutex(), and lldb_private::ModuleList::GetSize().
bool RenderScriptRuntime::PlaceBreakpointOnKernel | ( | lldb::TargetSP | target, |
Stream & | messages, | ||
const char * | name, | ||
const lldb_renderscript::RSCoordinate * | coords = nullptr |
||
) |
Definition at line 3717 of file RenderScriptRuntime.cpp.
References lldb::eDescriptionLevelInitial.
Referenced by CommandObjectRenderScriptRuntimeKernelBreakpointSet::DoExecute().
bool RenderScriptRuntime::PlaceBreakpointOnReduction | ( | lldb::TargetSP | target, |
Stream & | messages, | ||
const char * | reduce_name, | ||
const lldb_renderscript::RSCoordinate * | coords = nullptr , |
||
int | kernel_types = ~(0) |
||
) |
Definition at line 3779 of file RenderScriptRuntime.cpp.
References lldb::eDescriptionLevelInitial.
Referenced by CommandObjectRenderScriptRuntimeReductionBreakpointSet::DoExecute().
bool RenderScriptRuntime::PlaceBreakpointOnScriptGroup | ( | lldb::TargetSP | target, |
Stream & | strm, | ||
ConstString | name, | ||
bool | stop_on_all | ||
) |
Definition at line 3768 of file RenderScriptRuntime.cpp.
References lldb::eDescriptionLevelInitial.
Referenced by CommandObjectRenderScriptScriptGroupBreakpointSet::DoExecute().
|
private |
Definition at line 2559 of file RenderScriptRuntime.cpp.
References lldb_private::RenderScriptRuntime::Element::array_size, lldb_private::RenderScriptRuntime::AllocationDetails::ElementHeader::array_size, lldb_private::RenderScriptRuntime::Element::children, lldb_private::RenderScriptRuntime::Element::datum_size, lldb_private::RenderScriptRuntime::AllocationDetails::ElementHeader::element_size, lldb_private::RenderScriptRuntime::AllocationDetails::ElementHeader::kind, lldb_private::RenderScriptRuntime::Element::type, lldb_private::RenderScriptRuntime::AllocationDetails::ElementHeader::type, lldb_private::RenderScriptRuntime::Element::type_kind, lldb_private::RenderScriptRuntime::Element::type_vec_size, and lldb_private::RenderScriptRuntime::AllocationDetails::ElementHeader::vector_size.
bool RenderScriptRuntime::RecomputeAllAllocations | ( | Stream & | strm, |
StackFrame * | frame_ptr | ||
) |
Definition at line 3321 of file RenderScriptRuntime.cpp.
References lldb_private::Stream::EOL(), and lldb_private::Stream::Printf().
Referenced by CommandObjectRenderScriptRuntimeAllocationRefresh::DoExecute().
|
protected |
Definition at line 2194 of file RenderScriptRuntime.cpp.
References lldb_private::RenderScriptRuntime::AllocationDetails::context, and lldb_private::RenderScriptRuntime::AllocationDetails::element.
bool RenderScriptRuntime::ResolveKernelName | ( | lldb::addr_t | kernel_address, |
ConstString & | name | ||
) |
Definition at line 3860 of file RenderScriptRuntime.cpp.
References lldb_private::Address::CalculateSymbolContextModule(), lldb_private::Address::CalculateSymbolContextSymbol(), lldb_private::ConstString::GetCString(), lldb_private::GetLog(), lldb_private::Symbol::GetName(), lldb_private::Target::GetSectionLoadList(), LLDB_LOGF, and lldb_private::SectionLoadList::ResolveLoadAddress().
bool RenderScriptRuntime::SaveAllocation | ( | Stream & | strm, |
const uint32_t | alloc_id, | ||
const char * | filename, | ||
StackFrame * | frame_ptr | ||
) |
Definition at line 2618 of file RenderScriptRuntime.cpp.
References lldb_private::RenderScriptRuntime::AllocationDetails::address, lldb_private::Status::AsCString(), lldb_private::RenderScriptRuntime::AllocationDetails::data_ptr, lldb_private::RenderScriptRuntime::Element::datum_size, lldb_private::RenderScriptRuntime::AllocationDetails::dimension, lldb_private::RenderScriptRuntime::AllocationDetails::FileHeader::dims, lldb_private::RenderScriptRuntime::AllocationDetails::element, lldb_private::Stream::EOL(), error(), lldb_private::GetLog(), lldb_private::RenderScriptRuntime::AllocationDetails::FileHeader::hdr_size, lldb_private::RenderScriptRuntime::AllocationDetails::FileHeader::ident, LLDB_LOGF, lldb_private::Stream::Printf(), lldb_private::RenderScriptRuntime::AllocationDetails::ShouldRefresh(), lldb_private::RenderScriptRuntime::AllocationDetails::size, string(), lldb_private::Status::Success(), lldb_private::toString(), lldb_private::RenderScriptRuntime::Element::type, lldb_private::RenderScriptRuntime::Element::type_kind, and lldb_private::RenderScriptRuntime::Element::type_vec_size.
Referenced by CommandObjectRenderScriptRuntimeAllocationSave::DoExecute().
void RenderScriptRuntime::SetBreakAllKernels | ( | bool | do_break, |
lldb::TargetSP | target | ||
) |
Definition at line 3457 of file RenderScriptRuntime.cpp.
References lldb_private::GetLog(), and LLDB_LOGF.
Referenced by CommandObjectRenderScriptRuntimeKernelBreakpointAll::DoExecute().
|
private |
|
private |
Definition at line 2307 of file RenderScriptRuntime.cpp.
References lldb_private::RenderScriptRuntime::Element::array_size, lldb_private::RenderScriptRuntime::Element::children, lldb_private::RenderScriptRuntime::Element::datum_size, eElementSize, lldb_private::GetLog(), LLDB_LOGF, lldb_private::RenderScriptRuntime::Element::padding, lldb_private::RenderScriptRuntime::Element::type, and lldb_private::RenderScriptRuntime::Element::type_vec_size.
|
static |
Definition at line 966 of file RenderScriptRuntime.cpp.
void RenderScriptRuntime::Update | ( | ) |
Definition at line 2826 of file RenderScriptRuntime.cpp.
|
static |
Definition at line 323 of file RenderScriptRuntime.h.
|
protected |
Definition at line 481 of file RenderScriptRuntime.h.
|
protected |
Definition at line 494 of file RenderScriptRuntime.h.
|
protected |
Definition at line 487 of file RenderScriptRuntime.h.
|
protected |
Definition at line 493 of file RenderScriptRuntime.h.
|
protected |
Definition at line 490 of file RenderScriptRuntime.h.
Referenced by InitSearchFilter().
|
protected |
Definition at line 492 of file RenderScriptRuntime.h.
|
protected |
Definition at line 497 of file RenderScriptRuntime.h.
|
protected |
Definition at line 475 of file RenderScriptRuntime.h.
|
protected |
Definition at line 477 of file RenderScriptRuntime.h.
|
protected |
Definition at line 476 of file RenderScriptRuntime.h.
|
protected |
Definition at line 478 of file RenderScriptRuntime.h.
Referenced by IsKnownKernel().
|
protected |
Definition at line 485 of file RenderScriptRuntime.h.
|
protected |
Definition at line 423 of file RenderScriptRuntime.h.
Referenced by GetScriptGroups().
|
protected |
Definition at line 484 of file RenderScriptRuntime.h.
|
protected |
Definition at line 480 of file RenderScriptRuntime.h.
|
staticprotected |
Definition at line 496 of file RenderScriptRuntime.h.
|
staticprotected |
Definition at line 495 of file RenderScriptRuntime.h.