xref: /llvm-project/lldb/bindings/interface/SBWatchpointDocstrings.i (revision a3fe9221ab1541a88e784507433cfe7fd13688fd)
1662548c8SAlex Langford %feature("docstring",
2662548c8SAlex Langford "Represents an instance of watchpoint for a specific target program.
3662548c8SAlex Langford 
4662548c8SAlex Langford A watchpoint is determined by the address and the byte size that resulted in
5662548c8SAlex Langford this particular instantiation.  Each watchpoint has its settable options.
6662548c8SAlex Langford 
7662548c8SAlex Langford See also :py:class:`SBTarget.watchpoint_iter()` for example usage of iterating through the
8662548c8SAlex Langford watchpoints of the target."
9662548c8SAlex Langford ) lldb::SBWatchpoint;
10662548c8SAlex Langford 
11662548c8SAlex Langford %feature("docstring", "
12*a3fe9221SJason Molenda     Deprecated.  Previously: Return the hardware index of the
13*a3fe9221SJason Molenda     watchpoint register.  Now: -1 is always returned."
14662548c8SAlex Langford ) lldb::SBWatchpoint::GetHardwareIndex;
15662548c8SAlex Langford 
16662548c8SAlex Langford %feature("docstring", "
17662548c8SAlex Langford     Get the condition expression for the watchpoint."
18662548c8SAlex Langford ) lldb::SBWatchpoint::GetCondition;
19662548c8SAlex Langford 
20662548c8SAlex Langford %feature("docstring", "
21662548c8SAlex Langford     The watchpoint stops only if the condition expression evaluates to true."
22662548c8SAlex Langford ) lldb::SBWatchpoint::SetCondition;
2355a363feSDan Liew 
2455a363feSDan Liew %feature("docstring", "
2555a363feSDan Liew     Returns the type recorded when the watchpoint was created. For variable
2655a363feSDan Liew     watchpoints it is the type of the watched variable. For expression
2755a363feSDan Liew     watchpoints it is the type of the provided expression."
2855a363feSDan Liew ) lldb::SBWatchpoint::GetType;
2955a363feSDan Liew 
3055a363feSDan Liew %feature("docstring", "
3155a363feSDan Liew     Returns the kind of value that was watched when the watchpoint was created.
3255a363feSDan Liew     Returns one of the following eWatchPointValueKindVariable,
3355a363feSDan Liew     eWatchPointValueKindExpression, eWatchPointValueKindInvalid.
3455a363feSDan Liew     "
3555a363feSDan Liew ) lldb::SBWatchpoint::GetWatchValueKind;
3655a363feSDan Liew 
3755a363feSDan Liew %feature("docstring", "
3855a363feSDan Liew     Get the spec for the watchpoint. For variable watchpoints this is the name
3955a363feSDan Liew     of the variable. For expression watchpoints it is empty
4055a363feSDan Liew     (may change in the future)."
4155a363feSDan Liew ) lldb::SBWatchpoint::GetWatchSpec;
4255a363feSDan Liew 
4355a363feSDan Liew %feature("docstring", "
4455a363feSDan Liew     Returns true if the watchpoint is watching reads. Returns false otherwise."
4555a363feSDan Liew ) lldb::SBWatchpoint::IsWatchingReads;
4655a363feSDan Liew 
4755a363feSDan Liew %feature("docstring", "
4855a363feSDan Liew     Returns true if the watchpoint is watching writes. Returns false otherwise."
4955a363feSDan Liew ) lldb::SBWatchpoint::IsWatchingWrites;
50