SBWatchpointΒΆ
- class lldb.SBWatchpoint(*args)ΒΆ
Represents an instance of watchpoint for a specific target program.
A watchpoint is determined by the address and the byte size that resulted in this particular instantiation. Each watchpoint has its settable options.
See also
SBTarget.watchpoint_iter()
for example usage of iterating through the watchpoints of the target.Methods Summary
Clear
(SBWatchpoint self)EventIsWatchpointEvent
(SBEvent event)GetCondition
(SBWatchpoint self)Get the condition expression for the watchpoint.
GetDescription
(SBWatchpoint self, ...)GetError
(SBWatchpoint self)GetHardwareIndex
(SBWatchpoint self)Deprecated.
GetHitCount
(SBWatchpoint self)GetID
(SBWatchpoint self)GetIgnoreCount
(SBWatchpoint self)GetType
(SBWatchpoint self)Returns the type recorded when the watchpoint was created.
GetWatchAddress
(SBWatchpoint self)GetWatchSize
(SBWatchpoint self)GetWatchSpec
(SBWatchpoint self)Get the spec for the watchpoint.
GetWatchValueKind
(SBWatchpoint self)Returns the kind of value that was watched when the watchpoint was created.
GetWatchpointEventTypeFromEvent
(SBEvent event)GetWatchpointFromEvent
(SBEvent event)IsEnabled
(SBWatchpoint self)IsValid
(SBWatchpoint self)IsWatchingReads
(SBWatchpoint self)Returns true if the watchpoint is watching reads.
IsWatchingWrites
(SBWatchpoint self)Returns true if the watchpoint is watching writes.
SetCondition
(SBWatchpoint self, ...)The watchpoint stops only if the condition expression evaluates to true.
SetEnabled
(SBWatchpoint self, bool enabled)SetIgnoreCount
(SBWatchpoint self, uint32_t n)Methods Documentation
- Clear(SBWatchpoint self)ΒΆ
- static EventIsWatchpointEvent(SBEvent event) bool ΒΆ
- GetCondition(SBWatchpoint self) char const * ΒΆ
Get the condition expression for the watchpoint.
- GetDescription(SBWatchpoint self, SBStream description, lldb::DescriptionLevel level) bool ΒΆ
- GetHardwareIndex(SBWatchpoint self) int32_t ΒΆ
Deprecated. Previously: Return the hardware index of the watchpoint register. Now: -1 is always returned.
- GetHitCount(SBWatchpoint self) uint32_t ΒΆ
- GetID(SBWatchpoint self) lldb::watch_id_t ΒΆ
- GetIgnoreCount(SBWatchpoint self) uint32_t ΒΆ
- GetType(SBWatchpoint self) SBType ΒΆ
Returns the type recorded when the watchpoint was created. For variable watchpoints it is the type of the watched variable. For expression watchpoints it is the type of the provided expression.
- GetWatchAddress(SBWatchpoint self) lldb::addr_t ΒΆ
- GetWatchSize(SBWatchpoint self) size_t ΒΆ
- GetWatchSpec(SBWatchpoint self) char const * ΒΆ
Get the spec for the watchpoint. For variable watchpoints this is the name of the variable. For expression watchpoints it is empty (may change in the future).
- GetWatchValueKind(SBWatchpoint self) lldb::WatchpointValueKind ΒΆ
Returns the kind of value that was watched when the watchpoint was created. Returns one of the following eWatchPointValueKindVariable, eWatchPointValueKindExpression, eWatchPointValueKindInvalid.
- static GetWatchpointEventTypeFromEvent(SBEvent event) lldb::WatchpointEventType ΒΆ
- static GetWatchpointFromEvent(SBEvent event) SBWatchpoint ΒΆ
- IsEnabled(SBWatchpoint self) bool ΒΆ
- IsValid(SBWatchpoint self) bool ΒΆ
- IsWatchingReads(SBWatchpoint self) bool ΒΆ
Returns true if the watchpoint is watching reads. Returns false otherwise.
- IsWatchingWrites(SBWatchpoint self) bool ΒΆ
Returns true if the watchpoint is watching writes. Returns false otherwise.
- SetCondition(SBWatchpoint self, char const * condition)ΒΆ
The watchpoint stops only if the condition expression evaluates to true.
- SetEnabled(SBWatchpoint self, bool enabled)ΒΆ
- SetIgnoreCount(SBWatchpoint self, uint32_t n)ΒΆ