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;
81 args_data_impl.
SetObjectSP(args_dict->shared_from_this());
82 return std::make_shared<BreakpointResolverScripted>(
nullptr, class_name,
83 depth, args_data_impl);
101 return GetBreakpoint()->GetTarget().GetDebugger().GetScriptInterpreter();
106 bool should_continue =
true;
133 std::string short_help;
140 if (!short_help.empty())
150 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
static Status FromErrorString(const char *str)
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