38 if (!name || name[0] ==
'\0')
76 if (!name || name[0] ==
'\0')
105 return target_sp->FindBreakpointName(
m_name,
true,
error);
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>";
213 std::lock_guard<TargetAPIMutex> guard(api_lock);
226 target_sp->ApplyNameToBreakpoints(bp_name);
238 std::lock_guard<TargetAPIMutex> guard(api_lock);
251 std::lock_guard<TargetAPIMutex> guard(api_lock);
265 std::lock_guard<TargetAPIMutex> guard(api_lock);
278 std::lock_guard<TargetAPIMutex> guard(api_lock);
292 std::lock_guard<TargetAPIMutex> guard(api_lock);
305 std::lock_guard<TargetAPIMutex> guard(api_lock);
319 std::lock_guard<TargetAPIMutex> guard(api_lock);
333 std::lock_guard<TargetAPIMutex> guard(api_lock);
347 std::lock_guard<TargetAPIMutex> guard(api_lock);
360 std::lock_guard<TargetAPIMutex> guard(api_lock);
374 std::lock_guard<TargetAPIMutex> guard(api_lock);
387 std::lock_guard<TargetAPIMutex> guard(api_lock);
401 std::lock_guard<TargetAPIMutex> guard(api_lock);
414 std::lock_guard<TargetAPIMutex> guard(api_lock);
428 std::lock_guard<TargetAPIMutex> guard(api_lock);
442 std::lock_guard<TargetAPIMutex> guard(api_lock);
456 std::lock_guard<TargetAPIMutex> guard(api_lock);
472 std::lock_guard<TargetAPIMutex> guard(api_lock);
473 std::unique_ptr<BreakpointOptions::CommandData> cmd_data_up(
513 std::lock_guard<TargetAPIMutex> guard(api_lock);
523 s.Printf(
"No value");
528 std::lock_guard<TargetAPIMutex> guard(api_lock);
541 std::lock_guard<TargetAPIMutex> guard(api_lock);
545 ::PrivateBreakpointHitCallback,
552 const char *callback_function_name) {
559 const char *callback_function_name,
570 std::lock_guard<TargetAPIMutex> guard(api_lock);
575 .GetScriptInterpreter()
576 ->SetBreakpointCommandCallbackFunction(
577 bp_options, callback_function_name,
594 std::lock_guard<TargetAPIMutex> guard(api_lock);
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 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
A Lockable handle over a Target's API mutex, returned by Target::GetAPIMutex() and backing the public...
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