65 return this->
operator bool();
67SBBreakpointLocation::operator
bool()
const {
92 std::lock_guard<TargetAPIMutex> guard(api_lock);
93 ret_addr = loc_sp->GetLoadAddress();
105 std::lock_guard<TargetAPIMutex> guard(api_lock);
106 llvm::consumeError(loc_sp->SetEnabled(enabled));
116 std::lock_guard<TargetAPIMutex> guard(api_lock);
117 return loc_sp->IsEnabled();
128 std::lock_guard<TargetAPIMutex> guard(api_lock);
129 return loc_sp->GetHitCount();
140 std::lock_guard<TargetAPIMutex> guard(api_lock);
141 return loc_sp->GetIgnoreCount();
152 std::lock_guard<TargetAPIMutex> guard(api_lock);
153 loc_sp->SetIgnoreCount(n);
163 std::lock_guard<TargetAPIMutex> guard(api_lock);
180 std::lock_guard<TargetAPIMutex> guard(api_lock);
193 std::lock_guard<TargetAPIMutex> guard(api_lock);
194 loc_sp->SetAutoContinue(auto_continue);
204 std::lock_guard<TargetAPIMutex> guard(api_lock);
205 return loc_sp->IsAutoContinue();
218 std::lock_guard<TargetAPIMutex> guard(api_lock);
226 const char *callback_function_name) {
231 const char *callback_function_name,
239 std::lock_guard<TargetAPIMutex> guard(api_lock);
241 llvm::Error
error = loc_sp->GetBreakpoint()
244 .GetScriptInterpreter()
245 ->SetBreakpointCommandCallbackFunction(
246 bp_options, callback_function_name,
264 std::lock_guard<TargetAPIMutex> guard(api_lock);
267 loc_sp->GetBreakpoint()
270 .GetScriptInterpreter()
271 ->SetBreakpointCommandCallback(bp_options, callback_body_text,
290 std::lock_guard<TargetAPIMutex> guard(api_lock);
291 std::unique_ptr<BreakpointOptions::CommandData> cmd_data_up(
294 loc_sp->GetLocationOptions().SetCommandDataCallback(cmd_data_up);
305 loc_sp->GetLocationOptions().GetCommandLineCallbacks(command_list);
317 std::lock_guard<TargetAPIMutex> guard(api_lock);
318 loc_sp->SetThreadID(thread_id);
329 std::lock_guard<TargetAPIMutex> guard(api_lock);
330 return loc_sp->GetThreadID();
341 std::lock_guard<TargetAPIMutex> guard(api_lock);
342 loc_sp->SetThreadIndex(index);
353 std::lock_guard<TargetAPIMutex> guard(api_lock);
354 return loc_sp->GetThreadIndex();
365 std::lock_guard<TargetAPIMutex> guard(api_lock);
366 loc_sp->SetThreadName(thread_name);
378 std::lock_guard<TargetAPIMutex> guard(api_lock);
380 .
Intern(loc_sp->GetThreadName());
389 std::lock_guard<TargetAPIMutex> guard(api_lock);
390 loc_sp->SetQueueName(queue_name);
402 std::lock_guard<TargetAPIMutex> guard(api_lock);
404 .
Intern(loc_sp->GetQueueName());
413 std::lock_guard<TargetAPIMutex> guard(api_lock);
414 return loc_sp->IsResolved();
434 std::lock_guard<TargetAPIMutex> guard(api_lock);
435 loc_sp->GetDescription(&strm, level);
449 std::lock_guard<TargetAPIMutex> guard(api_lock);
450 return loc_sp->GetID();
463 std::lock_guard<TargetAPIMutex> guard(api_lock);
464 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...
static Status FromErrorString(const char *str)
static Status FromError(llvm::Error error)
Avoid using this in new code. Migrate APIs to llvm::Expected instead.
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.
const char * Intern(llvm::StringRef str) const
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.
StringPoolRef GetDebuggerStringPool(const Target &target)
Strings interned here live as long as target's debugger.
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)