40 if (!name || name[0] ==
'\0')
78 if (!name || name[0] ==
'\0')
107 return target_sp->FindBreakpointName(
m_name,
true,
error);
117 m_impl_up = std::make_unique<SBBreakpointNameImpl>(sb_target, name);
132 Target &target = bkpt_sp->GetTarget();
135 std::make_unique<SBBreakpointNameImpl>(target.shared_from_this(), name);
155 m_impl_up = std::make_unique<SBBreakpointNameImpl>(
193 return this->
operator bool();
195SBBreakpointName::operator
bool()
const {
207 return "<Invalid Breakpoint Name Object>";
222 std::lock_guard<TargetAPIMutex> guard(api_lock);
235 target_sp->ApplyNameToBreakpoints(bp_name);
247 std::lock_guard<TargetAPIMutex> guard(api_lock);
260 std::lock_guard<TargetAPIMutex> guard(api_lock);
274 std::lock_guard<TargetAPIMutex> guard(api_lock);
287 std::lock_guard<TargetAPIMutex> guard(api_lock);
301 std::lock_guard<TargetAPIMutex> guard(api_lock);
314 std::lock_guard<TargetAPIMutex> guard(api_lock);
328 std::lock_guard<TargetAPIMutex> guard(api_lock);
342 std::lock_guard<TargetAPIMutex> guard(api_lock);
356 std::lock_guard<TargetAPIMutex> guard(api_lock);
369 std::lock_guard<TargetAPIMutex> guard(api_lock);
383 std::lock_guard<TargetAPIMutex> guard(api_lock);
396 std::lock_guard<TargetAPIMutex> guard(api_lock);
410 std::lock_guard<TargetAPIMutex> guard(api_lock);
423 std::lock_guard<TargetAPIMutex> guard(api_lock);
437 std::lock_guard<TargetAPIMutex> guard(api_lock);
451 std::lock_guard<TargetAPIMutex> guard(api_lock);
465 std::lock_guard<TargetAPIMutex> guard(api_lock);
481 std::lock_guard<TargetAPIMutex> guard(api_lock);
482 std::unique_ptr<BreakpointOptions::CommandData> cmd_data_up(
523 std::lock_guard<TargetAPIMutex> guard(api_lock);
533 s.Printf(
"No value");
538 std::lock_guard<TargetAPIMutex> guard(api_lock);
551 std::lock_guard<TargetAPIMutex> guard(api_lock);
555 ::PrivateBreakpointHitCallback,
562 const char *callback_function_name) {
569 const char *callback_function_name,
580 std::lock_guard<TargetAPIMutex> guard(api_lock);
585 .GetScriptInterpreter()
586 ->SetBreakpointCommandCallbackFunction(
587 bp_options, callback_function_name,
604 std::lock_guard<TargetAPIMutex> guard(api_lock);
610 .GetScriptInterpreter()
611 ->SetBreakpointCommandCallback(bp_options, callback_body_text,
614 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.
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 handle to a StringPool that does not own it.
const char * Intern(llvm::StringRef str) const
static StringPoolRef GetSystemPool()
The system pool. Only valid between Initialize and Terminate.
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.
StringPoolRef GetDebuggerStringPool(const Target &target)
Strings interned here live as long as target's debugger.
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