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#
GetError(SBWatchpoint self) SBError#
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)#