LLDB
mainline
|
#include <RenderScriptRuntime.h>
Public Types | |
enum | ReduceKernelTypeFlags { eKernelTypeAll = ~(0), eKernelTypeNone = 0, eKernelTypeAccum = (1 << 0), eKernelTypeInit = (1 << 1), eKernelTypeComb = (1 << 2), eKernelTypeOutC = (1 << 3), eKernelTypeHalter = (1 << 4) } |
![]() | |
enum | ResolverTy { FileLineResolver = 0, AddressResolver, NameResolver, FileRegexResolver, PythonResolver, ExceptionResolver, LastKnownResolverType = ExceptionResolver, UnknownResolver } |
An enumeration for keeping track of the concrete subclass that is actually instantiated. More... | |
![]() | |
enum | CallbackReturn { eCallbackReturnStop = 0, eCallbackReturnContinue, eCallbackReturnPop } |
Public Member Functions | |
RSReduceBreakpointResolver (const lldb::BreakpointSP &breakpoint, ConstString reduce_name, std::vector< lldb_renderscript::RSModuleDescriptorSP > *rs_modules, int kernel_types=eKernelTypeAll) | |
void | GetDescription (Stream *strm) override |
Prints a canonical description for the breakpoint to the stream s. More... | |
void | Dump (Stream *s) const override |
Standard "Dump" method. At present it does nothing. More... | |
Searcher::CallbackReturn | SearchCallback (SearchFilter &filter, SymbolContext &context, Address *addr) override |
lldb::SearchDepth | GetDepth () override |
lldb::BreakpointResolverSP | CopyForBreakpoint (lldb::BreakpointSP &breakpoint) override |
![]() | |
BreakpointResolver (const lldb::BreakpointSP &bkpt, unsigned char resolverType, lldb::addr_t offset=0) | |
The breakpoint resolver need to have a breakpoint for "ResolveBreakpoint to make sense. More... | |
~BreakpointResolver () override | |
The Destructor is virtual, all significant breakpoint resolvers derive from this class. More... | |
void | SetBreakpoint (const lldb::BreakpointSP &bkpt) |
This sets the breakpoint for this resolver. More... | |
lldb::BreakpointSP | GetBreakpoint () const |
This gets the breakpoint for this resolver. More... | |
void | SetOffset (lldb::addr_t offset) |
This updates the offset for this breakpoint. More... | |
lldb::addr_t | GetOffset () const |
virtual void | ResolveBreakpoint (SearchFilter &filter) |
In response to this method the resolver scans all the modules in the breakpoint's target, and adds any new locations it finds. More... | |
virtual void | ResolveBreakpointInModules (SearchFilter &filter, ModuleList &modules) |
In response to this method the resolver scans the modules in the module list modules, and adds any new locations it finds. More... | |
virtual StructuredData::ObjectSP | SerializeToStructuredData () |
StructuredData::DictionarySP | WrapOptionsDict (StructuredData::DictionarySP options_dict_sp) |
unsigned | getResolverID () const |
getResolverID - Return an ID for the concrete type of this object. More... | |
enum ResolverTy | GetResolverTy () |
const char * | GetResolverName () |
![]() | |
Searcher () | |
virtual | ~Searcher () |
Private Attributes | |
ConstString | m_reduce_name |
std::vector< lldb_renderscript::RSModuleDescriptorSP > * | m_rsmodules |
int | m_kernel_types |
Additional Inherited Members | |
![]() | |
static lldb::BreakpointResolverSP | CreateFromStructuredData (const StructuredData::Dictionary &resolver_dict, Status &error) |
This section handles serializing and deserializing from StructuredData objects. More... | |
static const char * | GetSerializationKey () |
static const char * | GetSerializationSubclassKey () |
static const char * | GetSerializationSubclassOptionsKey () |
static const char * | ResolverTyToName (enum ResolverTy) |
static ResolverTy | NameToResolverTy (llvm::StringRef name) |
static const char * | GetKey (OptionNames enum_value) |
![]() | |
static const char * | g_ty_to_name [LastKnownResolverType+2] |
![]() | |
enum | OptionNames : uint32_t { OptionNames::AddressOffset = 0, OptionNames::ExactMatch, OptionNames::FileName, OptionNames::Inlines, OptionNames::LanguageName, OptionNames::LineNumber, OptionNames::Column, OptionNames::ModuleName, OptionNames::NameMaskArray, OptionNames::Offset, OptionNames::PythonClassName, OptionNames::RegexString, OptionNames::ScriptArgs, OptionNames::SectionName, OptionNames::SearchDepth, OptionNames::SkipPrologue, OptionNames::SymbolNameArray, OptionNames::LastOptionName } |
![]() | |
virtual void | NotifyBreakpointSet () |
void | SetSCMatchesByLine (SearchFilter &filter, SymbolContextList &sc_list, bool skip_prologue, llvm::StringRef log_ident, uint32_t line=0, llvm::Optional< uint16_t > column=llvm::None) |
Takes a symbol context list of matches which supposedly represent the same file and line number in a CU, and find the nearest actual line number that matches, and then filter down the matching addresses to unique entries, and skip the prologue if asked to do so, and then set breakpoint locations in this breakpoint for all the resultant addresses. More... | |
void | SetSCMatchesByLine (SearchFilter &, SymbolContextList &, bool, const char *)=delete |
lldb::BreakpointLocationSP | AddLocation (Address loc_addr, bool *new_location=nullptr) |
![]() | |
static const char * | g_option_names [static_cast< uint32_t >(OptionNames::LastOptionName)] |
Definition at line 90 of file RenderScriptRuntime.h.
Enumerator | |
---|---|
eKernelTypeAll | |
eKernelTypeNone | |
eKernelTypeAccum | |
eKernelTypeInit | |
eKernelTypeComb | |
eKernelTypeOutC | |
eKernelTypeHalter |
Definition at line 92 of file RenderScriptRuntime.h.
|
inline |
Definition at line 102 of file RenderScriptRuntime.h.
Referenced by CopyForBreakpoint().
|
inlineoverridevirtual |
Implements lldb_private::BreakpointResolver.
Definition at line 130 of file RenderScriptRuntime.h.
References m_kernel_types, m_reduce_name, m_rsmodules, and RSReduceBreakpointResolver().
|
inlineoverridevirtual |
Standard "Dump" method. At present it does nothing.
Implements lldb_private::BreakpointResolver.
Definition at line 121 of file RenderScriptRuntime.h.
|
inlineoverridevirtual |
Implements lldb_private::Searcher.
Definition at line 127 of file RenderScriptRuntime.h.
References lldb::eSearchDepthModule.
|
inlineoverridevirtual |
Prints a canonical description for the breakpoint to the stream s.
[in] | s | Stream to which the output is copied. |
Implements lldb_private::BreakpointResolver.
Definition at line 115 of file RenderScriptRuntime.h.
References lldb_private::ConstString::AsCString(), m_reduce_name, and lldb_private::Stream::Printf().
|
overridevirtual |
Implements lldb_private::Searcher.
Definition at line 826 of file RenderScriptRuntime.cpp.
References lldb_private::SearchFilter::AddressPasses(), lldb::eSymbolTypeCode, lldb_private::GetLog(), LLDB_LOGF, and lldb_private::SymbolContext::module_sp.
|
private |
Definition at line 139 of file RenderScriptRuntime.h.
Referenced by CopyForBreakpoint().
|
private |
Definition at line 137 of file RenderScriptRuntime.h.
Referenced by CopyForBreakpoint(), and GetDescription().
|
private |
Definition at line 138 of file RenderScriptRuntime.h.
Referenced by CopyForBreakpoint().