9#ifndef LLDB_API_SBBREAKPOINT_H
10#define LLDB_API_SBBREAKPOINT_H
17class ScriptInterpreter;
44 explicit operator bool()
const;
48 void ClearAllBreakpointSites();
60 void SetEnabled(
bool enable);
64 void SetOneShot(
bool one_shot);
66 bool IsOneShot()
const;
70 uint32_t GetHitCount()
const;
72 void SetIgnoreCount(uint32_t count);
74 uint32_t GetIgnoreCount()
const;
76 void SetCondition(
const char *condition);
78 const char *GetCondition();
80 void SetAutoContinue(
bool auto_continue);
82 bool GetAutoContinue();
88 void SetThreadIndex(uint32_t index);
90 uint32_t GetThreadIndex()
const;
92 void SetThreadName(
const char *thread_name);
94 const char *GetThreadName()
const;
96 void SetQueueName(
const char *queue_name);
98 const char *GetQueueName()
const;
101 void SetCallback(SBBreakpointHitCallback callback,
void *baton);
104 void SetScriptCallbackFunction(
const char *callback_function_name);
106 SBError SetScriptCallbackFunction(
const char *callback_function_name,
113 SBError SetScriptCallbackBody(
const char *script_body_text);
116 "AddNameWithErrorHandling")
117 bool AddName(const
char *new_name);
119 SBError AddNameWithErrorHandling(const
char *new_name);
121 void RemoveName(const
char *name_to_remove);
123 bool MatchesName(const
char *name);
127 size_t GetNumResolvedLocations() const;
129 size_t GetNumLocations() const;
133 bool GetDescription(
lldb::
SBStream &description,
bool include_locations);
135 static
bool EventIsBreakpointEvent(const
lldb::
SBEvent &event);
137 static
lldb::BreakpointEventType
138 GetBreakpointEventTypeFromEvent(const
lldb::
SBEvent &event);
143 GetBreakpointLocationAtIndexFromEvent(const
lldb::
SBEvent &event,
147 GetNumBreakpointLocationsFromEvent(const
lldb::
SBEvent &event_sp);
149 bool IsHardware() const;
179 size_t GetSize()
const;
std::shared_ptr< SBBreakpointListImpl > m_opaque_sp
LLDB_DEPRECATED_FIXME("Doesn't provide error handling", "AddNameWithErrorHandling") bool AddName(const char *new_name)
A class that represents a running process on the host machine.
std::weak_ptr< lldb_private::Breakpoint > BreakpointWP
std::shared_ptr< lldb_private::Breakpoint > BreakpointSP
bool LLDB_API operator==(const SBAddress &lhs, const SBAddress &rhs)