25 bool update_module_list)
28 if (update_module_list)
64 refreash_filter =
true;
70 refreash_filter =
true;
143 s->
Printf(
" the correct runtime exception handler will be determined "
159 ret_sp->SetBreakpoint(breakpoint);
166 ProcessSP process_sp = breakpoint_sp->GetTarget().GetProcessSP();
171 refreash_resolver =
true;
177 refreash_resolver =
true;
216 if (!callee_frame_sp)
221 m_runtime = process_sp->GetLanguageRuntime(
222 callee_frame_sp->GuessLanguage().AsLanguageType());
228std::optional<lldb::ValueObjectSP>
240 if (cbs.precondition_callback) {
242 cbs.precondition_callback(language, throw_bp))
256 bool hardware =
false;
257 bool resolve_indirect_functions =
false;
260 resolve_indirect_functions));
261 if (exc_breakpt_sp) {
263 exc_breakpt_sp->SetPrecondition(precond);
266 exc_breakpt_sp->SetBreakpointKind(
"exception");
269 return exc_breakpt_sp;
274 bool &behaves_like_zeroth_frame) {
275 ProcessSP process_sp = thread.GetProcess();
276 if (!process_sp.get())
278 if (process_sp->GetDisableLangRuntimeUnwindPlans() ==
true)
281 if (
LanguageRuntime *runtime = process_sp->GetLanguageRuntime(lang_type)) {
283 process_sp, regctx, behaves_like_zeroth_frame);
314 if (cbs.command_callback) {
322 parent->
LoadSubCommand(command->GetCommandName().str().c_str(), command);
static llvm::raw_ostream & error(Stream &strm)
static bool classof(const BreakpointResolver *V)
void GetDescription(Stream *s) override
Prints a canonical description for the breakpoint to the stream s.
static bool classof(const BreakpointResolverName *)
Methods for support type inquiry through isa, cast, and dyn_cast:
lldb::BreakpointResolverSP m_actual_resolver_sp
LanguageRuntime * m_language_runtime
ExceptionBreakpointResolver(lldb::LanguageType language, bool catch_bp, bool throw_bp)
lldb::SearchDepth GetDepth() override
BreakpointResolverSP CopyForBreakpoint(BreakpointSP &breakpoint) override
Searcher::CallbackReturn SearchCallback(SearchFilter &filter, SymbolContext &context, Address *addr) override
lldb::LanguageType m_language
void Dump(Stream *s) const override
Standard "Dump" method. At present it does nothing.
~ExceptionBreakpointResolver() override=default
A section + offset based address class.
"lldb/Breakpoint/BreakpointResolverName.h" This class sets breakpoints on a given function name,...
lldb::BreakpointSP GetBreakpoint() const
This gets the breakpoint for this resolver.
unsigned getResolverID() const
getResolverID - Return an ID for the concrete type of this object.
BreakpointResolver(const lldb::BreakpointSP &bkpt, unsigned char resolverType, lldb::addr_t offset=0, bool offset_is_insn_count=false)
The breakpoint resolver need to have a breakpoint for "ResolveBreakpoint to make sense.
virtual bool IsMultiwordObject()
CommandInterpreter & GetCommandInterpreter()
virtual bool LoadSubCommand(llvm::StringRef cmd_name, const lldb::CommandObjectSP &command_obj)
static SearchFilter * CreateFromStructuredData(Target &target, const StructuredData::Dictionary &data_dict, Status &error)
void UpdateModuleListIfNeeded()
bool ModulePasses(const lldb::ModuleSP &module_sp) override
Call this method with a Module to see if that module passes the filter.
ExceptionSearchFilter(const lldb::TargetSP &target_sp, lldb::LanguageType language, bool update_module_list=true)
void Search(Searcher &searcher) override
Call this method to do the search using the Searcher.
lldb::SearchFilterSP m_filter_sp
lldb::LanguageType m_language
std::unique_ptr< SearchFilter > DoCreateCopy() override
StructuredData::ObjectSP SerializeToStructuredData() override
void GetDescription(Stream *s) override
Prints a canonical description for the search filter to the stream s.
LanguageRuntime * m_language_runtime
std::optional< lldb::ValueObjectSP > GetThrownError(lldb::StackFrameSP caller_frame_sp) const
See LanguageRuntime::GetThrownError.
std::optional< Value > m_location
ThrownErrorLocation(lldb::StackFrameSP callee_frame_sp=nullptr)
LanguageRuntime * m_runtime
virtual StructuredData::ObjectSP GetLanguageSpecificData(SymbolContext sc)
Language runtime plugins can use this API to report language-specific runtime information about this ...
LanguageRuntime(Process *process)
static CFAComparison CompareCFAs(Process &process, const StackID &lhs, const StackID &rhs)
Compares the frames identified by lhs and rhs, if a language runtime of process can order them.
static LanguageRuntime * FindPlugin(Process *process, lldb::LanguageType language)
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 regis...
static lldb::BreakpointSP CreateExceptionBreakpoint(Target &target, lldb::LanguageType language, bool catch_bp, bool throw_bp, bool is_internal=false)
static void InitializeCommands(CommandObject *parent)
static lldb::BreakpointPreconditionSP GetExceptionPrecondition(lldb::LanguageType language, bool throw_bp)
static Language * FindPlugin(lldb::LanguageType language)
static void GetDefaultExceptionResolverDescription(bool catch_on, bool throw_on, Stream &s)
virtual void GetExceptionResolverDescription(bool catch_on, bool throw_on, Stream &s)
static std::set< lldb::LanguageType > GetSupportedLanguages()
static llvm::SmallVector< LanguageRuntimeCallbacks > GetLanguageRuntimeCallbacks()
A plug-in interface definition class for debugging a process.
std::vector< LanguageRuntime * > GetLanguageRuntimes()
Runtime(Process *process)
General Outline: Provides the callback and search depth for the SearchFilter search.
lldb::TargetSP m_target_sp
SearchFilter(const lldb::TargetSP &target_sp)
The basic constructor takes a Target, which gives the space to search.
General Outline: Provides the callback and search depth for the SearchFilter search.
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.
std::shared_ptr< Object > ObjectSP
Defines a symbol context baton that can be handed other debug core functions.
lldb::BreakpointSP CreateBreakpoint(const FileSpecList *containingModules, const FileSpec &file, uint32_t line_no, uint32_t column, lldb::addr_t offset, LazyBool check_inlines, LazyBool skip_prologue, bool internal, bool request_hardware, LazyBool move_to_nearest_code)
A class that represents a running process on the host machine.
CFAComparison
How the call frame addresses of two frames order them.
std::shared_ptr< lldb_private::StackFrame > StackFrameSP
std::shared_ptr< lldb_private::SearchFilter > SearchFilterSP
std::shared_ptr< lldb_private::BreakpointResolver > BreakpointResolverSP
std::shared_ptr< lldb_private::CommandObject > CommandObjectSP
LanguageType
Programming language type.
std::shared_ptr< lldb_private::Breakpoint > BreakpointSP
std::shared_ptr< lldb_private::Process > ProcessSP
std::shared_ptr< lldb_private::BreakpointPrecondition > BreakpointPreconditionSP
std::shared_ptr< lldb_private::UnwindPlan > UnwindPlanSP
std::shared_ptr< lldb_private::Target > TargetSP
std::shared_ptr< lldb_private::Module > ModuleSP