Go to the documentation of this file.
28 BreakpointResolverScripted::BreakpointResolverScripted(
29 const BreakpointSP &bkpt,
const llvm::StringRef class_name,
32 m_class_name(std::
string(class_name)), m_depth(depth), m_args(args_data) {
33 CreateImplementationIfNeeded(bkpt);
37 BreakpointSP breakpoint_sp) {
47 TargetSP target_sp = breakpoint_sp->GetTargetSP();
49 .GetScriptInterpreter();
65 llvm::StringRef class_name;
71 error.SetErrorString(
"BRFL::CFSD: Couldn't find class name entry.");
82 args_data_impl.
SetObjectSP(args_dict->shared_from_this());
102 return GetBreakpoint()->GetTarget().GetDebugger().GetScriptInterpreter();
107 bool should_continue =
true;
141 if (!short_help.empty())
149 lldb::BreakpointResolverSP
151 return std::make_shared<BreakpointResolverScripted>(breakpoint,
m_class_name,
std::shared_ptr< Generic > GenericSP
virtual StructuredData::GenericSP CreateScriptedBreakpointResolver(const char *class_name, const StructuredDataImpl &args_data, lldb::BreakpointSP &bkpt_sp)
virtual lldb::SearchDepth ScriptedBreakpointResolverSearchDepth(StructuredData::GenericSP implementor_sp)
lldb::SearchDepth m_depth
StructuredData::ObjectSP GetObjectSP()
virtual bool ScriptedBreakpointResolverSearchCallback(StructuredData::GenericSP implementor_sp, SymbolContext *sym_ctx)
static llvm::raw_ostream & error(Stream &strm)
General Outline: Provides the callback and search depth for the SearchFilter search.
std::shared_ptr< Object > ObjectSP
BreakpointResolverScripted(const lldb::BreakpointSP &bkpt, const llvm::StringRef class_name, lldb::SearchDepth depth, const StructuredDataImpl &args_data)
StructuredData::GenericSP m_implementation_sp
std::shared_ptr< Dictionary > DictionarySP
ScriptInterpreter * GetScriptInterpreter()
string(SUBSTRING ${p} 10 -1 pStripped) if($
void SetObjectSP(const StructuredData::ObjectSP &obj)
General Outline: The BreakpointResolver is a Searcher.
StructuredData::DictionarySP WrapOptionsDict(StructuredData::DictionarySP options_dict_sp)
virtual bool GetShortHelpForCommandObject(StructuredData::GenericSP cmd_obj_sp, std::string &dest)
void GetDescription(Stream *s) override
Prints a canonical description for the breakpoint to the stream s.
StructuredData::ObjectSP SerializeToStructuredData() override
static const char * GetKey(OptionNames enum_value)
StructuredDataImpl m_args
void Dump(Stream *s) const override
Standard "Dump" method. At present it does nothing.
Searcher::CallbackReturn SearchCallback(SearchFilter &filter, SymbolContext &context, Address *addr) override
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
static BreakpointResolver * CreateFromStructuredData(const lldb::BreakpointSP &bkpt, const StructuredData::Dictionary &options_dict, Status &error)
A class that represents a running process on the host machine.
bool GetValueForKeyAsDictionary(llvm::StringRef key, Dictionary *&result) const
void NotifyBreakpointSet() override
void CreateImplementationIfNeeded(lldb::BreakpointSP bkpt)
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
bool GetValueForKeyAsString(llvm::StringRef key, llvm::StringRef &result) const
lldb::BreakpointSP GetBreakpoint() const
This gets the breakpoint for this resolver.
lldb::BreakpointResolverSP CopyForBreakpoint(lldb::BreakpointSP &breakpoint) override
lldb::SearchDepth GetDepth() override
@ eCallbackReturnContinue