29 const BreakpointSP &bkpt,
const llvm::StringRef class_name,
32 m_class_name(std::string(class_name)), m_depth(depth), m_args(args_data) {
47 TargetSP target_sp = breakpoint_sp->GetTargetSP();
49 .GetScriptInterpreter();
63 llvm::StringRef class_name;
69 error.SetErrorString(
"BRFL::CFSD: Couldn't find class name entry.");
80 args_data_impl.
SetObjectSP(args_dict->shared_from_this());
81 return std::make_shared<BreakpointResolverScripted>(
nullptr, class_name,
82 depth, args_data_impl);
100 return GetBreakpoint()->GetTarget().GetDebugger().GetScriptInterpreter();
105 bool should_continue =
true;
132 std::string short_help;
139 if (!short_help.empty())
149 return std::make_shared<BreakpointResolverScripted>(breakpoint,
m_class_name,
static llvm::raw_ostream & error(Stream &strm)
A section + offset based address class.
BreakpointResolverScripted(const lldb::BreakpointSP &bkpt, const llvm::StringRef class_name, lldb::SearchDepth depth, const StructuredDataImpl &args_data)
lldb::BreakpointResolverSP CopyForBreakpoint(lldb::BreakpointSP &breakpoint) override
void GetDescription(Stream *s) override
Prints a canonical description for the breakpoint to the stream s.
StructuredData::ObjectSP SerializeToStructuredData() override
void Dump(Stream *s) const override
Standard "Dump" method. At present it does nothing.
Searcher::CallbackReturn SearchCallback(SearchFilter &filter, SymbolContext &context, Address *addr) override
lldb::SearchDepth m_depth
void CreateImplementationIfNeeded(lldb::BreakpointSP bkpt)
lldb::SearchDepth GetDepth() override
StructuredData::GenericSP m_implementation_sp
static lldb::BreakpointResolverSP CreateFromStructuredData(const StructuredData::Dictionary &options_dict, Status &error)
ScriptInterpreter * GetScriptInterpreter()
void NotifyBreakpointSet() override
StructuredDataImpl m_args
General Outline: The BreakpointResolver is a Searcher.
static const char * GetKey(OptionNames enum_value)
StructuredData::DictionarySP WrapOptionsDict(StructuredData::DictionarySP options_dict_sp)
lldb::BreakpointSP GetBreakpoint() const
This gets the breakpoint for this resolver.
virtual bool ScriptedBreakpointResolverSearchCallback(StructuredData::GenericSP implementor_sp, SymbolContext *sym_ctx)
virtual lldb::SearchDepth ScriptedBreakpointResolverSearchDepth(StructuredData::GenericSP implementor_sp)
virtual bool GetShortHelpForCommandObject(StructuredData::GenericSP cmd_obj_sp, std::string &dest)
virtual StructuredData::GenericSP CreateScriptedBreakpointResolver(const char *class_name, const StructuredDataImpl &args_data, lldb::BreakpointSP &bkpt_sp)
General Outline: Provides the callback and search depth for the SearchFilter search.
@ eCallbackReturnContinue
A stream class that can stream formatted output to a file.
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
void SetObjectSP(const StructuredData::ObjectSP &obj)
StructuredData::ObjectSP GetObjectSP()
bool GetValueForKeyAsString(llvm::StringRef key, llvm::StringRef &result) const
bool GetValueForKeyAsDictionary(llvm::StringRef key, Dictionary *&result) const
std::shared_ptr< Generic > GenericSP
std::shared_ptr< Dictionary > DictionarySP
std::shared_ptr< Object > ObjectSP
Defines a symbol context baton that can be handed other debug core functions.
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::BreakpointResolver > BreakpointResolverSP
std::shared_ptr< lldb_private::Breakpoint > BreakpointSP
std::shared_ptr< lldb_private::Target > TargetSP