39 : m_opaque_wp(break_loc_sp) {
44 : m_opaque_wp(rhs.m_opaque_wp) {
64 return this->
operator bool();
66SBBreakpointLocation::operator bool()
const {
90 std::lock_guard<std::recursive_mutex> guard(
91 loc_sp->GetTarget().GetAPIMutex());
92 ret_addr = loc_sp->GetLoadAddress();
103 std::lock_guard<std::recursive_mutex> guard(
104 loc_sp->GetTarget().GetAPIMutex());
105 loc_sp->SetEnabled(enabled);
114 std::lock_guard<std::recursive_mutex> guard(
115 loc_sp->GetTarget().GetAPIMutex());
116 return loc_sp->IsEnabled();
126 std::lock_guard<std::recursive_mutex> guard(
127 loc_sp->GetTarget().GetAPIMutex());
128 return loc_sp->GetHitCount();
138 std::lock_guard<std::recursive_mutex> guard(
139 loc_sp->GetTarget().GetAPIMutex());
140 return loc_sp->GetIgnoreCount();
150 std::lock_guard<std::recursive_mutex> guard(
151 loc_sp->GetTarget().GetAPIMutex());
152 loc_sp->SetIgnoreCount(n);
161 std::lock_guard<std::recursive_mutex> guard(
162 loc_sp->GetTarget().GetAPIMutex());
163 loc_sp->SetCondition(condition);
174 std::lock_guard<std::recursive_mutex> guard(
175 loc_sp->GetTarget().GetAPIMutex());
184 std::lock_guard<std::recursive_mutex> guard(
185 loc_sp->GetTarget().GetAPIMutex());
186 loc_sp->SetAutoContinue(auto_continue);
195 std::lock_guard<std::recursive_mutex> guard(
196 loc_sp->GetTarget().GetAPIMutex());
197 return loc_sp->IsAutoContinue();
209 std::lock_guard<std::recursive_mutex> guard(
210 loc_sp->GetTarget().GetAPIMutex());
218 const char *callback_function_name) {
223 const char *callback_function_name,
231 std::lock_guard<std::recursive_mutex> guard(
232 loc_sp->GetTarget().GetAPIMutex());
234 error = loc_sp->GetBreakpoint()
237 .GetScriptInterpreter()
238 ->SetBreakpointCommandCallbackFunction(bp_options,
239 callback_function_name,
257 std::lock_guard<std::recursive_mutex> guard(
258 loc_sp->GetTarget().GetAPIMutex());
261 loc_sp->GetBreakpoint()
264 .GetScriptInterpreter()
265 ->SetBreakpointCommandCallback(bp_options, callback_body_text,
283 std::lock_guard<std::recursive_mutex> guard(
284 loc_sp->GetTarget().GetAPIMutex());
285 std::unique_ptr<BreakpointOptions::CommandData> cmd_data_up(
288 loc_sp->GetLocationOptions().SetCommandDataCallback(cmd_data_up);
299 loc_sp->GetLocationOptions().GetCommandLineCallbacks(command_list);
310 std::lock_guard<std::recursive_mutex> guard(
311 loc_sp->GetTarget().GetAPIMutex());
312 loc_sp->SetThreadID(thread_id);
322 std::lock_guard<std::recursive_mutex> guard(
323 loc_sp->GetTarget().GetAPIMutex());
324 return loc_sp->GetThreadID();
334 std::lock_guard<std::recursive_mutex> guard(
335 loc_sp->GetTarget().GetAPIMutex());
336 loc_sp->SetThreadIndex(index);
346 std::lock_guard<std::recursive_mutex> guard(
347 loc_sp->GetTarget().GetAPIMutex());
348 return loc_sp->GetThreadIndex();
358 std::lock_guard<std::recursive_mutex> guard(
359 loc_sp->GetTarget().GetAPIMutex());
360 loc_sp->SetThreadName(thread_name);
371 std::lock_guard<std::recursive_mutex> guard(
372 loc_sp->GetTarget().GetAPIMutex());
381 std::lock_guard<std::recursive_mutex> guard(
382 loc_sp->GetTarget().GetAPIMutex());
383 loc_sp->SetQueueName(queue_name);
394 std::lock_guard<std::recursive_mutex> guard(
395 loc_sp->GetTarget().GetAPIMutex());
404 std::lock_guard<std::recursive_mutex> guard(
405 loc_sp->GetTarget().GetAPIMutex());
406 return loc_sp->IsResolved();
425 std::lock_guard<std::recursive_mutex> guard(
426 loc_sp->GetTarget().GetAPIMutex());
427 loc_sp->GetDescription(&strm, level);
440 std::lock_guard<std::recursive_mutex> guard(
441 loc_sp->GetTarget().GetAPIMutex());
442 return loc_sp->GetID();
454 std::lock_guard<std::recursive_mutex> guard(
455 loc_sp->GetTarget().GetAPIMutex());
456 sb_bp = loc_sp->GetBreakpoint().shared_from_this();
static llvm::raw_ostream & error(Stream &strm)
#define LLDB_INSTRUMENT_VA(...)
static bool PrivateBreakpointHitCallback(void *baton, lldb_private::StoppointCallbackContext *ctx, lldb::user_id_t break_id, lldb::user_id_t break_loc_id)
void SetCondition(const char *condition)
void SetEnabled(bool enabled)
void SetCallback(SBBreakpointHitCallback callback, void *baton)
friend class SBBreakpointCallbackBaton
void SetQueueName(const char *queue_name)
const char * GetThreadName() const
bool GetCommandLineCommands(lldb::SBStringList &commands)
lldb::SBAddress GetAddress()
void SetLocation(const lldb::BreakpointLocationSP &break_loc_sp)
void SetIgnoreCount(uint32_t n)
void SetScriptCallbackFunction(const char *callback_function_name)
lldb::BreakpointLocationWP m_opaque_wp
lldb::tid_t GetThreadID()
uint32_t GetIgnoreCount()
void SetCommandLineCommands(lldb::SBStringList &commands)
SBError SetScriptCallbackBody(const char *script_body_text)
lldb::addr_t GetLoadAddress()
bool GetDescription(lldb::SBStream &description, DescriptionLevel level)
const lldb::SBBreakpointLocation & operator=(const lldb::SBBreakpointLocation &rhs)
void SetThreadID(lldb::tid_t sb_thread_id)
const char * GetQueueName() const
uint32_t GetThreadIndex() const
void SetAutoContinue(bool auto_continue)
void SetThreadIndex(uint32_t index)
SBBreakpoint GetBreakpoint()
BreakpointLocationSP GetSP() const
const char * GetCondition()
void SetThreadName(const char *thread_name)
void SetErrorString(const char *err_str)
void SetError(uint32_t err, lldb::ErrorType type)
lldb_private::Stream & ref()
void AppendList(const char **strv, int strc)
StructuredDataImplUP m_impl_up
"lldb/Breakpoint/BreakpointOptions.h" Class that manages the options on a breakpoint or breakpoint lo...
A uniqued constant string class.
const char * GetCString() const
Get the string value as a C string.
A stream class that can stream formatted output to a file.
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
size_t EOL()
Output and End of Line character to the stream.
#define LLDB_INVALID_BREAK_ID
#define LLDB_INVALID_THREAD_ID
#define LLDB_INVALID_ADDRESS
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::BreakpointLocation > BreakpointLocationSP
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
std::shared_ptr< lldb_private::Baton > BatonSP
bool(* SBBreakpointHitCallback)(void *baton, lldb::SBProcess &process, lldb::SBThread &thread, lldb::SBBreakpointLocation &location)