64 return this->
operator bool();
66SBBreakpointLocation::operator
bool()
const {
91 std::lock_guard<TargetAPIMutex> guard(api_lock);
92 ret_addr = loc_sp->GetLoadAddress();
104 std::lock_guard<TargetAPIMutex> guard(api_lock);
105 llvm::consumeError(loc_sp->SetEnabled(enabled));
115 std::lock_guard<TargetAPIMutex> guard(api_lock);
116 return loc_sp->IsEnabled();
127 std::lock_guard<TargetAPIMutex> guard(api_lock);
128 return loc_sp->GetHitCount();
139 std::lock_guard<TargetAPIMutex> guard(api_lock);
140 return loc_sp->GetIgnoreCount();
151 std::lock_guard<TargetAPIMutex> guard(api_lock);
152 loc_sp->SetIgnoreCount(n);
162 std::lock_guard<TargetAPIMutex> guard(api_lock);
179 std::lock_guard<TargetAPIMutex> guard(api_lock);
192 std::lock_guard<TargetAPIMutex> guard(api_lock);
193 loc_sp->SetAutoContinue(auto_continue);
203 std::lock_guard<TargetAPIMutex> guard(api_lock);
204 return loc_sp->IsAutoContinue();
217 std::lock_guard<TargetAPIMutex> guard(api_lock);
225 const char *callback_function_name) {
230 const char *callback_function_name,
239 std::lock_guard<TargetAPIMutex> guard(api_lock);
241 error = loc_sp->GetBreakpoint()
244 .GetScriptInterpreter()
245 ->SetBreakpointCommandCallbackFunction(bp_options,
246 callback_function_name,
265 std::lock_guard<TargetAPIMutex> guard(api_lock);
268 loc_sp->GetBreakpoint()
271 .GetScriptInterpreter()
272 ->SetBreakpointCommandCallback(bp_options, callback_body_text,
291 std::lock_guard<TargetAPIMutex> guard(api_lock);
292 std::unique_ptr<BreakpointOptions::CommandData> cmd_data_up(
295 loc_sp->GetLocationOptions().SetCommandDataCallback(cmd_data_up);
306 loc_sp->GetLocationOptions().GetCommandLineCallbacks(command_list);
318 std::lock_guard<TargetAPIMutex> guard(api_lock);
319 loc_sp->SetThreadID(thread_id);
330 std::lock_guard<TargetAPIMutex> guard(api_lock);
331 return loc_sp->GetThreadID();
342 std::lock_guard<TargetAPIMutex> guard(api_lock);
343 loc_sp->SetThreadIndex(index);
354 std::lock_guard<TargetAPIMutex> guard(api_lock);
355 return loc_sp->GetThreadIndex();
366 std::lock_guard<TargetAPIMutex> guard(api_lock);
367 loc_sp->SetThreadName(thread_name);
379 std::lock_guard<TargetAPIMutex> guard(api_lock);
389 std::lock_guard<TargetAPIMutex> guard(api_lock);
390 loc_sp->SetQueueName(queue_name);
402 std::lock_guard<TargetAPIMutex> guard(api_lock);
412 std::lock_guard<TargetAPIMutex> guard(api_lock);
413 return loc_sp->IsResolved();
433 std::lock_guard<TargetAPIMutex> guard(api_lock);
434 loc_sp->GetDescription(&strm, level);
448 std::lock_guard<TargetAPIMutex> guard(api_lock);
449 return loc_sp->GetID();
462 std::lock_guard<TargetAPIMutex> guard(api_lock);
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.
A Lockable handle over a Target's API mutex, returned by Target::GetAPIMutex() and backing the public...
#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)