38 if (!name || name[0] ==
'\0')
76 if (!name || name[0] ==
'\0')
115 m_impl_up = std::make_unique<SBBreakpointNameImpl>(sb_target, name);
130 Target &target = bkpt_sp->GetTarget();
133 std::make_unique<SBBreakpointNameImpl>(target.shared_from_this(), name);
153 m_impl_up = std::make_unique<SBBreakpointNameImpl>(
187 return this->
operator bool();
189SBBreakpointName::operator bool()
const {
194 return m_impl_up->IsValid();
201 return "<Invalid Breakpoint Name Object>";
212 std::lock_guard<std::recursive_mutex> guard(
225 target_sp->ApplyNameToBreakpoints(bp_name);
236 std::lock_guard<std::recursive_mutex> guard(
249 std::lock_guard<std::recursive_mutex> guard(
263 std::lock_guard<std::recursive_mutex> guard(
276 std::lock_guard<std::recursive_mutex> guard(
290 std::lock_guard<std::recursive_mutex> guard(
303 std::lock_guard<std::recursive_mutex> guard(
317 std::lock_guard<std::recursive_mutex> guard(
330 std::lock_guard<std::recursive_mutex> guard(
344 std::lock_guard<std::recursive_mutex> guard(
357 std::lock_guard<std::recursive_mutex> guard(
371 std::lock_guard<std::recursive_mutex> guard(
384 std::lock_guard<std::recursive_mutex> guard(
398 std::lock_guard<std::recursive_mutex> guard(
411 std::lock_guard<std::recursive_mutex> guard(
425 std::lock_guard<std::recursive_mutex> guard(
439 std::lock_guard<std::recursive_mutex> guard(
453 std::lock_guard<std::recursive_mutex> guard(
470 std::lock_guard<std::recursive_mutex> guard(
472 std::unique_ptr<BreakpointOptions::CommandData> cmd_data_up(
512 std::lock_guard<std::recursive_mutex> guard(
523 s.Printf(
"No value");
527 std::lock_guard<std::recursive_mutex> guard(
540 std::lock_guard<std::recursive_mutex> guard(
545 ::PrivateBreakpointHitCallback,
552 const char *callback_function_name) {
559 const char *callback_function_name,
569 std::lock_guard<std::recursive_mutex> guard(
575 .GetScriptInterpreter()
576 ->SetBreakpointCommandCallbackFunction(
577 bp_options, callback_function_name,
593 std::lock_guard<std::recursive_mutex> guard(
599 .GetScriptInterpreter()
600 ->SetBreakpointCommandCallback(
601 bp_options, callback_body_text,
false);
603 if (!sb_error.
Fail())
static llvm::raw_ostream & error(Stream &strm)
#define LLDB_INSTRUMENT_VA(...)
bool operator==(const SBBreakpointNameImpl &rhs)
TargetSP GetTarget() const
bool operator!=(const SBBreakpointNameImpl &rhs)
lldb_private::BreakpointName * GetBreakpointName() const
SBBreakpointNameImpl(TargetSP target_sp, const char *name)
const char * GetName() const
void SetCommandLineCommands(lldb::SBStringList &commands)
const char * GetName() const
void SetQueueName(const char *queue_name)
const char * GetQueueName() const
void SetThreadIndex(uint32_t index)
void SetAutoContinue(bool auto_continue)
bool operator!=(const lldb::SBBreakpointName &rhs)
void SetCondition(const char *condition)
bool GetDescription(lldb::SBStream &description)
const char * GetThreadName() const
lldb::tid_t GetThreadID()
void SetThreadName(const char *thread_name)
void SetAllowDisable(bool value)
void SetEnabled(bool enable)
void SetIgnoreCount(uint32_t count)
bool operator==(const lldb::SBBreakpointName &rhs)
std::unique_ptr< SBBreakpointNameImpl > m_impl_up
void SetAllowDelete(bool value)
void SetCallback(SBBreakpointHitCallback callback, void *baton)
SBError SetScriptCallbackBody(const char *script_body_text)
void SetAllowList(bool value)
lldb_private::BreakpointName * GetBreakpointName() const
void SetOneShot(bool one_shot)
uint32_t GetIgnoreCount() const
uint32_t GetThreadIndex() const
bool GetAllowList() const
void SetHelpString(const char *help_string)
const char * GetHelpString() const
void SetThreadID(lldb::tid_t sb_thread_id)
const char * GetCondition()
void UpdateName(lldb_private::BreakpointName &bp_name)
void SetScriptCallbackFunction(const char *callback_function_name)
const lldb::SBBreakpointName & operator=(const lldb::SBBreakpointName &rhs)
bool GetCommandLineCommands(lldb::SBStringList &commands)
lldb::BreakpointSP GetSP() const
void SetError(uint32_t err, lldb::ErrorType type)
lldb_private::Stream * get()
void AppendList(const char **strv, int strc)
StructuredDataImplUP m_impl_up
lldb::TargetSP GetSP() const
bool SetAllowDisable(bool value)
bool GetAllowDelete() const
bool GetAllowList() const
bool SetAllowList(bool value)
bool GetAllowDisable() const
bool SetAllowDelete(bool value)
bool GetDescription(Stream *s, lldb::DescriptionLevel level)
void SetHelp(const char *description)
Permissions & GetPermissions()
BreakpointOptions & GetOptions()
"lldb/Breakpoint/BreakpointOptions.h" Class that manages the options on a breakpoint or breakpoint lo...
void SetIgnoreCount(uint32_t n)
Set the breakpoint to ignore the next count breakpoint hits.
void SetEnabled(bool enabled)
If enable is true, enable the breakpoint, if false disable it.
void SetCondition(const char *condition)
Set the breakpoint option's condition.
bool GetCommandLineCallbacks(StringList &command_list)
Returns the command line commands for the callback on this breakpoint.
bool IsOneShot() const
Check the One-shot state.
bool IsEnabled() const
Check the Enable/Disable state.
uint32_t GetIgnoreCount() const
Return the current Ignore Count.
bool IsAutoContinue() const
Check the auto-continue state.
ThreadSpec * GetThreadSpec()
Returns a pointer to the ThreadSpec for this option, creating it.
void SetOneShot(bool one_shot)
If enable is true, enable the breakpoint, if false disable it.
void SetAutoContinue(bool auto_continue)
Set the auto-continue state.
void SetThreadID(lldb::tid_t thread_id)
const char * GetConditionText(size_t *hash=nullptr) const
Return a pointer to the text of the condition expression.
void SetCommandDataCallback(std::unique_ptr< CommandData > &cmd_data)
Set a callback based on BreakpointOptions::CommandData.
void SetCallback(BreakpointHitCallback callback, const lldb::BatonSP &baton_sp, bool synchronous=false)
Adds a callback to the breakpoint option set.
A uniqued constant string class.
const char * GetCString() const
Get the string value as a C string.
static Status FromErrorString(const char *str)
void ConfigureBreakpointName(BreakpointName &bp_name, const BreakpointOptions &options, const BreakpointName::Permissions &permissions)
void SetIndex(uint32_t index)
void SetName(llvm::StringRef name)
uint32_t GetIndex() const
const char * GetName() const
void SetQueueName(llvm::StringRef queue_name)
const char * GetQueueName() const
lldb::tid_t GetTID() const
#define LLDB_INVALID_THREAD_ID
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::Breakpoint > BreakpointSP
std::shared_ptr< lldb_private::Baton > BatonSP
bool(* SBBreakpointHitCallback)(void *baton, lldb::SBProcess &process, lldb::SBThread &thread, lldb::SBBreakpointLocation &location)
std::weak_ptr< lldb_private::Target > TargetWP
std::shared_ptr< lldb_private::Target > TargetSP