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 llvm::consumeError(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());
178 std::lock_guard<std::recursive_mutex> guard(
179 loc_sp->GetTarget().GetAPIMutex());
191 std::lock_guard<std::recursive_mutex> guard(
192 loc_sp->GetTarget().GetAPIMutex());
193 loc_sp->SetAutoContinue(auto_continue);
202 std::lock_guard<std::recursive_mutex> guard(
203 loc_sp->GetTarget().GetAPIMutex());
204 return loc_sp->IsAutoContinue();
216 std::lock_guard<std::recursive_mutex> guard(
217 loc_sp->GetTarget().GetAPIMutex());
225 const char *callback_function_name) {
230 const char *callback_function_name,
238 std::lock_guard<std::recursive_mutex> guard(
239 loc_sp->GetTarget().GetAPIMutex());
241 error = loc_sp->GetBreakpoint()
244 .GetScriptInterpreter()
245 ->SetBreakpointCommandCallbackFunction(bp_options,
246 callback_function_name,
264 std::lock_guard<std::recursive_mutex> guard(
265 loc_sp->GetTarget().GetAPIMutex());
268 loc_sp->GetBreakpoint()
271 .GetScriptInterpreter()
272 ->SetBreakpointCommandCallback(bp_options, callback_body_text,
290 std::lock_guard<std::recursive_mutex> guard(
291 loc_sp->GetTarget().GetAPIMutex());
292 std::unique_ptr<BreakpointOptions::CommandData> cmd_data_up(
295 loc_sp->GetLocationOptions().SetCommandDataCallback(cmd_data_up);
306 loc_sp->GetLocationOptions().GetCommandLineCallbacks(command_list);
317 std::lock_guard<std::recursive_mutex> guard(
318 loc_sp->GetTarget().GetAPIMutex());
319 loc_sp->SetThreadID(thread_id);
329 std::lock_guard<std::recursive_mutex> guard(
330 loc_sp->GetTarget().GetAPIMutex());
331 return loc_sp->GetThreadID();
341 std::lock_guard<std::recursive_mutex> guard(
342 loc_sp->GetTarget().GetAPIMutex());
343 loc_sp->SetThreadIndex(index);
353 std::lock_guard<std::recursive_mutex> guard(
354 loc_sp->GetTarget().GetAPIMutex());
355 return loc_sp->GetThreadIndex();
365 std::lock_guard<std::recursive_mutex> guard(
366 loc_sp->GetTarget().GetAPIMutex());
367 loc_sp->SetThreadName(thread_name);
378 std::lock_guard<std::recursive_mutex> guard(
379 loc_sp->GetTarget().GetAPIMutex());
388 std::lock_guard<std::recursive_mutex> guard(
389 loc_sp->GetTarget().GetAPIMutex());
390 loc_sp->SetQueueName(queue_name);
401 std::lock_guard<std::recursive_mutex> guard(
402 loc_sp->GetTarget().GetAPIMutex());
411 std::lock_guard<std::recursive_mutex> guard(
412 loc_sp->GetTarget().GetAPIMutex());
413 return loc_sp->IsResolved();
432 std::lock_guard<std::recursive_mutex> guard(
433 loc_sp->GetTarget().GetAPIMutex());
434 loc_sp->GetDescription(&strm, level);
447 std::lock_guard<std::recursive_mutex> guard(
448 loc_sp->GetTarget().GetAPIMutex());
449 return loc_sp->GetID();
461 std::lock_guard<std::recursive_mutex> guard(
462 loc_sp->GetTarget().GetAPIMutex());
463 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()
friend class SBBreakpoint
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 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.
static Status FromErrorString(const char *str)
llvm::StringRef GetText() const
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)