36#include "llvm/ADT/STLExtras.h"
59 if (bp &&
data->callback) {
62 SBProcess sb_process(process->shared_from_this());
66 sb_location.
SetLocation(bp_sp->FindLocationByID(break_loc_id));
69 sb_thread.
SetThread(thread->shared_from_this());
71 return data->callback(
data->callback_baton, sb_process, sb_thread,
#define LLDB_INSTRUMENT_VA(...)
SBBreakpointCallbackBaton(SBBreakpointHitCallback callback, void *baton)
~SBBreakpointCallbackBaton() override
static bool PrivateBreakpointHitCallback(void *baton, lldb_private::StoppointCallbackContext *ctx, lldb::user_id_t break_id, lldb::user_id_t break_loc_id)
void SetLocation(const lldb::BreakpointLocationSP &break_loc_sp)
void SetThread(const lldb::ThreadSP &lldb_object_sp)
lldb::BreakpointSP FindBreakpointByID(lldb::break_id_t breakID) const
Returns a shared pointer to the breakpoint with id breakID.
General Outline: A breakpoint has four main parts, a filter, a resolver, the list of breakpoint locat...
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
Target & GetTargetRef() const
Returns a reference to the target object.
Process * GetProcessPtr() const
Returns a pointer to the process object.
Thread * GetThreadPtr() const
Returns a pointer to the thread object.
A plug-in interface definition class for debugging a process.
General Outline: When we hit a breakpoint we need to package up whatever information is needed to eva...
ExecutionContextRef exe_ctx_ref
BreakpointList & GetBreakpointList(bool internal=false)
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::Breakpoint > BreakpointSP
bool(* SBBreakpointHitCallback)(void *baton, lldb::SBProcess &process, lldb::SBThread &thread, lldb::SBBreakpointLocation &location)
SBBreakpointHitCallback callback