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 {
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(
331 std::lock_guard<std::recursive_mutex> guard(
345 std::lock_guard<std::recursive_mutex> guard(
358 std::lock_guard<std::recursive_mutex> guard(
372 std::lock_guard<std::recursive_mutex> guard(
385 std::lock_guard<std::recursive_mutex> guard(
399 std::lock_guard<std::recursive_mutex> guard(
412 std::lock_guard<std::recursive_mutex> guard(
426 std::lock_guard<std::recursive_mutex> guard(
440 std::lock_guard<std::recursive_mutex> guard(
454 std::lock_guard<std::recursive_mutex> guard(
471 std::lock_guard<std::recursive_mutex> guard(
473 std::unique_ptr<BreakpointOptions::CommandData> cmd_data_up(
513 std::lock_guard<std::recursive_mutex> guard(
524 s.Printf(
"No value");
528 std::lock_guard<std::recursive_mutex> guard(
541 std::lock_guard<std::recursive_mutex> guard(
546 ::PrivateBreakpointHitCallback,
553 const char *callback_function_name) {
560 const char *callback_function_name,
570 std::lock_guard<std::recursive_mutex> guard(
576 .GetScriptInterpreter()
577 ->SetBreakpointCommandCallbackFunction(
578 bp_options, callback_function_name,
594 std::lock_guard<std::recursive_mutex> guard(
600 .GetScriptInterpreter()
601 ->SetBreakpointCommandCallback(
602 bp_options, callback_body_text,
false);
604 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 SetCondition(StopCondition condition)
Set the breakpoint stop condition.
void SetEnabled(bool enabled)
If enable is true, enable the breakpoint, if false disable it.
const StopCondition & GetCondition() const
Return the breakpoint 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)
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)
llvm::StringRef GetText() const
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.
class LLDB_API SBBreakpointNameImpl
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