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)ΒΆ